/**
 * Testimonials Slider Section Styles
 * Horizontal scrolling testimonials carousel
 *
 * @package RankExpert
 * @since 1.0.0
 */

/* ========== TESTIMONIALS SLIDER SECTION ========== */
.testimonials-slider-section {
    padding: clamp(60px, 10vw, 120px) 0;
    background: #F8F9FA;
    overflow: hidden;
}

/* Slider Wrapper */
.testimonials-slider-wrapper {
    position: relative;
    margin-top: clamp(40px, 6vw, 60px);
}

/* Testimonials Slider Container */
.testimonials-slider {
    display: flex;
    gap: clamp(24px, 3vw, 32px);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    padding-bottom: 20px;
}

.testimonials-slider::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* Testimonial Slide */
.testimonial-slide {
    flex: 0 0 auto;
    width: 90%;
    max-width: 600px;
    scroll-snap-align: center;
}

@media (min-width: 768px) {
    .testimonial-slide {
        width: 70%;
    }
}

@media (min-width: 1024px) {
    .testimonial-slide {
        width: 50%;
        max-width: 640px;
    }
}

/* Testimonial Card */
.testimonial-card-slider {
    background: #FFFFFF;
    border-radius: 16px;
    padding: clamp(32px, 5vw, 48px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card-slider:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Rating Stars */
.testimonial-card-slider .testimonial-rating {
    display: flex;
    gap: 4px;
}

.testimonial-card-slider .star {
    font-size: 20px;
    color: #E0E0E0;
    transition: color 0.2s ease;
}

.testimonial-card-slider .star.filled {
    color: #FFB800;
}

/* Testimonial Content */
.testimonial-card-slider .testimonial-content {
    flex: 1;
    font-size: clamp(15px, 1.7vw, 17px);
    line-height: 1.7;
    color: #4A4A4A;
}

.testimonial-card-slider .testimonial-content p {
    margin: 0 0 12px 0;
}

.testimonial-card-slider .testimonial-content p:last-child {
    margin-bottom: 0;
}

/* Author Info */
.testimonial-card-slider .testimonial-author-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
}

.testimonial-card-slider .quote-icon {
    flex-shrink: 0;
    width: 40px;
    height: 32px;
    color: #00D9A3;
}

.testimonial-card-slider .author-details {
    flex: 1;
}

.testimonial-card-slider .author-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
}

.testimonial-card-slider .author-company {
    font-size: 14px;
    color: #666666;
    line-height: 1.4;
}

/* Slider Dots Navigation */
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #D1D5DB;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.slider-dots .dot:hover {
    background: #9CA3AF;
    transform: scale(1.2);
}

.slider-dots .dot.active {
    background: #00D9A3;
    width: 32px;
    border-radius: 6px;
}

.slider-dots .dot:focus {
    outline: 2px solid #00D9A3;
    outline-offset: 2px;
}

/* No Testimonials State */
.no-testimonials {
    text-align: center;
    padding: 60px 20px;
    color: #999999;
    font-size: 16px;
}

/* Auto-scroll Animation */
@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.testimonials-slider.auto-scroll {
    animation: slideLeft 30s linear infinite;
}

.testimonials-slider.auto-scroll:hover {
    animation-play-state: paused;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

/* Tablet */
@media (max-width: 1023px) {
    .testimonials-slider-section {
        padding: clamp(50px, 8vw, 80px) 0;
    }
    
    .testimonial-card-slider {
        padding: clamp(28px, 4vw, 36px);
    }
}

/* Mobile */
@media (max-width: 767px) {
    .testimonials-slider-section {
        padding: clamp(40px, 10vw, 60px) 0;
    }
    
    .testimonial-slide {
        width: 85%;
    }
    
    .testimonial-card-slider {
        padding: clamp(24px, 6vw, 32px);
        gap: 20px;
    }
    
    .testimonial-card-slider .star {
        font-size: 18px;
    }
    
    .testimonial-card-slider .quote-icon {
        width: 32px;
        height: 26px;
    }
    
    .slider-dots {
        gap: 8px;
        margin-top: 24px;
    }
    
    .slider-dots .dot {
        width: 10px;
        height: 10px;
    }
    
    .slider-dots .dot.active {
        width: 24px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .testimonial-slide {
        width: 90%;
    }
    
    .testimonial-card-slider .testimonial-author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ========== ACCESSIBILITY ========== */

/* Focus States */
.testimonials-slider:focus {
    outline: 2px solid #00D9A3;
    outline-offset: 4px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .testimonials-slider {
        scroll-behavior: auto;
    }
    
    .testimonial-card-slider {
        transition: none;
    }
    
    .testimonial-card-slider:hover {
        transform: none;
    }
    
    .slider-dots .dot {
        transition: none;
    }
    
    .testimonials-slider.auto-scroll {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .testimonial-card-slider {
        border: 2px solid #1a1a1a;
    }
    
    .slider-dots .dot.active {
        background: #000000;
    }
}

/* Print Styles */
@media print {
    .testimonials-slider-section {
        padding: 40px 0;
    }
    
    .testimonials-slider {
        display: block;
    }
    
    .testimonial-slide {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
        page-break-inside: avoid;
    }
    
    .slider-dots {
        display: none;
    }
    
    .testimonial-card-slider {
        box-shadow: none;
        border: 1px solid #E0E0E0;
    }
}

/* Dark Mode Support (if theme supports it) */
@media (prefers-color-scheme: dark) {
    .testimonials-slider-section {
        background: #1F2937;
    }
    
    .testimonial-card-slider {
        background: #374151;
        color: #F3F4F6;
    }
    
    .testimonial-card-slider .testimonial-content {
        color: #E5E7EB;
    }
    
    .testimonial-card-slider .author-name {
        color: #FFFFFF;
    }
    
    .testimonial-card-slider .author-company {
        color: #D1D5DB;
    }
}


