/* Palet Warna E-Sport MLBB */
:root {
    --primary-color: #ffffff;
    --secondary-color: #1a1a1a;
    --text-color: #ffffff;
    --accent-color: #e53935;
    --gold-color: #ffb74d; /* Warna emas untuk efek glow */
    --gap-spacing: 20px;
}

/* Styling Dasar */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    background-color: var(--secondary-color);
    color: var(--text-color);
    /* Ganti background dengan gradien gelap untuk kedalaman */
    background: linear-gradient(135deg, #111111 0%, var(--secondary-color) 100%);
}

/* --- UTILITY --- */
.hidden {
    display: none !important; /* Menyembunyikan tombol pendaftaran */
}

/* --- PERBAIKAN LINK GAMBAR & EFEK GLOW PADA GAMBAR --- */
.banner-section a, .image-gallery-section a {
    text-decoration: none;
    border: none;
    display: block; 
    line-height: 0; 
    transition: transform 0.3s ease; /* Transisi untuk efek zoom/hover */
}

/* Efek sedikit zoom pada hover link gambar */
.banner-section a:hover, .image-gallery-section a:hover {
    transform: scale(1.005);
}

.banner-image { 
    width: 100%; 
    height: auto; 
    display: block; 
    /* Efek glow emas/api pada banner */
    box-shadow: 0 0 30px rgba(255, 183, 77, 0.4), 0 0 15px rgba(255, 183, 77, 0.6);
    transition: box-shadow 0.4s ease-in-out;
}

.banner-image:hover {
    box-shadow: 0 0 50px rgba(255, 183, 77, 0.7), 0 0 25px rgba(255, 183, 77, 0.9);
}


/* --- IMAGE GALLERY SECTION --- */
.image-gallery-section {
    width: 100%;
    padding: var(--gap-spacing) 0; 
    background-color: transparent; /* Gunakan background body */
}

.full-width-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: var(--gap-spacing);
    /* Efek glow merah/aksen pada gambar utama galeri */
    box-shadow: 0 0 15px var(--accent-color), 0 0 5px rgba(229, 57, 53, 0.8); 
    transition: box-shadow 0.3s ease-in-out;
}

.full-width-image:hover {
    box-shadow: 0 0 30px var(--accent-color), 0 0 10px rgba(229, 57, 53, 1);
}

.split-images {
    display: flex;
    justify-content: center;
    gap: var(--gap-spacing);
    margin-bottom: var(--gap-spacing);
    padding: 0 10px; 
    box-sizing: border-box;
}

.split-link {
    width: 45%; 
    max-width: 500px;
    display: block; 
}

.split-image {
    width: 100%; 
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.8);
    transition: box-shadow 0.3s, transform 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.split-link:hover .split-image {
    /* Efek glow ringan saat hover pada gambar split */
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 8px 20px rgba(0, 0, 0, 0.9);
    transform: translateY(-2px);
}

/* --- POP-UP LIGHTBOX (Tidak Berubah) --- */
.popup-lightbox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.95); 
    z-index: 9999; 
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.popup-lightbox:target {
    opacity: 1;
    pointer-events: auto;
}

.popup-lightbox img {
    max-width: 90%; 
    max-height: 90vh; 
    display: block;
    margin: auto;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5); /* Bayangan lebih kuat di pop-up */
    border: 5px solid var(--primary-color);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--accent-color);
}


/* --- DAFTAR TIM SECTION (DIKEMBALIKAN KE ASLI) --- */
.teams-section {
    padding: 40px 20px;
    background-color: var(--secondary-color);
}

.teams-section h2 {
    font-size: 2.5em; 
    color: var(--primary-color); 
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; 
}

.team-item {
    width: 180px; 
    padding: 15px;
    background-color: #282828; 
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); 
    transition: transform 0.3s;
}

.team-item:hover {
    transform: scale(1.05); 
    box-shadow: 0 8px 20px rgba(247, 183, 49, 0.2); 
}

.team-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid var(--primary-color); 
}

.team-name {
    font-weight: 700;
    font-size: 1.1em;
    color: var(--primary-color); 
    text-transform: uppercase;
    margin: 5px 0 0 0;
    text-shadow: 1px 1px 2px black;
}

#loading-message {
    margin-top: 30px;
    font-style: italic;
    color: #666;
}

/* --- FOOTER --- */
footer {
    padding: 20px;
    background-color: #111;
    color: #555;
    font-size: 0.9em;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    
    .register-button {
        font-size: 20px;
        padding: 12px 30px;
    }

    .teams-section h2 {
        font-size: 2em;
    }

    /* ********** PERBAIKAN TAMPILAN MOBILE TIM (4 KOLOM) ********** */
    
    .team-grid {
        gap: 10px; /* Kurangi gap agar 4 kolom lebih muat */
        padding: 0 5px; 
    }

    .team-item {
        /* (100% - 3 * 10px gap) / 4 */
        width: calc((100% - 30px) / 4); 
        max-width: 100px; 
        padding: 5px; /* Kurangi padding agar item lebih kecil */
    }

    .team-logo {
        width: 50px; /* Ukuran logo disesuaikan untuk 4 kolom */
        height: 50px;
        border: 2px solid var(--primary-color); 
        margin-bottom: 3px;
    }
    
    .team-name {
        font-size: 0.65em; /* Ukuran font lebih kecil */
        line-height: 1.1;
    }
    
    /* Perbaikan untuk gambar split di galeri (tetap 1 kolom) */
    .split-images {
        flex-direction: column; 
        align-items: center;
        gap: 15px;
    }

    .split-link {
        width: 90%; 
        max-width: none;
    }
}