/* ===================================
   TESTIMONIALS DUAL-ROW SLIDER
   Premium infinite marquee animation
   =================================== */

/* Main Slider Container */
.testimonials-slider-wrapper {
    width: 100%;
    overflow: hidden;
    padding: var(--space-8) 0;
    position: relative;
}

/* Soft gradient fade on edges */
.testimonials-slider-wrapper::before,
.testimonials-slider-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 10;
    pointer-events: none;
}

.testimonials-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right,
            rgba(240, 177, 96, 0.15) 0%,
            rgba(240, 177, 96, 0.05) 40%,
            transparent 100%);
}

.testimonials-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left,
            rgba(240, 177, 96, 0.15) 0%,
            rgba(240, 177, 96, 0.05) 40%,
            transparent 100%);
}

/* Individual Slider Row */
.testimonials-slider-row {
    display: flex;
    gap: var(--space-6);
    padding: var(--space-3) 0;
    width: max-content;
    will-change: transform;
}

/* Row 1: Scrolls Left (cards move right-to-left visually) - SLOW */
.testimonials-slider-row.row-1 {
    animation: marqueeLeft 120s linear infinite;
}

/* Row 2: Scrolls Right (cards move left-to-right visually) - SLOW */
.testimonials-slider-row.row-2 {
    animation: marqueeRight 100s linear infinite;
    margin-top: var(--space-6);
}

/* Each row pauses INDEPENDENTLY on hover */
.testimonials-slider-row:hover {
    animation-play-state: paused;
}

/* Keyframes for smooth infinite scroll */
/* Row 1: moves from 0 to -50% (left direction) */
@keyframes marqueeLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Row 2: moves from -50% to 0 (right direction) */
@keyframes marqueeRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Premium Review Card Styling */
.slider-review-card {
    flex-shrink: 0;
    width: 400px;
    padding: var(--space-6);
    background: var(--color-surface, #1a1a1a);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Card glow effect on hover */
.slider-review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(240, 177, 96, 0.6) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.slider-review-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(240, 177, 96, 0.25);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.slider-review-card:hover::before {
    opacity: 1;
}

/* Card Header */
.slider-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.slider-reviewer-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.slider-reviewer-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    position: relative;
    box-shadow: 0 4px 12px rgba(240, 177, 96, 0.3);
}

.slider-reviewer-avatar.verified::after {
    content: '✓';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 50%;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid rgba(15, 23, 42, 0.9);
}

.slider-reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.slider-reviewer-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: white;
    margin: 0;
}

.slider-review-service {
    font-size: var(--text-xs);
    color: var(--color-primary);
    font-weight: 500;
}

/* Star Rating - Clean Look */
.slider-rating-stars {
    display: flex;
    gap: 4px;
    padding: 0;
    background: transparent;
}

.slider-rating-stars .star {
    color: #fbbf24;
    font-size: 0.9rem;
}

.slider-rating-stars .star.empty {
    color: rgba(255, 255, 255, 0.2);
}

/* Review Content */
.slider-review-content {
    position: relative;
    z-index: 1;
    margin-bottom: var(--space-4);
    flex-grow: 1;
}

.slider-review-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Review Footer */
.slider-review-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
    margin-top: auto;
}

.slider-doctor-tag {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.5);
}

.slider-doctor-tag svg {
    width: 14px;
    height: 14px;
    color: rgba(240, 177, 96, 0.6);
}

.slider-review-date {
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
}

.slider-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    font-size: 11px;
    color: #10b981;
    font-weight: 500;
}

.slider-verified-badge svg {
    width: 12px;
    height: 12px;
}

/* Loading State for Slider */
.testimonials-slider-loading {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-8) 0;
}

.slider-skeleton-row {
    display: flex;
    gap: var(--space-6);
    overflow: hidden;
}

.slider-skeleton-card {
    flex-shrink: 0;
    width: 400px;
    height: 220px;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.03) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.03) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .slider-review-card {
        width: 320px;
        padding: var(--space-5);
    }
}