/* style.css - ORANGE & BLACK THEME */

:root {
    --bg-color: #050505; /* Hitam Pekat */
    --card-bg: #141414;  /* Abu Gelap untuk Kartu */
    
    /* WARNA UTAMA: ORANGE */
    --brand-orange: #ff9900; 
    --orange-hover: #e68a00;
    --orange-gradient: linear-gradient(180deg, #ff9900 0%, #cc7a00 100%);
    
    --text-color: #ffffff;
    --border-color: #333333; 
}

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 --- */
header {
    background-color: #000;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--brand-orange); /* Garis bawah Orange */
}

/* Logo */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 30px; 
    width: auto; 
    object-fit: contain;
}

/* Tombol Login/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; 
    color: var(--brand-orange); 
    border: 1px solid var(--brand-orange); /* Outline Orange */
}

.btn-daftar {
    background: var(--orange-gradient); /* Tombol Orange Gradasi */
    color: #000; /* Teks Hitam agar kontras dengan Orange */
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.4);
    border: none;
}

/* --- 2. NAVIGASI --- */
nav {
    background-color: #0a0a0a;
    padding: 10px 0;
    border-bottom: 1px solid #333;
    position: sticky; 
    top: 0; 
    z-index: 1200; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

#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%;
}

/* Tombol Menu */
#menu-list li a {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3px;
    
    background: linear-gradient(180deg, #222 0%, #111 100%);
    color: #bbb; 
    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 - ORANGE */
#menu-list li a.active {
    background: var(--brand-orange); 
    color: #000; /* Teks hitam di atas orange */
    border-color: var(--orange-hover);
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.5); 
    transform: scale(1.02);
}

.icon { 
    font-size: 18px; 
    margin-bottom: 2px;
}

/* Desktop Menu Tweak */
@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 {
        background-color: var(--brand-orange);
        color: #000;
        transform: translateY(-2px);
    }
}

/* --- 3. MARQUEE --- */
.marquee-container {
    background: #000; /* Background hitam */
    color: var(--brand-orange); /* Teks Orange */
    padding: 8px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--brand-orange);
    border-top: 1px solid var(--brand-orange);
    font-weight: bold;
}

/* --- 4. BANNER SLIDESHOW (Fixed Size) --- */
.banner-container {
    width: 95%; 
    max-width: 1200px;
    margin: 10px auto;
    
    /* UKURAN SESUAI REQUEST: 1200x327 */
    aspect-ratio: 1200 / 329; 
    
    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 {
        border-radius: 15px;
        margin-bottom: 30px;
    }
}

/* --- 5. EMBED BOX --- */
.embed-box {
    width: 100%;
    min-height: 600px;
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-top: 4px solid var(--brand-orange); /* Top border Orange */
    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...";
    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: #1a1a1a !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(--brand-orange);
    color: var(--brand-orange);
}

.game-icon {
    font-size: 30px;
    margin-bottom: 10px;
    display: block;
    color: var(--brand-orange); /* Icon Orange */
}

/* --- 7. SPA LOGIC --- */
.container {
    max-width: 1200;
    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: 3px solid var(--brand-orange);
    color: #888;
}

/* --- JADWAL LIVE STREAM (ORANGE BLACK STYLE) --- */

.live-card {
    background: linear-gradient(145deg, #fffdfd, #030303); 
    border: 1px solid #333;
    border-top: 3px solid var(--brand-orange);
    border-bottom: 3px solid var(--brand-orange);
    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);
    position: relative;
    overflow: hidden;
}

/* Efek Kilau Orange Halus */
.live-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 153, 0, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.league-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #444;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.league-logo {
    height: 40px; 
    object-fit: contain;
}

.match-date {
    color: var(--brand-orange); 
    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 15px rgba(255, 153, 0, 0.2); /* Glow Orange */
}

.team-name {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.vs-badge {
    color: var(--brand-orange); 
    font-weight: 1200;
    font-size: 100px;
    text-shadow: 0 0 15px rgba(255, 153, 0, 0.4);
    font-style: italic;
}

/* Info Waktu */
.live-time {
    background: var(--brand-orange); 
    color: #000; /* Teks Hitam di background Orange */
    padding: 8px 20px;
    border-radius: 20px;
    display: inline-block;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(255, 153, 0, 0.3);
}

/* 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(--brand-orange)); 
}

/* 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 Orange di atas kotak */
.time-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-orange);
    border-radius: 8px 8px 0 0;
}

.time-val {
    font-size: 24px;
    font-weight: bold;
    color: var(--brand-orange);
    font-family: 'Courier New', Courier, monospace; 
}

.time-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 1px;
}

/* Animasi berkedip */
@keyframes blink {
    50% { opacity: 0.5; }
}