/**
 * GDS Travel Booking Widgets Styles
 * Version: 1.0.0
 */

/* ========================================
   REVIEWS WIDGET
   ======================================== */

.gds-widget-reviews {
    margin: 0;
    padding: 0;
    list-style: none;
}

.gds-widget-review-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.gds-widget-review-item:last-child {
    border-bottom: none;
}

.gds-widget-review-item:hover {
    background-color: #f9f9f9;
    padding-left: 10px;
    margin-left: -10px;
    padding-right: 10px;
    margin-right: -10px;
}

.gds-widget-rating {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gds-widget-rating .gds-stars {
    font-size: 14px;
}

.gds-widget-review-meta {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gds-widget-review-meta .gds-reviewer {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 600;
}

.gds-widget-review-meta .gds-airline {
    background: #3498db;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.gds-widget-review-excerpt {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.gds-widget-review-date {
    color: #999;
    font-size: 11px;
    font-style: italic;
}

.gds-no-reviews {
    color: #999;
    font-style: italic;
    text-align: center;
    padding: 20px 0;
}

/* ========================================
   TOP AIRLINES WIDGET
   ======================================== */

.gds-widget-top-airlines {
    margin: 0;
    padding: 0;
}

.gds-widget-airline-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.gds-widget-airline-item:last-child {
    border-bottom: none;
}

.gds-widget-airline-item:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding-left: 10px;
    margin-left: -10px;
    padding-right: 10px;
    margin-right: -10px;
    border-radius: 5px;
}

.gds-airline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.gds-airline-code {
    color: #2c3e50;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gds-review-count {
    color: #777;
    font-size: 11px;
    font-weight: normal;
}

.gds-airline-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gds-airline-rating .gds-stars {
    font-size: 14px;
}

.gds-rating-number {
    color: #27ae60;
    font-weight: 600;
    font-size: 13px;
}

/* ========================================
   WIDGET ADMIN STYLES
   ======================================== */

.widget .widget-content .gds-widget-reviews,
.widget .widget-content .gds-widget-top-airlines {
    max-height: 400px;
    overflow-y: auto;
}

/* Scrollbar Styles */
.gds-widget-reviews::-webkit-scrollbar,
.gds-widget-top-airlines::-webkit-scrollbar {
    width: 6px;
}

.gds-widget-reviews::-webkit-scrollbar-track,
.gds-widget-top-airlines::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.gds-widget-reviews::-webkit-scrollbar-thumb,
.gds-widget-top-airlines::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.gds-widget-reviews::-webkit-scrollbar-thumb:hover,
.gds-widget-top-airlines::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .gds-widget-review-item,
    .gds-widget-airline-item {
        padding: 10px 0;
    }
    
    .gds-widget-review-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .gds-airline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

@media (prefers-color-scheme: dark) {
    .gds-widget-review-item,
    .gds-widget-airline-item {
        border-bottom-color: #444;
    }
    
    .gds-widget-review-item:hover,
    .gds-widget-airline-item:hover {
        background-color: #2c2c2c;
    }
    
    .gds-widget-review-meta .gds-reviewer,
    .gds-airline-code {
        color: #e0e0e0;
    }
    
    .gds-widget-review-excerpt {
        color: #ccc;
    }
    
    .gds-widget-review-date,
    .gds-review-count,
    .gds-no-reviews {
        color: #888;
    }
}

/* ========================================
   WIDGET TITLE ICONS (OPTIONAL)
   ======================================== */

.widget_gds_travel_reviews_widget .widget-title::before {
    content: "⭐ ";
    margin-right: 5px;
}

.widget_gds_travel_top_airlines_widget .widget-title::before {
    content: "✈️ ";
    margin-right: 5px;
}

/* ========================================
   LOADING STATE
   ======================================== */

.gds-widget-loading {
    text-align: center;
    padding: 30px;
    color: #999;
}

.gds-widget-loading::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: gds-spin 1s linear infinite;
}

@keyframes gds-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}