/**
 * Reviews Carousel Styles - FLATSOME BYPASS VERSION
 * Uses custom class names to avoid Flatsome icon font conflicts
 * 
 * Class mapping (old â†’ new):
 * .star-rating â†’ .review-stars-container
 * .stars-wrapper â†’ .review-stars-list
 * .star â†’ .review-star
 * .star-icon â†’ .review-star-svg
 * .star-full â†’ .review-star-filled
 * .star-half â†’ .review-star-half
 * .star-empty â†’ .review-star-empty
 */

/* ========================================
   CAROUSEL WRAPPER
   ======================================== */

.reviews-carousel-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 70px 20px;
    position: relative;
}

@media (max-width: 768px) {
    .reviews-carousel-wrapper {
        padding: 20px 10px 60px 10px;
    }
}

/* ========================================
   SWIPER CONTAINER
   ======================================== */

.reviews-carousel {
    width: 100%;
    padding-bottom: 50px;
    --swiper-theme-color: #007bff;
    --swiper-pagination-bullet-size: 12px;
}

/* ========================================
   REVIEW CARD
   ======================================== */

.review-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

/* ========================================
   REVIEW HEADER
   ======================================== */

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
}

.review-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* ========================================
   PLATFORM BADGE
   ======================================== */

.review-platform {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.review-platform:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Platform Icon SVG */
.platform-icon {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
    display: inline-block !important;
    vertical-align: middle !important;
}

.platform-name {
    line-height: 1 !important;
    display: inline-block !important;
}

/* Google - Authentic Google Colors */
.review-platform-google {
    background: linear-gradient(135deg, #4285f4 0%, #34a853 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(66, 133, 244, 0.3);
}

.review-platform-google .platform-icon {
    filter: brightness(0) invert(1);
}

/* Trustpilot - Brand Green */
.review-platform-trustpilot {
    background: linear-gradient(135deg, #00b67a 0%, #005128 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(0, 182, 122, 0.3);
}

.review-platform-trustpilot .platform-icon {
    filter: brightness(0) invert(1);
}

/* Facebook - Brand Blue */
.review-platform-facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0c5cb8 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(24, 119, 242, 0.3);
}

.review-platform-facebook .platform-icon {
    filter: brightness(0) invert(1);
}

/* Yelp - Brand Red */
.review-platform-yelp {
    background: linear-gradient(135deg, #ff1a1a 0%, #d32323 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 26, 26, 0.3);
}

.review-platform-yelp .platform-icon {
    filter: brightness(0) invert(1);
}

/* Amazon - Brand Orange/Black */
.review-platform-amazon {
    background: linear-gradient(135deg, #ff9900 0%, #ff6600 100%) !important;
    color: #232f3e !important;
    border: 1px solid rgba(255, 153, 0, 0.3);
    font-weight: 700;
}

.review-platform-amazon .platform-icon {
    color: #232f3e !important;
}

/* Other/Default */
.review-platform-other {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

.review-platform-other .platform-icon {
    filter: brightness(0) invert(1);
}

/* ========================================
   VERIFIED BADGE
   ======================================== */

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;               /* Μειώθηκε από 5px */
    padding: 4px 10px;      /* Μειώθηκε από 5px 12px */
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 20px;
    font-size: 10px;        /* ΑΛΛΑΓΗ: Μειώθηκε από 12px */
    font-weight: 500;
    white-space: nowrap;    /* ΠΡΟΣΘΗΚΗ: Αποτρέπει word wrap */
}

.verified-badge svg {
    width: 12px;            /* Μειώθηκε από 14px */
    height: 12px;           /* Μειώθηκε από 14px */
    flex-shrink: 0;
}

/* ========================================
   STAR RATING - RENAMED CLASSES (BYPASS FLATSOME)
   ======================================== */

/* Main container for stars */
.review-stars-container {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

/* Stars list wrapper */
.review-stars-list {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
}

/* Individual star container */
.review-star {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    position: relative !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important; /* Hide any text/icon font */
}

/* Star SVG */
.review-star-svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

/* Filled Star - Golden Yellow */
.review-star-filled {
    color: #ffc107 !important;
}

.review-star-filled .review-star-svg {
    filter: drop-shadow(0 1px 3px rgba(255, 193, 7, 0.4));
}

.review-star-filled .review-star-svg path {
    fill: #ffc107 !important;
}

/* Half Star */
.review-star-half {
    color: #ffc107 !important;
}

.review-star-half .review-star-svg path {
    fill: #ffc107 !important;
}

/* Empty Star - Light Gray */
.review-star-empty {
    color: #e0e0e0 !important;
}

.review-star-empty .review-star-svg path {
    fill: #e0e0e0 !important;
}

/* Rating Number */
.rating-number {
    margin-left: 6px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #424242 !important;
    line-height: 1 !important;
    display: inline-block !important;
}

/* ========================================
   REVIEW CONTENT
   ======================================== */

.review-content {
    flex: 1;
}

.review-text {
    font-size: 15px;
    line-height: 1.7;
    color: #424242;
}

.review-text p {
    margin: 0 0 12px 0;
}

.review-text p:last-child {
    margin-bottom: 0;
}

/* ========================================
   REVIEW FOOTER
   ======================================== */

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.reviewer-name {
    margin: 0;
    font-size: 14px;
    color: #616161;
}

.reviewer-name strong {
    color: #212121;
    font-weight: 600;
}

.review-date {
    font-size: 13px;
    color: #9e9e9e;
}

/* ========================================
   PAGINATION DOTS
   ======================================== */

.swiper-pagination {
    bottom: 20px !important;
    text-align: center;
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #cbd5e0;
    opacity: 1;
    transition: all 0.3s ease;
    margin: 0 6px !important;
}

.swiper-pagination-bullet:hover {
    background: #007bff;
    transform: scale(1.2);
}

.swiper-pagination-bullet-active {
    background: #007bff;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.4);
}

/* ========================================
   NO REVIEWS MESSAGE
   ======================================== */

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    font-size: 16px;
    color: #757575;
    background: #f9f9f9;
    border-radius: 12px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .review-card {
        padding: 22px;
        gap: 16px;
    }
    
    .review-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .review-star-svg {
        width: 18px !important;
        height: 18px !important;
    }
    
    .review-star {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 640px) {
    .review-card {
        padding: 20px;
    }
    
    .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px !important;
    }
    
    .swiper-pagination-bullet-active {
        width: 24px;
    }
}

/* ========================================
   DARK MODE SUPPORT
   ======================================== */

@media (prefers-color-scheme: dark) {
    .review-card {
        background: #1e1e1e;
        border-color: #333333;
        color: #e0e0e0;
    }
    
    .review-platform {
        background: #2d2d2d;
    }
    
    .review-text {
        color: #e0e0e0;
    }
    
    .reviewer-name strong {
        color: #ffffff;
    }
    
    .rating-number {
        color: #e0e0e0 !important;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

/* Focus States */
.swiper-pagination-bullet:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .review-card,
    .swiper-pagination-bullet {
        transition: none;
    }
    
    .review-card:hover {
        transform: none;
    }
}

/* ========================================
   LOADING STATE
   ======================================== */

.reviews-carousel.is-loading {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reviews-carousel.is-loading:before {
    content: "";
    display: block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .swiper-pagination {
        display: none;
    }
    
    .review-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* ========================================
   FLATSOME BYPASS - CRITICAL OVERRIDES
   Ensure Flatsome doesn't interfere with our stars
   ======================================== */

/* Remove any Flatsome icon font from our elements */
.review-star,
.review-stars-list,
.review-stars-container {
    font-family: inherit !important;
}

/* Ensure no pseudo-elements are added */
.review-star::before,
.review-star::after {
    content: none !important;
    display: none !important;
}

/* Force SVG visibility */
.review-star svg,
.review-star-svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}