/* ==========================================================================
   STYLE PREVIEW GALERY - KINGDOMGAKURE
   ========================================================================== */

.player-gallery-section {
    background-color: var(--bg-dark);
    padding: 80px 0 60px 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-subtitle-galery {
    text-align: center;
    color: var(--text-grey);
    margin-top: -35px;
    margin-bottom: 40px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Container utama Track Marquee */
.gallery-marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
    display: flex;
}

/* Track yang bergerak secara Infinite */
.gallery-marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeScroll 35s linear infinite;
}

/* Efek Hover: Menjeda jalannya slide saat kursor berada di atas gambar */
.gallery-marquee-container:hover .gallery-marquee-track {
    animation-play-state: paused;
}

/* Item Gambar */
.gallery-item {
    width: 320px;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, border-color 0.4s ease;
    flex-shrink: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efek interaktif modern pada gambar */
.gallery-item:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--gold-color);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gradasi Modern untuk batas bawah agar menyatu mulus ke element berikutnya */
.gallery-bottom-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: linear-gradient(to bottom, rgba(11, 14, 20, 0) 0%, var(--bg-dark) 100%);
    pointer-events: none;
    z-index: 3;
}

/* Container Kotak Quotes */
.gallery-quote-container {
    width: 100%;
    max-width: 800px;
    padding: 0 20px;
    margin-top: 40px;
    z-index: 4;
}

.gallery-quote-box {
    background: linear-gradient(145deg, var(--bg-card), #1c222b);
    border: 1px solid rgba(224, 177, 106, 0.2);
    padding: 30px 40px;
    border-radius: 16px;
    text-align: center;
    position: relative;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Batasan dekorasi glow tipis warna gold */
.gallery-quote-box::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 10%;
    width: 80%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold-color), transparent);
}

.quote-icon {
    font-size: 1.8rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    opacity: 0.7;
}

.quote-text {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 15px;
    font-weight: 500;
}

.quote-author {
    display: block;
    color: var(--text-grey);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ANIMASI MARQUEE (Kiri ke Kanan) */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Nilai ini dikontrol & dihitung dinamis menggunakan Javascript */
        transform: translateX(calc(-50% - 10px)); 
    }
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .gallery-item {
        width: 260px;
        height: 155px;
    }
    .gallery-quote-box {
        padding: 25px 20px;
    }
    .quote-text {
        font-size: 0.95rem;
    }
    .player-gallery-section {
        padding: 60px 0 40px 0;
    }
}
