/* == 1. Reset Global & Variabel Warna == */
:root {
    --color-primary: #ffd700; /* Emas (Aksen Utama) */
    --color-primary-dark: #e6c200;
    --color-secondary: #dc3545; /* Merah (Aksen CTA) */
    --color-bg: #180202;      /* Biru malam (Background Utama) */
    --color-bg-light: #450000; /* Biru gelap (Background Card/Section) */
    --color-text: #f0f0f0;    /* Putih pudar (Teks Utama) */
    --color-text-muted: #fff; /* Abu-abu (Teks Sekunder) */
}

/* ========================================
== [BARU] KEYFRAMES UNTUK ANIMASI
========================================
*/
@keyframes pulse {
    0% {
        box-shadow: 0 0 5px var(--color-primary), 0 0 10px var(--color-primary);
    }
    50% {
        box-shadow: 0 0 15px var(--color-primary), 0 0 25px var(--color-primary);
    }
    100% {
        box-shadow: 0 0 5px var(--color-primary), 0 0 10px var(--color-primary);
    }
}


body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
}

*, *::before, *::after {
    box-sizing: border-box;
}
/* ... (Reset h, a, img, .container, .section-title tidak berubah) ... */
img {
    max-width: 100%;
    height: auto;
    display: block;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
    color: var(--color-primary);
    margin-top: 0;
    margin-bottom: 0.5em;
}
a {
    text-decoration: none;
    color: var(--color-primary);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--color-primary-dark);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
}


/* == 2. Tombol (Utility) == */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 5px;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #111;
    /* [MODIFIKASI] Tambahkan box-shadow awal untuk animasi */
    box-shadow: 0 0 5px var(--color-primary), 0 0 10px var(--color-primary);
}
.btn-primary:hover {
    background-color: var(--color-primary-dark);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); /* Hover lebih intens */
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-secondary:hover {
    background-color: var(--color-primary);
    color: #111;
}

.btn-lg {
    font-size: 1.1rem;
    padding: 15px 35px;
}

/* == 3. Header == */
.site-header {
    background-color: rgb(71 0 0 / 85%); 
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
    /* [MODIFKASI] Ganti border dengan shadow agar lebih premium */
    box-shadow: 0 2px 10px rgb(255 0 0 / 50%);
    border-bottom: 1px solid #333; /* Tetap ada border tipis */
}
/* ... (Style header, logo, nav, auth tidak berubah) ... */
.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo h1 {
    margin: 0;
    font-size: 1.8rem;
}
.logo h1 a {
    color: var(--color-primary);
    text-decoration: none;
}
.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 25px;
}
.main-nav a {
    color: var(--color-text);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
}
.main-nav a:hover {
    color: var(--color-primary);
}
.auth-buttons {
    display: flex;
    gap: 10px;
}


/* == 4. Hero Section == */
.hero {
    position: relative;
    height: 70vh;
    min-height: 400px;
    background-image: url('https://res.cloudinary.com/dvdjf9ta8/image/upload/v1762169876/bannes_o8fwul.png'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative; 
    z-index: 2;
    max-width: 600px;
}

.hero-content h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 15px;
    /* [MODIFIKASI] Tambahkan text-shadow untuk efek glow */
    text-shadow: 0 0 10px var(--color-primary), 0 0 20px var(--color-primary-dark), 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 30px;
}

/* [BARU] Terapkan animasi pulse ke tombol hero */
.hero .btn-primary {
    animation: pulse 2s infinite ease-in-out;
}


/* == 5. Games Section == */
.games-section {
    padding: 60px 0;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.game-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #333;
    /* [MODIFIKASI] Tambahkan shadow & transisi */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.game-card img {
    width: 100%;
    transition: transform 0.4s ease;
}

.game-card-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0));
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: opacity 0.4s ease;
}

.game-card:hover .game-card-hover {
    opacity: 1;
}

.game-card:hover img {
    transform: scale(1.1);
}

/* [MODIFIKASI] Efek hover lebih keren */
.game-card:hover {
    transform: translateY(-10px); /* Melayang lebih tinggi */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--color-primary-dark); /* Glow emas */
}

/* ... (Style game-card-hover h3 & .btn tidak berubah) ... */
.game-card-hover h3 {
    color: #fff;
    font-size: 1.4rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}
.game-card:hover h3 {
    transform: translateY(0);
}
.game-card-hover .btn {
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s; /* Delay */
}
.game-card:hover .btn {
    transform: translateY(0);
}

/* == 6. Promo Section == */
/* ... (Tidak ada perubahan) ... */
.promo-section {
    padding: 60px 0;
    background-color: var(--color-bg-light);
}
.promo-content {
    display: flex;
    align-items: center;
    gap: 40px;
}
.promo-image {
    flex: 1;
}
.promo-image img {
    border-radius: 8px;
}
.promo-text {
    flex: 1;
}
.promo-text h2 {
    font-size: 2.5rem;
}
.promo-text ul {
    list-style: '✓';
    padding-left: 20px;
}
.promo-text li {
    margin-bottom: 10px;
    padding-left: 10px;
}

/* == 7. Features Section == */
/* ... (Tidak ada perubahan) ... */
.features-section {
    padding: 60px 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}
.feature-item {
    background-color: var(--color-bg-light);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #fff;
}
.feature-item h3 {
    color: var(--color-text);
    font-size: 1.4rem;
}
.feature-item p {
    color: var(--color-text-muted);
}

/* ========================================
== [BARU] 8. FAQ Section
========================================
*/
.faq-section {
    padding: 60px 0;
    background-color: var(--color-bg); /* Kembali ke bg utama */
}

.faq-container {
    max-width: 800px; /* Lebih sempit agar mudah dibaca */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Jarak antar pertanyaan */
}

.faq-item {
    border: 1px solid #fff;
    border-radius: 8px;
    background-color: var(--color-bg-light);
    overflow: hidden; /* Agar border-radius rapi */
}

.faq-question {
    display: block; /* Agar bisa diklik di area penuh */
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    position: relative; /* Untuk ikon + / - */
}

/* Menghilangkan panah default dari <summary> */
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question {
    list-style: none;
}

/* Ikon + kustom */
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--color-primary);
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

/* Ubah ikon menjadi - saat terbuka */
.faq-item[open] .faq-question::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg); /* Animasi putar */
}

.faq-answer {
    padding: 0 20px 20px 20px; /* Padding bawah saat terbuka */
    color: var(--color-text-muted);
    line-height: 1.7;
    border-top: 1px solid #fff;
}
.faq-answer p {
    margin: 0;
    padding-top: 15px; /* Jarak dari border atas */
}


/* == 9. Footer == */
/* ... (Tidak ada perubahan) ... */
.site-footer {
    background-color: #000;
    padding: 40px 0 20px 0;
    border-top: 2px solid var(--color-primary);
    text-align: center;
    font-size: 0.9rem;
}
.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}
.footer-links a {
    color: #ccc;
    font-weight: 600;
}
.footer-links a:hover {
    color: #fff;
}
.footer-disclaimer {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    margin: 20px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
.copyright {
    color: #777;
    margin-top: 20px;
    border-top: 1px solid #333;
    padding-top: 20px;
}

/* == 10. Responsif == */
/* ... (Tidak ada perubahan) ... */
@media (max-width: 900px) {
    .promo-content {
        flex-direction: column;
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none; 
    }
    .site-header .container {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .auth-buttons {
         flex-basis: 100%;
         justify-content: center;
         margin-top: 10px;
         display: none;
    }
    .hero-content h2 {
        font-size: 2.5rem;
    }
    .game-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    .game-card-hover h3 {
        font-size: 1rem;
    }
    .game-card-hover .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    .faq-question {
        font-size: 1rem;
    }
}
/* ========================================
== [UPDATE] CSS UNTUK POPUP PROMO
========================================
*/

/* 1. Latar Belakang Overlay (Tidak berubah) */
.popup-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    display: none; 
    align-items: center;
    justify-content: center;
}

/* 2. Kotak Konten Popup (Dimodifikasi) */
.popup-content {
    position: relative;
    background-color: var(--color-bg-light, #1a1a2e); 
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-primary, #ffd700);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    width: 90%;
    text-align: center;
    color: var(--color-text, #f0f0f0);
    animation: popup-fade-in 0.3s ease-out;
    
    /* [BARU] Menyiapkan 'z-index' agar pola ada di belakang */
    z-index: 1; 
}

/* * [BARU] Ini adalah "theme background kecil" yang Anda minta.
 * Ini menempatkan gambar pola DI BELAKANG konten tapi DI ATAS background.
*/
.popup-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* GANTI URL INI dengan gambar pola kecil Anda */
    background-image: url('https://res.cloudinary.com/dvdjf9ta8/image/upload/v1762170421/1_a9tozb.png'); 
    
    background-repeat: repeat; /* Ulangi pola */
    background-size: 150px; /* Atur ukuran pola Anda */
    opacity: 0.05; /* Buat sangat transparan */
    border-radius: 8px; /* Samakan dengan border .popup-content */
    
    /* [PENTING] Taruh di belakang konten (teks, tombol) */
    z-index: -1; 
}


/* 3. Tombol Tutup (X) (Tidak berubah) */
.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2.5rem;
    color: var(--color-text-muted, #888);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.popup-close-btn:hover {
    color: var(--color-text, #fff);
}

/* * 4. [BARU] Style untuk Link H2
 * Ini menggantikan style `.popup-content h2` Anda sebelumnya
*/
.popup-promo-link {
    display: block; /* Membuat seluruh area bisa diklik */
    text-decoration: none; /* Menghapus garis bawah link */
    margin-bottom: 15px;
    border-bottom: 1px dashed #444;
    transition: background-color 0.2s ease-out;
}
.popup-promo-link:hover {
    background-color: rgba(255, 255, 255, 0.05); /* Efek hover samar */
    border-radius: 5px;
}

/* Target H2 di dalam link */
.popup-promo-link h2 {
    color: var(--color-primary, #ffd700);
    font-size: 1.5rem; 
    margin: 0; /* Hapus margin default H2 */
    padding: 15px 10px; /* Beri padding agar lebih rapi */
}

/* Hapus border dan atur jarak untuk item terakhir */
.popup-promo-link:last-of-type {
    margin-bottom: 25px; 
    border-bottom: none;
}


/* 5. Animasi Keyframe (Tidak berubah) */
@keyframes popup-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}