/* ============================================================
   TESTIMONIALS CAROUSEL — Global Component
   Shared across all public pages (loaded via styles.php)
   Structure aligned with production (djprestigesound.be)
   ============================================================ */

/* Section wrapper */
.testimonials-carousel-section {
    padding: clamp(80px, 12vw, 120px) 0;
    background: linear-gradient(180deg, #0a0a0c 0%, #111114 50%, #0a0a0c 100%);
    border-top: 1px solid var(--color-border);
    overflow: hidden;
}

.testimonials-carousel-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 60px);
}

/* Header */
.testimonials-carousel-section .section-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vw, 64px);
}

.testimonials-carousel-section .section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(201, 169, 98, 0.08);
    border: 1px solid rgba(201, 169, 98, 0.2);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--color-gold);
    margin-bottom: 20px;
}

.testimonials-carousel-section .section-title {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 300;
    color: var(--color-text-primary);
    margin: 0 0 12px;
}

.testimonials-carousel-section .section-subtitle {
    font-size: clamp(15px, 1.5vw, 18px);
    font-weight: 300;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0 auto;
    max-width: 640px;
    text-align: center;
}

.testimonials-carousel-section .section-header::after {
    content: "\2727";
    display: block;
    margin-top: 16px;
    color: var(--color-gold);
    font-size: 11px;
    opacity: 0.25;
    letter-spacing: 0.8em;
    text-align: center;
}

/* ---- Carousel wrapper ---- */
.testimonial-carousel-wrapper {
    position: relative;
    margin-bottom: 32px;
}

.testimonial-carousel {
    position: relative;
    min-height: 360px;
}

/* ---- Slides ---- */
.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
}

.carousel-slide__inner {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    backdrop-filter: blur(12px);
    padding: clamp(16px, 3vw, 32px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    position: relative;
}

.carousel-slide__inner::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

/* ---- Media column ---- */
.carousel-slide__media {
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #141418;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.video-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.youtube-thumbnail {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.youtube-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.youtube-thumbnail:hover .youtube-thumb-img {
    transform: scale(1.05);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    transition: background 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.youtube-thumbnail:hover .video-play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.play-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(201, 169, 98, 0.7);
    background: rgba(0, 0, 0, 0.45);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 20px rgba(201, 169, 98, 0.2), inset 0 0 12px rgba(201, 169, 98, 0.1);
}

.play-button:hover {
    transform: scale(1.08);
    border-color: var(--color-gold);
    background: rgba(201, 169, 98, 0.1);
    box-shadow: 0 0 35px rgba(201, 169, 98, 0.4), inset 0 0 20px rgba(201, 169, 98, 0.15);
}

.play-button--youtube {
    background: rgba(255, 0, 0, 0.85);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.25);
}

.play-button--youtube:hover {
    background: red;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
}

.video-label {
    font-size: 10px;
    color: var(--color-text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Placeholder (no video) */
.carousel-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 169, 98, 0.05) 0%, rgba(201, 169, 98, 0.02) 100%);
    font-size: 48px;
    color: var(--color-gold);
    opacity: 0.15;
}

/* ---- Content column ---- */
.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Stars */
.stars-rating {
    display: flex;
    gap: 4px;
}

.stars-rating .star {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.2);
}

.stars-rating .star.filled {
    background: linear-gradient(135deg, #d4af37 0%, #f9e29c 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 4px rgba(201, 169, 98, 0.3));
}

/* Quote */
.testimonial-quote {
    font-family: var(--font-display), Georgia, serif;
    font-size: clamp(15px, 1.5vw, 18px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.8;
    color: var(--color-text-primary);
    margin: 0;
    position: relative;
    text-wrap: balance;
    opacity: 0.95;
}

.testimonial-quote::before {
    content: '\201C';
    position: absolute;
    top: -28px;
    left: -8px;
    font-size: 5rem;
    font-family: Georgia, serif;
    color: var(--color-gold);
    opacity: 0.07;
    line-height: 1;
    pointer-events: none;
}

/* Author */
.testimonial-author-info {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-gold), var(--color-gold-light, #e8d5a3));
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.author-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.author-details strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.author-details span {
    font-size: 13px;
    font-weight: 300;
    color: var(--color-text-muted);
}

.author-details small {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Verified badge */
.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    color: #22c55e;
    white-space: nowrap;
}

.verified-badge i {
    font-size: 12px;
}

/* ---- Navigation ---- */
.carousel-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
    margin-bottom: clamp(40px, 6vw, 56px);
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-text-secondary);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    backdrop-filter: blur(8px);
}

.carousel-btn:hover {
    border-color: var(--color-gold);
    color: var(--color-gold);
    background: rgba(201, 169, 98, 0.08);
    box-shadow: 0 0 16px rgba(201, 169, 98, 0.15);
    transform: scale(1.05);
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.carousel-dot.active {
    background: var(--color-gold);
    width: 28px;
    box-shadow: 0 0 10px rgba(201, 169, 98, 0.3);
}

.carousel-dot:hover {
    background: rgba(201, 169, 98, 0.5);
}

/* ---- Stats ---- */
.testimonials__stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(24px, 4vw, 48px);
    padding: clamp(24px, 4vw, 40px) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 32px;
}

.testimonials__stat {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.testimonials__stat-value {
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 400;
    color: var(--color-gold);
}

.testimonials__stat-value small {
    font-size: 0.5em;
    color: var(--color-text-muted);
}

.testimonials__stat-label {
    font-size: 11px;
    font-weight: 300;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.testimonials__stat-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, rgba(201, 169, 98, 0.3), transparent);
}

/* CTA */
.testimonials__cta {
    text-align: center;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .carousel-slide__inner {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .carousel-slide__media {
        max-height: 220px;
    }

    .testimonial-carousel {
        min-height: auto;
    }

    .testimonial-author-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .testimonials__stats {
        gap: 20px;
    }

    .testimonials__stat-divider {
        height: 36px;
    }

    .carousel-dot {
        width: 6px;
        height: 6px;
    }

    .carousel-dot.active {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .testimonials__stats {
        flex-direction: column;
        gap: 16px;
    }

    .testimonials__stat-divider {
        width: 48px;
        height: 1px;
    }
}
