/* =========================================
   CORE CSS - CEK DESIL VGA KAMU
   Theme: Dark Cyberpunk Gaming
   ========================================= */

/* Reset & Normalize */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Base Colors */
    --bg-primary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-glow: rgba(255, 255, 255, 0.08);
    
    /* Text Colors */
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Accent & Neon */
    --accent-neon: #00f0ff;
    --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.15);
    
    /* Typography */
    --font-main: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* UI */
    --radius: 12px;
    
    /* Desil Colors (Kasta) */
    --desil-1: #f37021; /* RAKYAT JELATA */
    --desil-2: #ef4444; /* PEJUANG FPS */
    --desil-3: #d946ef; /* BUDGET GAMER */
    --desil-4: #8b5cf6; /* RISING GAMER */
    --desil-5: #3b82f6; /* GAMING PROPER */
    --desil-6: #0ea5e9; /* SWEET SPOT */
    --desil-7: #06b6d4; /* SEMI SULTAN */
    --desil-8: #10b981; /* SULTAN */
    --desil-9: #22c55e; /* SULTAN BESAR */
    --desil-10: #84cc16; /* UNLIMITED MONEY */
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

a {
    color: var(--accent-neon);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    text-shadow: 0 0 8px var(--accent-neon);
}

p {
    margin-bottom: 1rem;
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Glassmorphism Card Component */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glow);
    padding: 1rem 0;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: var(--shadow-neon);
}
.nav-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}
.btn-audio {
    background: none;
    border: 1px solid var(--accent-neon);
    color: var(--accent-neon);
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    transition: all 0.3s;
}
.btn-audio:hover {
    background: var(--accent-neon);
    color: var(--bg-primary);
    box-shadow: var(--shadow-neon);
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(90deg, #ff007f, #7928ca, #00f0ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}
.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Search Card */
.search-card {
    max-width: 800px;
    margin: 0 auto 3rem;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-glow);
    border-radius: var(--radius);
    color: #fff;
    font-family: var(--font-mono);
    transition: all 0.3s;
}
.search-input:focus {
    outline: none;
    border-color: var(--accent-neon);
    box-shadow: var(--shadow-neon);
}
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-primary);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    margin-top: 0.5rem;
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
}

/* Desil Mini Cards Grid */
.desil-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}
.desil-card {
    text-align: center;
    padding: 1rem;
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    font-weight: bold;
    font-size: 0.9rem;
    cursor: default;
    background: var(--bg-card);
}
/* Mobile 5x2 */
@media (max-width: 768px) {
    .desil-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Desktop 10-col */
@media (min-width: 1024px) {
    .desil-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}
/* Add individual desil border colors via inline styles or dedicated classes */

/* Random Button */
.btn-random {
    display: inline-block;
    background: transparent;
    color: var(--accent-neon);
    border: 2px solid var(--accent-neon);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,240,255,0.2);
    transition: all 0.3s ease;
}
.btn-random:hover {
    background: var(--accent-neon);
    color: #000;
    box-shadow: 0 0 20px rgba(0,240,255,0.6);
}

/* Result Page Elements */
.result-header {
    text-align: center;
    padding: 3rem 1rem;
    border-bottom: 2px solid;
    margin-bottom: 2rem;
}
.badge-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* Stat Bars */
.stat-group {
    margin-bottom: 1.5rem;
}
.stat-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}
.stat-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
    overflow: hidden;
}
.stat-bar-fill {
    height: 100%;
    border-radius: 6px;
    width: 0%; /* Animates to final width */
}

/* Layout Grids (Compare, VGA Catalog, etc) */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Compare Layout */
.compare-split {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}
.vs-badge {
    background: var(--bg-card);
    border: 2px solid var(--accent-neon);
    color: var(--accent-neon);
    padding: 1rem;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.5rem;
}
@media (max-width: 768px) {
    .compare-split {
        grid-template-columns: 1fr;
    }
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-glow);
    padding: 2rem;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    position: relative;
}
.btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.4);
}

/* Footer */
footer {
    background: rgba(0,0,0,0.5);
    border-top: 1px solid var(--border-glow);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 100% Solid & Opaque Search Autocomplete (NO TRANSPARENCY) */
#search-results {
    background-color: #12121a !important;
    background: #12121a !important;
    opacity: 1 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    z-index: 9999 !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 30px rgba(0, 0, 0, 0.9) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

.search-result-item {
    background-color: #12121a !important;
    opacity: 1 !important;
    transition: background-color 0.15s ease !important;
}

.search-result-item:hover {
    background-color: #1d1d2b !important;
}

/* Hide scrollbar everywhere requested */
.scrollbar-none {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}
.scrollbar-none::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}


