/* ============================================================
   [1. GLOBAL & RESET]
   ============================================================ */
:root {
    --gold: #d4af37;
    --dark: #0f0f0f;
    --card-bg: #1a1a1a;
    --white: #e0e0e0;
    --accent: #8b0000; /* Dark Red */
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body { 
    background: #000; 
    font-family: 'Roboto', sans-serif; 
    display: flex; 
    justify-content: center; 
}

.mobile-container {
    width: 100%; 
    max-width: 480px; 
    min-height: 100vh;
    background: var(--dark); 
    color: var(--white);
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.section-title {
    font-family: 'Cinzel', serif;
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 15px;
    border-left: 3px solid var(--gold);
    padding-left: 10px;
}
/* ============================================================
   [NAVIGASI: TOP NAV]
   ============================================================ */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(15, 15, 15, 0.95); /* Semi-transparan agar terlihat modern */
    backdrop-filter: blur(10px); /* Efek blur di belakang nav */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #222;

    .logo {
        font-family: 'Cinzel', serif;
        text-decoration: none;
        color: var(--white);
        font-size: 1.1rem;
        font-weight: 700;
        letter-spacing: 1px;
        
        span { 
            color: var(--gold); 
            margin-left: 4px;
        }
    }

    .menu-icon {
        color: var(--gold);
        font-size: 1.5rem;
        cursor: pointer;
        transition: 0.3s;
        
        &:active {
            transform: scale(0.9);
            opacity: 0.7;
        }
    }
}

/* ============================================================
   [2. HERO SECTION]
   ============================================================ */
.hero {
    .banner { 
        height: 350px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        text-align: center; 
        background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), 
                    url('https://images8.alphacoders.com/105/1056553.jpg') no-repeat center center/cover; 
    }
    .title { 
        font-family: 'Cinzel', serif; 
        color: var(--gold); 
        font-size: 2.2rem; 
        line-height: 1.1;
        text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
    }
    .btn-more { 
        margin-top: 20px; 
        padding: 10px 25px; 
        border: 2px solid var(--gold); 
        color: var(--gold); 
        text-decoration: none; 
        display: inline-block; 
        font-weight: bold;
        transition: 0.3s;
    }
    .btn-more:hover { background: var(--gold); color: #000; }
}

/* ============================================================
   [3. NEWS SECTION]
   ============================================================ */
.news {
    padding: 20px;
    .card { 
        background: var(--card-bg); 
        padding: 15px; 
        border-radius: 8px; 
        border: 1px solid #222;
    }
    .date { font-size: 0.7rem; color: #888; }
    .headline { color: var(--gold); margin: 5px 0; font-size: 1rem; }
    .summary { font-size: 0.85rem; color: #bbb; line-height: 1.4; }
}

/* ============================================================
   [4. KLASMEN]
   ============================================================ */
/* Update pada bagian [4. KLASMEN] */
.klasmen {
    padding: 10px 20px; /* Sedikit dikurangi agar tidak terlalu jauh jaraknya */

    .section-title { margin-left: 0; }

    .wrapper { 
        background: var(--card-bg); 
        border-radius: 10px; 
        overflow: hidden; 
        border: 1px solid #333; 
    }

    .team-name {
    a { color: var(--white); text-decoration: none; display: block; }
    a:hover { color: var(--gold); }
}

    .table { 
        width: 100%; 
        border-collapse: collapse; 
        font-size: 0.8rem; /* Sedikit lebih kecil agar muat banyak kolom */
    }

    .table th { 
        background: #252525; 
        color: var(--gold); 
        padding: 12px 8px; 
        text-align: left; 
        font-family: 'Cinzel', serif;
    }

    .table td { 
        padding: 12px 8px; 
        border-bottom: 1px solid #222; 
        vertical-align: middle;
    }

    .rank { font-weight: bold; color: var(--gold); text-align: center; width: 35px; }
    
    .team-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    .text-center { text-align: center; }
    
    .text-win { color: #2ecc71; font-weight: bold; } /* Hijau untuk Win */
    .text-lose { color: #e74c3c; opacity: 0.8; } /* Merah pudar untuk Lose */

    .pts { 
        font-weight: bold; 
        text-align: right; 
        color: var(--white); 
        background: rgba(212, 175, 55, 0.1); /* Highlight tipis untuk kolom poin */
        padding-right: 15px !important;
    }
}

/* ============================================================
   [5. JADWAL]
   ============================================================ */
.jadwal {
    padding: 20px;
    .card { 
        background: var(--card-bg); 
        padding: 15px; 
        border-radius: 10px; 
        margin-bottom: 12px; 
        border: 1px solid #333; 
    }
    .info { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--gold); margin-bottom: 8px; opacity: 0.8; }
    .match { display: flex; justify-content: space-between; align-items: center; font-weight: bold; }
    .vs { font-size: 0.6rem; color: #555; background: #000; padding: 2px 6px; border-radius: 4px; }
}

/* ============================================================
   [6. DONATION]
   ============================================================ */
.donation {
    padding: 20px;
    .box { 
        padding: 25px; 
        background: linear-gradient(135deg, var(--accent), #4a0000); 
        border-radius: 15px; 
        text-align: center;
        box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    }
    .title { font-family: 'Cinzel', serif; margin-bottom: 10px; font-size: 1.2rem; color: #fff; }
    .text { font-size: 0.85rem; color: #ffcccc; margin-bottom: 15px; }
    .btn-gold { 
        display: block; 
        background: var(--gold); 
        color: #000; 
        padding: 12px; 
        text-decoration: none; 
        font-weight: bold; 
        border-radius: 8px;
        font-size: 0.9rem;
    }
}

/* ============================================================
   [7. SPONSOR]
   ============================================================ */
.sponsors {
    padding: 20px;
    .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .logo-box { 
        height: 60px; 
        background: #151515; 
        border-radius: 8px; 
        display: flex; 
        align-items: center; 
        justify-content: center; 
        font-size: 0.7rem; 
        color: #444;
        border: 1px solid #222;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}

/* ============================================================
   [8. COMMITTEE]
   ============================================================ */
.committee {
    padding: 20px;
    .list { 
        background: var(--card-bg); 
        padding: 15px; 
        border-radius: 10px; 
        border: 1px solid #222;
    }
    .member { 
        padding: 10px 0; 
        border-bottom: 1px solid #252525; 
        font-size: 0.9rem; 
        display: flex;
        justify-content: space-between;
    }
    .member:last-child { border-bottom: none; }
    strong { color: var(--gold); }
}

/* ============================================================
   [9. FOOTER]
   ============================================================ */
.main-footer {
    text-align: center;
    padding: 40px 20px;
    background: #000;
    p { font-size: 0.7rem; color: #555; letter-spacing: 0.5px; }
}

/* ============================================================
   [10. TEAM PROFILE]
   ============================================================ */
.profile {
    padding-bottom: 50px;
    
    .profile-header {
        padding: 40px 20px;
        background: linear-gradient(to bottom, #1a1a1a, var(--dark));
        text-align: center;
        border-bottom: 1px solid #333;
    }

    .btn-back { color: var(--gold); text-decoration: none; font-size: 0.8rem; display: block; margin-bottom: 15px; }
    .team-title { font-family: 'Cinzel', serif; color: var(--gold); font-size: 1.8rem; }
    .captain { font-size: 0.9rem; color: #888; margin-top: 5px; span { color: var(--white); } }

    .stats-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 20px;
    }

    .stat-box {
        background: var(--card-bg);
        padding: 15px 5px;
        text-align: center;
        border-radius: 10px;
        border: 1px solid #222;
        .label { display: block; font-size: 0.7rem; color: #666; text-transform: uppercase; }
        .val { font-size: 1.2rem; font-weight: bold; margin-top: 5px; display: block; }
    }

    .team-matches {
        padding: 0 20px;
        .match-card {
            background: #151515;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 10px;
            border: 1px solid #222;
        }
        .match-date { font-size: 0.7rem; color: var(--gold); margin-bottom: 5px; }
        .match-teams { 
            display: flex; justify-content: space-between; font-size: 0.85rem; 
            .highlight { color: var(--gold); font-weight: bold; }
            .vs { color: #444; }
        }
        .no-data { text-align: center; color: #555; font-size: 0.8rem; margin-top: 20px; }
    }
}

/* ============================================================
   [SECTION: CLANS GRID]
   ============================================================ */
.clans {
    .container { padding: 10px 20px; }
    
    .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* 3 kolom di mobile */
        gap: 15px;
        margin-top: 10px;
    }

    .item {
        text-decoration: none;
        text-align: center;
        transition: transform 0.2s;

        &:active { transform: scale(0.95); } /* Efek klik mobile */
        
        .logo-wrapper {
            width: 75px;
            height: 75px;
            margin: 0 auto;
            background: #1a1a1a;
            border: 2px solid #333;
            border-radius: 50%; /* Membuat logo lingkaran */
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);

            img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }

        .name {
            display: block;
            margin-top: 8px;
            font-size: 0.7rem;
            color: var(--white);
            font-weight: bold;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis; /* Nama panjang akan terpotong (...) */
            text-transform: uppercase;
        }
    }
}

