/**
 * ============================================================================
 * TESTIMONIALS SECTION
 * Mobile-first, elegant testimonial slider
 * ============================================================================
 */

/* Section Container */
.testimonials-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(
        180deg,
        #FFFFFF 0%,
        #fdf2f8 50%,
        #FFFFFF 100%
    );
    overflow: hidden;
}

/* Background Decoration */
.testimonials-section::before,
.testimonials-section::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.testimonials-section::before {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, #fce7f3, transparent);
}

.testimonials-section::after {
    bottom: -100px;
    left: -100px;
    background: radial-gradient(circle, #fdf2f8, transparent);
}

/* Section Header */
.testimonials-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    z-index: 2;
}

.testimonials-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #fce7f3, #fdf2f8);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ec4899;
    margin-bottom: 16px;
}

.testimonials-title {
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.2;
}

.testimonials-subtitle {
    font-size: clamp(0.9375rem, 2vw, 1.125rem);
    color: #64748b;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Slider Wrapper */
.testimonials-slider-wrapper {
    position: relative;
    z-index: 2;
}

/* Fade Overlays */
.slider-fade {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 3;
    pointer-events: none;
}

.slider-fade-left {
    left: 0;
    background: linear-gradient(to right, #FFFFFF, transparent);
}

.slider-fade-right {
    right: 0;
    background: linear-gradient(to left, #FFFFFF, transparent);
}

/* Slider Container */
.testimonials-slider {
    overflow: hidden;
    padding: 20px 0;
}

/* Slider Track */
.testimonials-track {
    display: flex;
    gap: 24px;
    animation: slideTestimonials 40s linear infinite;
}

.testimonials-slider:hover .testimonials-track {
    animation-play-state: paused;
}

/* Testimonial Card */
.testimonial-card {
    flex: 0 0 auto;
    width: 360px;
    padding: 32px;
    background: #FFFFFF;
    border: 1px solid #f3f4f6;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #fce7f3;
}

/* Quote Icon */
.testimonial-quote {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fce7f3, #fdf2f8);
    border-radius: 12px;
    margin-bottom: 20px;
}

.testimonial-quote i {
    font-size: 1.25rem;
    color: #ec4899;
}

/* Message */
.testimonial-message {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 120px;
}

/* Rating */
.testimonial-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f3f4f6;
}

.testimonial-rating i {
    font-size: 1rem;
}

.star-filled {
    color: #ec4899;
}

.star-empty {
    color: #e5e7eb;
}

/* Author Info */
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fce7f3;
    flex-shrink: 0;
}

.author-details {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-type {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #ec4899;
}

/* Empty State */
.testimonials-empty {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.testimonials-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #cbd5e1;
}

.testimonials-empty p {
    font-size: 1rem;
}

/* Slider Animation */
@keyframes slideTestimonials {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

/* Small Mobile (320px - 480px) */
@media (min-width: 320px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-header {
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .testimonial-card {
        width: 300px;
        padding: 24px;
    }
    
    .testimonial-message {
        font-size: 0.875rem;
        min-height: 100px;
        -webkit-line-clamp: 4;
    }
    
    .slider-fade {
        width: 40px;
    }
    
    .testimonials-track {
        gap: 16px;
    }
}

/* Standard Mobile (481px - 640px) */
@media (min-width: 481px) {
    .testimonial-card {
        width: 320px;
        padding: 28px;
    }
    
    .testimonials-track {
        gap: 20px;
    }
}

/* Large Mobile / Tablet (641px - 768px) */
@media (min-width: 641px) {
    .testimonials-section {
        padding: 80px 0;
    }
    
    .testimonials-header {
        margin-bottom: 48px;
    }
    
    .testimonial-card {
        width: 340px;
        padding: 30px;
    }
    
    .slider-fade {
        width: 60px;
    }
}

/* Desktop (769px+) */
@media (min-width: 769px) {
    .testimonials-section {
        padding: 100px 0;
    }
    
    .testimonials-header {
        margin-bottom: 56px;
    }
    
    .testimonial-card {
        width: 360px;
        padding: 32px;
    }
    
    .testimonial-message {
        font-size: 0.9375rem;
        min-height: 120px;
        -webkit-line-clamp: 5;
    }
    
    .slider-fade {
        width: 80px;
    }
    
    .testimonials-track {
        gap: 24px;
    }
}

/* Large Desktop (1025px+) */
@media (min-width: 1025px) {
    .testimonial-card {
        width: 380px;
        padding: 36px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .testimonials-track {
        animation: none;
    }
    
    .testimonials-slider {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: #fce7f3 transparent;
    }
    
    .testimonials-slider::-webkit-scrollbar {
        height: 8px;
    }
    
    .testimonials-slider::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .testimonials-slider::-webkit-scrollbar-thumb {
        background: #fce7f3;
        border-radius: 4px;
    }
    
    .testimonial-card:hover {
        transform: none;
    }
}