/* ==========================================================================
   1. RESET & CORE VARIABLES (TEMA EPIC CYBER-FANTASY MINECRAFT)
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-dark: #060814;
    --bg-surface: #0b1126;
    --bg-card: #121b3a;
    
    /* Aksentuasi Warna Neon */
    --accent-blue: #00d2ff;
    --accent-java: #ff2a5f;
    --accent-bedrock: #00f59b;
    --accent-gold: #ffd700;
    
    /* Warna Teks */
    --text-main: #ffffff;
    --text-muted: #8fa0dd;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==========================================================================
   2. NAVIGATION BAR (MATCHES HOME STYLESHEET)
   ========================================================================== */
nav {
    background-color: rgba(6, 8, 20, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid #142046;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 10%;
}

.nav-logo {
    font-size: 26px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 210, 255, 0.6), 0 0 20px rgba(0, 210, 255, 0.2);
}

.nav-links {
    display: flex;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.2s, text-shadow 0.2s;
}

.nav-links a:hover {
    color: var(--accent-blue);
    text-shadow: 0 0 8px rgba(0, 210, 255, 0.8);
}

.active-link {
    color: var(--accent-blue) !important;
    border-bottom: 2px solid var(--accent-blue);
    padding-bottom: 4px;
}

/* ==========================================================================
   3. CONTAINER & CONTENT HUB
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 160px auto 80px auto;
    padding: 0 40px;
    text-align: center;
}

.shop-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 15px;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ffffff 30%, #a5ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.7);
}

.shop-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 60px;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* --- GRID SYSTEM MENU HUB --- */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    width: 100%;
}

/* --- INTERACTIVE CARD BUTTONS --- */
.hub-card {
    background: linear-gradient(145deg, var(--bg-surface) 0%, var(--bg-card) 100%);
    border: 2px solid #15224f;
    border-radius: 24px;
    padding: 40px 30px;
    text-decoration: none;
    text-align: left;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.3s, box-shadow 0.3s;
}

.hub-card:hover {
    transform: translateY(-8px);
}

/* Efek Nyala Custom Tiap Tema Menu */
.rankpass-theme:hover { border-color: var(--accent-java); box-shadow: 0 20px 45px rgba(255, 42, 95, 0.15); }
.keys-theme:hover { border-color: var(--accent-gold); box-shadow: 0 20px 45px rgba(255, 215, 0, 0.15); }
.perks-theme:hover { border-color: var(--accent-blue); box-shadow: 0 20px 45px rgba(0, 210, 255, 0.15); }
.items-theme:hover { border-color: var(--accent-bedrock); box-shadow: 0 20px 45px rgba(0, 255, 155, 0.15); }

.hub-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

.hub-card h3 {
    font-size: 1.6rem;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.hub-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hub-badge {
    margin-top: auto;
    align-self: flex-start;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
}

/* Custom badge warna mengikuti tema */
.rankpass-theme .hub-badge { color: var(--accent-java); border-color: rgba(255, 42, 95, 0.3); }
.keys-theme .hub-badge { color: var(--accent-gold); border-color: rgba(255, 215, 0, 0.3); }
.perks-theme .hub-badge { color: var(--accent-blue); border-color: rgba(0, 210, 255, 0.3); }
.items-theme .hub-badge { color: var(--accent-bedrock); border-color: rgba(0, 255, 155, 0.3); }

/* ==========================================================================
   4. MEDIA QUERIES RESPONSIVE (FIXED FOR MOBILE)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Perbaikan Navigasi (Menu tidak hilang, bisa di-scroll kesamping) */
    nav { 
        padding: 15px 5%; 
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .nav-links { 
        display: flex !important; 
        overflow-x: auto;
        width: 100%;
        gap: 18px;
        padding-bottom: 6px;
        white-space: nowrap;
    }

    .nav-links a {
        font-size: 13px;
    }

    /* 2. Perbaikan Kontainer & Kartu Shop */
    .container { 
        margin-top: 100px; 
        padding: 0 20px; 
    }
    
    .shop-title { 
        font-size: 2.2rem; 
    }
    
    .shop-subtitle {
        font-size: 0.95rem;
        margin-bottom: 35px;
    }

    /* KUNCI FIX: Memaksa kartu menjadi 1 kolom tumpuk rapi ke bawah */
    .hub-grid { 
        grid-template-columns: 1fr !important; 
        gap: 20px;
    }

    .hub-card { 
        padding: 25px 20px; 
    }
}

@media (max-width: 480px) {
    .shop-title { 
        font-size: 1.8rem; 
    }
    
    .hub-card h3 {
        font-size: 1.35rem;
    }
}
