/* style.css - KINGLIGA THEME (COLOR ONLY CHANGE) */

:root {
    --bg-color: #050505; /* Lebih hitam pekat ala Kingliga */
    --card-bg: #121212;  /* Dark Grey untuk kartu */
    --gold-color: #ffd700;
    --gold-gradient: linear-gradient(180deg, #ffd700 0%, #ffaa00 100%);
    --text-color: #ffffff;
    --accent-blue: #00b4d8;
    
    /* GANTI VARIABEL MAROON JADI HITAM GRADASI ELEGANT */
    --maroon-btn: #1a1a1a; 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* --- 1. HEADER (LOGO GAMBAR & LINK LOGIN) --- */
header {
    background-color: #000;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

/* Style untuk Logo Gambar */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px; 
    width: auto; 
    object-fit: contain;
}

/* Style untuk Tombol Link (MASUK & DAFTAR) */
.auth-buttons {
    display: flex;
    gap: 5px;
}

.auth-buttons a {
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px; 
    text-decoration: none; 
    display: inline-block;
    text-align: center;
    transition: transform 0.2s;
}

.auth-buttons a:hover {
    transform: translateY(-2px); 
}

.btn-login {
    background: #000; /* Hitam pekat */
    color: var(--gold-color); /* Teks Emas */
    border: 1px solid var(--gold-color); /* Border Emas */
}

.btn-daftar {
    background: var(--gold-gradient);
    color: black;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    border: none;
}

/* --- 2. NAVIGASI (GRID MENU 3 KOLOM DI HP) --- */
nav {
    background-color: #000;
    padding: 10px 0;
    border-bottom: 2px solid #333;
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

#menu-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 10px; 
    padding: 0 10px;
    margin: 0;
    list-style: none;
    overflow-x: visible; 
    white-space: normal;
}

#menu-list li {
    width: 100%;
}

/* Tampilan Tombol Menu (Kotak Kecil di HP) */
#menu-list li a {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3px;
    
    /* GANTI DARI MAROON KE GRADASI HITAM */
    background: linear-gradient(180deg, #222 0%, #111 100%);
    color: #ccc; /* Warna teks default silver/abu */
    border: 1px solid #333;
    
    padding: 1px 1px; 
    border-radius: 10px; 
    
    font-weight: bold;
    font-size: 11px; 
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    height: 100%; 
}

/* Efek Tombol Aktif - SESUAI KINGLIGA (EMAS) */
#menu-list li a.active {
    background: var(--gold-gradient); /* Tetap emas */
    color: #000;
    border-color: #ffd700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.6); /* Glow kuning, bukan cyan */
    transform: scale(1.02);
}

.icon { 
    font-size: 18px; 
    margin-bottom: 2px;
}

/* --- TWEAK KHUSUS LAPTOP/PC (Layar > 768px) --- */
@media (min-width: 768px) {
    #menu-list {
        display: flex; 
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px; 
    }
    
    #menu-list li {
        width: auto;
    }

    #menu-list li a {
        flex-direction: row; 
        padding: 1px 2px;
        font-size: 14px;
        border-radius: 50px; 
    }
    
    #menu-list li a:hover {
        /* GANTI MERAH JADI DARK GREY */
        background-color: #333;
        color: var(--gold-color);
        transform: translateY(-2px);
    }
}

/* --- 3. KOMPONEN UMUM (MARQUEE) --- */
.marquee-container {
    background: #000;
    color: var(--gold-color);
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid #333;
}

/* --- 4. BANNER SLIDESHOW --- */
.banner-container {
    width: 95%; 
    margin: 10px auto;
    aspect-ratio: 3333 / 1371; 
    
    position: relative; 
    overflow: hidden;
    
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.banner-slide {
    width: 100%;
    height: 100%;
    position: absolute; 
    top: 0;
    left: 0;
    opacity: 0; 
    transition: opacity 0.8s ease-in-out;
    z-index: 1;
}

.banner-slide.active {
    opacity: 1;
    z-index: 2;
}

.banner-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}

@media (min-width: 768px) {
    .banner-container {
        width: 100%;
        max-width: 1000px;
        border-radius: 15px;
        margin-bottom: 30px;
    }
}

/* --- 5. EMBED BOX (WADAH WIDGET) --- */
.embed-box {
    width: 100%;
    min-height: 600px;
    background-color: #1e1e1e;
    border: 1px solid #333;
    border-top: 4px solid #FFD700;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.embed-box::before {
    content: "Memuat Data King Liga...";
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: #777;
    font-size: 14px;
    z-index: 0;
}

.embed-box > div {
    position: relative;
    z-index: 2; 
    background-color: #1e1e1e !important; 
}

/* --- 6. GRID GAMES --- */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.game-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #333;
    transition: transform 0.2s;
    cursor: pointer;
    color: #fff;
}

.game-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-color);
}

.game-icon {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
    color: var(--gold-color); /* Ubah ikon jadi emas */
}

/* --- 7. SPA LOGIC --- */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.page-section {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.page-section.active-section {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- 8. FOOTER --- */
footer {
    background: #000;
    padding: 30px;
    text-align: center;
    margin-top: 40px;
    border-top: 2px solid var(--gold-color);
    color: #888;
}

/* --- JADWAL LIVE STREAM (THEME UPDATED) --- */

.live-card {
    /* GANTI GRADASI ABU-MERAH JADI HITAM ELEGANT */
    background: linear-gradient(145deg, #fffdfd, #030303); 
    border: 1px solid #333;
    border-top: 3px solid var(--gold-color);
    border-radius: 15px;
    padding: 25px;
    max-width: 600px;
    margin: 0 auto 30px auto; 
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8); /* Shadow lebih gelap */
    position: relative;
    overflow: hidden;
}

/* Efek Kilau di Background */
.live-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,215,0,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.league-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.league-logo {
    height: 40px; 
    object-fit: contain;
}

.match-date {
    /* GANTI HITAM JADI EMAS (Karena background sekarang gelap) */
    color: var(--gold-color); 
    font-size: 14px;
    font-weight: 500;
}

/* Area Tim (VS) */
.match-versus {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.team-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%; 
}

.team-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #fff; 
    border-radius: 50%;
    padding: 5px;
    margin-bottom: 10px;
    box-shadow: 0 0 10px rgba(255,215,0,0.2);
}

.team-name {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.vs-badge {
    color: var(--gold-color);
    font-weight: 1000;
    font-size: 100px;
    text-shadow: 0 0 10px rgba(255,215,0,0.5);
    font-style: italic;
}

/* Info Waktu */
.live-time {
    /* GANTI BACKGROUND MERAH MUDA JADI HITAM BERKELAS */
    background: #000;
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 20px;
    /* Ganti border merah jadi Emas */
    border: 1px solid var(--gold-color); 
    box-shadow: 0 0 5px rgba(255,215,0,0.2);
}

/* Tombol Play Gambar */
.play-btn-img {
    width: 200px;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

.play-btn-img:hover {
    transform: scale(1.05); 
    filter: drop-shadow(0 0 10px var(--gold-color)); 
}

/* Responsif HP */
@media (max-width: 600px) {
    .match-versus {
        gap: 10px;
    }
    .team-logo {
        width: 60px;
        height: 60px;
    }
    .team-name {
        font-size: 14px;
    }
}

/* --- FITUR COUNTDOWN TIMER --- */

.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 15px; 
    margin: 20px 0;
}

.time-box {
    background: #000;
    border: 1px solid #333;
    border-radius: 8px;
    width: 70px; 
    padding: 10px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    position: relative;
}

/* Garis aksen emas di atas kotak */
.time-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold-color);
    border-radius: 8px 8px 0 0;
}

.time-val {
    font-size: 24px;
    font-weight: bold;
    color: var(--gold-color); /* Angka diubah jadi Emas */
    font-family: 'Courier New', Courier, monospace; 
}

.time-label {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Animasi berkedip */
@keyframes blink {
    50% { opacity: 0.5; }
}