/* ========================================
   GDS TRAVEL REVIEWS & RATINGS STYLES
   ======================================== */

/* Rating Summary Section */
.gds-airline-rating-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.gds-summary-header h3 {
    margin: 0 0 20px;
    font-size: 24px;
    font-weight: 700;
}

.gds-rating-overview {
    display: flex;
    align-items: center;
    gap: 30px;
}

.gds-rating-score {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.gds-rating-score .score {
    display: block;
}

.gds-rating-score .max-score {
    font-size: 24px;
    opacity: 0.8;
}

.gds-rating-visual {
    flex: 1;
}

.gds-rating-stars {
    font-size: 28px;
    margin-bottom: 10px;
}

.gds-review-count {
    margin: 5px 0 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Reviews List */
.gds-reviews-list {
    margin: 30px 0;
}

.gds-review-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s ease;
}

.gds-review-item:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.gds-review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.gds-review-author {
    display: flex;
    gap: 12px;
    align-items: center;
}

.gds-author-avatar img {
    border-radius: 50%;
    width: 48px;
    height: 48px;
}

.gds-author-info {
    display: flex;
    flex-direction: column;
}

.gds-author-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.gds-review-date {
    font-size: 13px;
    color: #999;
    margin-top: 2px;
}

.gds-review-rating {
    font-size: 18px;
}

.gds-review-flight-info {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.gds-airline-code,
.gds-flight-number {
    display: inline-block;
    background: #f8f9fa;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #0073aa;
    margin-right: 8px;
}

.gds-review-content {
    color: #555;
    line-height: 1.7;
    font-size: 15px;
}

.gds-review-content p:last-child {
    margin-bottom: 0;
}

/* No Reviews Message */
.gds-no-reviews {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

.gds-no-reviews p {
    font-size: 16px;
    margin: 0;
}

/* Review Form Styles */
.gds-review-form {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    margin: 30px 0;
}

.gds-review-form h3 {
    margin: 0 0 20px;
    font-size: 22px;
    color: #333;
}

.gds-form-group-review {
    margin-bottom: 20px;
}

.gds-form-group-review label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.gds-form-group-review input,
.gds-form-group-review select,
.gds-form-group-review textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.gds-form-group-review textarea {
    min-height: 120px;
    resize: vertical;
}

/* Star Rating Input */
.gds-star-rating {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 8px;
    font-size: 32px;
    margin: 10px 0;
}

.gds-star-rating input[type="radio"] {
    display: none;
}

.gds-star-rating label {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s ease;
    margin: 0;
    padding: 0;
}

.gds-star-rating label:hover,
.gds-star-rating label:hover ~ label {
    color: #ffc107;
}

.gds-star-rating input[type="radio"]:checked ~ label {
    color: #ffc107;
}

/* Star Display (Read-only) */
.gds-star-display {
    display: inline-flex;
    gap: 4px;
}

.gds-star-display .star {
    color: #ffc107;
    font-size: inherit;
}

.gds-star-display .star.empty {
    color: #ddd;
}

/* Inline Rating Widget */
.gds-inline-rating {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gds-inline-rating .gds-rating-stars {
    font-size: 16px;
}

.gds-inline-rating .gds-rating-stars-small {
    font-size: 14px;
}

.gds-inline-rating .gds-rating-value {
    font-weight: 600;
    color: #333;
}

.gds-inline-rating .gds-rating-count {
    color: #666;
    font-size: 14px;
}

/* Rating Size Variants */
.gds-rating-small .gds-rating-stars {
    font-size: 14px;
}

.gds-rating-medium .gds-rating-stars {
    font-size: 18px;
}

.gds-rating-large .gds-rating-stars {
    font-size: 24px;
}

/* Submit Button */
.gds-btn-submit-review {
    background: #0073aa;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.gds-btn-submit-review:hover {
    background: #005a87;
}

.gds-btn-submit-review:disabled {
    background: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Loading State */
.gds-review-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.gds-review-form .gds-loading {
    display: inline-block;
    margin-left: 10px;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success/Error Messages */
.gds-review-message {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.gds-review-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.gds-review-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* My Bookings Section */
.gds-my-bookings {
    margin: 30px 0;
}

.gds-my-bookings h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #333;
}

.gds-bookings-list {
    display: grid;
    gap: 20px;
}

.gds-booking-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    transition: box-shadow 0.3s ease;
}

.gds-booking-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gds-booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.gds-booking-reference {
    font-size: 16px;
}

.gds-booking-reference strong {
    color: #0073aa;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.status-confirmed {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.gds-booking-details {
    margin-bottom: 15px;
}

.gds-flight-info .gds-route {
    font-size: 18px;
    margin: 10px 0;
}

.gds-booking-price {
    font-size: 16px;
    color: #0073aa;
    font-weight: 600;
    margin-top: 10px;
}

.gds-booking-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Button Styles */
.gds-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.gds-btn-primary {
    background: #0073aa;
    color: #fff;
}

.gds-btn-primary:hover {
    background: #005a87;
    color: #fff;
}

.gds-btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.gds-btn-secondary:hover {
    background: #e0e0e0;
}

.gds-no-bookings {
    text-align: center;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #666;
}

/* Notice Styles */
.gds-notice {
    padding: 15px 20px;
    border-radius: 4px;
    margin: 20px 0;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .gds-rating-overview {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .gds-rating-score {
        font-size: 36px;
    }
    
    .gds-rating-stars {
        font-size: 24px;
    }
    
    .gds-review-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .gds-review-author {
        width: 100%;
    }
    
    .gds-star-rating {
        font-size: 28px;
    }
    
    .gds-booking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .gds-booking-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .gds-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gds-airline-rating-summary {
        padding: 20px;
    }
    
    .gds-review-item {
        padding: 15px;
    }
    
    .gds-review-form {
        padding: 20px;
    }
    
    .gds-star-rating {
        font-size: 24px;
        gap: 5px;
    }
}
