/* ========================================
   GOOGLE REVIEWS STYLE TESTIMONIALS
   Modern, clean testimonial cards inspired by Google Reviews
======================================== */

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: #FFFFFF;
    position: relative;
}

/* Overall Rating Summary (Optional - Add above testimonials) */
.testimonials-summary {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: linear-gradient(135deg, #FAFAFA 0%, #FFFFFF 100%);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.overall-rating-number {
    font-size: 4rem;
    font-weight: 700;
    color: #C41E3A;
    line-height: 1;
    margin-bottom: 10px;
}

.overall-rating-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
}

.overall-rating-stars i {
    color: #FBBC04;
    font-size: 1.5rem;
}

.overall-rating-count {
    font-size: 1rem;
    color: #5f6368;
    font-weight: 500;
}

/* Testimonials Auto-Scroll Wrapper */
.testimonials-auto-scroll {
    position: relative;
    overflow: hidden;
}

.testimonials-scroll-track {
    display: flex;
    flex-wrap: wrap;
}

/* Google Reviews Style Card */
.testimonial-card {
    background: #FFFFFF;
    border: 1px solid #E8EAED;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.testimonial-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #DADCE0;
}

/* Google Icon (Optional) */
.testimonial-card::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.4;
}

/* Author Section - Top of Card */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.testimonial-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #F1F3F4;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* If no image, show initials */
.testimonial-avatar-initials {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
}

.testimonial-info {
    flex: 1;
    min-width: 0;
}

.testimonial-info h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #202124;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

/* Rating Stars - Google Style */
.testimonial-rating {
    display: flex;
    align-items: center;
    gap: 2px;
}

.testimonial-rating i {
    color: #FBBC04;
    font-size: 0.875rem;
}

.testimonial-rating .far {
    color: #DADCE0;
}

/* Review Date (Optional) */
.testimonial-date {
    font-size: 0.75rem;
    color: #5F6368;
    margin-top: 2px;
}

/* Quote/Review Text */
.testimonial-quote {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #3C4043;
    margin-bottom: 16px;
    position: relative;
}

/* Quote Icon (subtle) */
.testimonial-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: -8px;
    font-size: 3rem;
    color: #F1F3F4;
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-quote p {
    position: relative;
    z-index: 1;
    margin: 0;
}

/* Verified Badge (Optional) */
.verified-purchase {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: #C41E3A;
    font-weight: 500;
    margin-top: 8px;
}

.verified-purchase i {
    font-size: 0.875rem;
}

/* Product Reference (Optional) */
.testimonial-product {
    font-size: 0.8rem;
    color: #5F6368;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #F1F3F4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.testimonial-product i {
    color: #5F6368;
    font-size: 0.75rem;
}

/* Helpful/Like Section (Optional) */
.testimonial-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #F1F3F4;
}

.testimonial-helpful {
    font-size: 0.8rem;
    color: #5F6368;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.testimonial-helpful:hover {
    color: #C41E3A;
}

.testimonial-helpful i {
    font-size: 0.875rem;
}

/* Mobile Horizontal Scroll */
@media (max-width: 991px) {
    .testimonials-auto-scroll {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #DADCE0 transparent;
        margin: 0 -15px;
        padding: 0 15px 20px;
    }

    .testimonials-auto-scroll::-webkit-scrollbar {
        height: 6px;
    }

    .testimonials-auto-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .testimonials-auto-scroll::-webkit-scrollbar-thumb {
        background: #DADCE0;
        border-radius: 3px;
    }

    .testimonials-auto-scroll::-webkit-scrollbar-thumb:hover {
        background: #BDC1C6;
    }

    .testimonials-scroll-track {
        flex-wrap: nowrap;
        width: max-content;
        gap: 16px;
    }

    .mobile-scroll-item {
        flex: 0 0 320px;
        width: 320px;
        max-width: 320px;
    }

    .testimonial-card::before {
        width: 20px;
        height: 20px;
        top: 16px;
        right: 16px;
    }
}

@media (max-width: 767px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-summary {
        margin-bottom: 35px;
        padding: 25px 20px;
    }

    .overall-rating-number {
        font-size: 3rem;
    }

    .overall-rating-stars i {
        font-size: 1.25rem;
    }

    .mobile-scroll-item {
        flex: 0 0 280px;
        width: 280px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-avatar {
        width: 40px;
        height: 40px;
    }

    .testimonial-info h5 {
        font-size: 0.95rem;
    }

    .testimonial-quote {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .mobile-scroll-item {
        flex: 0 0 260px;
        width: 260px;
    }

    .testimonial-card {
        padding: 18px;
    }
}

/* Infinite Scroll Animation (Optional) */
@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.testimonials-auto-scroll.infinite-scroll .testimonials-scroll-track {
    animation: scroll-testimonials 30s linear infinite;
}

.testimonials-auto-scroll.infinite-scroll:hover .testimonials-scroll-track {
    animation-play-state: paused;
}

/* Load More Button */
.testimonials-load-more {
    text-align: center;
    margin-top: 40px;
}

.btn-load-reviews {
    background: #FFFFFF;
    border: 2px solid #DADCE0;
    color: #C41E3A;
    padding: 12px 32px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-load-reviews:hover {
    background: #F8F9FA;
    border-color: #C41E3A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

/* Rating Distribution (Optional Addition) */
.rating-distribution {
    max-width: 400px;
    margin: 30px auto 0;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rating-bar-label {
    font-size: 0.875rem;
    color: #5F6368;
    min-width: 60px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rating-bar-label i {
    color: #FBBC04;
    font-size: 0.75rem;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #F1F3F4;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #FBBC04;
    transition: width 0.6s ease;
}

.rating-bar-count {
    font-size: 0.875rem;
    color: #5F6368;
    min-width: 40px;
    text-align: right;
}

/* Platform Badges */
.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: #E8F0FE;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #C41E3A;
    font-weight: 500;
    margin-top: 8px;
}

.platform-badge.amazon {
    background: #FFF3E0;
    color: #FF9900;
}

.platform-badge.flipkart {
    background: #E3F2FD;
    color: #2874F0;
}

.platform-badge i {
    font-size: 0.875rem;
}

/* Accessibility */
.testimonial-card:focus-within {
    outline: 2px solid #C41E3A;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .testimonial-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #E8EAED;
    }
    
    .testimonials-auto-scroll {
        overflow: visible;
    }
    
    .testimonials-scroll-track {
        flex-wrap: wrap;
    }
}