/*
Theme Name: HotGame eSport
Theme URI: https://hotgame.id
Author: Senior Full Stack Developer
Description: Custom theme Fire & Cyberpunk. Version 2.0 (Merged & Optimized)
*/

/* --- 1. FONTS & IMPORTS --- */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Poppins:wght@300;400;600&display=swap');
/* Tambahan: Font Awesome untuk Ikon Hamburger & Search */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css');

:root {
    /* Color Palette (WARISAN LAMA) */
    --primary-color: #FF4500; /* Orange Red */
    --secondary-color: #FF8C00; /* Dark Orange */
    --accent-color: #FFD700; /* Gold/Yellow */
    --bg-dark: #0f0f0f; /* Deep Black */
    --bg-card: #1a1a1a; /* Dark Grey */
    --text-light: #ffffff;
    --text-dim: #b3b3b3;
    
    /* UX Variables (BARU) */
    --header-height: 70px;
    --drawer-width: 280px;
    
    /* Effects */
    --glow: 0 0 10px rgba(255, 69, 0, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. GLOBAL RESET --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    /* PENTING: Mencegah konten tertutup header yang fixed */
    padding-top: var(--header-height); 
}

h1, h2, h3, h4, .brand-logo, .drawer-title {
    font-family: 'Orbitron', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }


/* =========================================
   BAGIAN BARU: HEADER MODERN & MOBILE UX
   (Menggantikan Navbar Lama)
   ========================================= */

.site-header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(15, 15, 15, 0.95); /* Semi transparan */
    backdrop-filter: blur(10px); /* Efek Blur Kaca */
    border-bottom: 1px solid rgba(255, 69, 0, 0.3);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

/* LOGO */
.brand-logo {
    font-size: 1.5rem;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-logo .highlight { color: white; -webkit-text-fill-color: white; }

/* MENU DESKTOP (Hanya tampil di Laptop) */
.desktop-menu { display: none; } /* Default hidden di Mobile */

.nav-menu { display: flex; gap: 2rem; }
.nav-menu li a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-dim);
    position: relative;
}
.nav-menu li a:hover { color: white; text-shadow: 0 0 5px var(--primary-color); }

/* TOMBOL MOBILE (Hamburger & Search) */
.mobile-toggle {
    background: none; border: none; cursor: pointer;
    display: flex; flex-direction: column; gap: 5px; width: 30px;
    padding: 0;
}
.mobile-toggle .bar {
    width: 100%; height: 2px; background: white; border-radius: 2px;
    transition: var(--transition);
}

.header-actions { display: flex; gap: 10px; }
.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none; color: white;
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; cursor: pointer; transition: var(--transition);
}
.icon-btn:hover { background: var(--primary-color); transform: rotate(15deg); }


/* =========================================
   BAGIAN BARU: DRAWER & SEARCH OVERLAY
   ========================================= */

/* SEARCH FULLSCREEN */
.search-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition);
    backdrop-filter: blur(5px);
}
.search-overlay.active { opacity: 1; visibility: visible; }

.search-container-inner { text-align: center; width: 90%; max-width: 600px; position: relative; }
.close-search {
    position: absolute; top: -80px; right: 0;
    background: none; border: none; color: white; font-size: 2.5rem; cursor: pointer;
}
.search-title { font-size: 1.5rem; margin-bottom: 2rem; color: var(--primary-color); }
.search-form-full { position: relative; border-bottom: 2px solid #333; }
.search-field-full {
    width: 100%; background: none; border: none; color: white;
    font-size: 1.5rem; padding: 15px 50px 15px 0; outline: none;
}
.search-submit-full {
    position: absolute; right: 0; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--primary-color); font-size: 1.5rem;
}

/* MOBILE DRAWER (Menu Samping) */
.mobile-menu-drawer {
    position: fixed; top: 0; left: 0;
    width: var(--drawer-width); height: 100%;
    background: #111;
    z-index: 1500;
    transform: translateX(-100%); /* Sembunyi ke kiri */
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: 10px 0 30px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
}
.mobile-menu-drawer.active { transform: translateX(0); }

.drawer-header {
    height: var(--header-height);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 20px; border-bottom: 1px solid #222;
}
.drawer-title { font-size: 1.2rem; font-weight: bold; color: white; }
.close-drawer { background: none; border: none; color: #666; font-size: 2rem; cursor: pointer; }

.drawer-content { padding: 20px; overflow-y: auto; flex: 1; }
.mobile-nav-list li { border-bottom: 1px solid #222; }
.mobile-nav-list li a {
    display: block; padding: 15px 0; font-size: 1rem; color: #ccc;
    font-weight: 500;
}
.mobile-nav-list li a:hover { color: var(--primary-color); padding-left: 10px; }

.drawer-footer { padding: 20px; border-top: 1px solid #222; }
.btn-drawer-cta {
    display: block; text-align: center; background: var(--primary-color);
    color: white; padding: 12px; border-radius: 8px; font-weight: bold;
}
.menu-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7); z-index: 1400;
    opacity: 0; visibility: hidden; transition: var(--transition);
}
.menu-backdrop.active { opacity: 1; visibility: visible; }


/* =========================================
   WARISAN LAMA (TIDAK DIHAPUS)
   ========================================= */

/* HERO SECTION */
.hero {
    height: 80vh; /* Sedikit dikurangi agar pas dengan header baru */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1542751371-adc38448a05e?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-content h1 { font-size: 3.5rem; margin-bottom: 1rem; line-height: 1.2; }
.hero-content span { color: var(--primary-color); }
.hero-content p { font-size: 1.2rem; color: var(--text-dim); margin-bottom: 2rem; }
.btn-cta {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white; padding: 12px 35px; border-radius: 50px; font-weight: 700;
    text-transform: uppercase; font-family: 'Orbitron', sans-serif;
    box-shadow: var(--glow); display: inline-block;
}
.btn-cta:hover { transform: scale(1.05); box-shadow: 0 0 20px var(--primary-color); }

/* GAME GRID SECTION */
.section-games { padding: 4rem 0; }
.section-title {
    text-align: center; margin-bottom: 3rem; font-size: 2.5rem;
    border-bottom: 2px solid var(--primary-color); display: inline-block;
    padding-bottom: 10px; position: relative; left: 50%; transform: translateX(-50%);
}
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.game-card {
    background: var(--bg-card); border-radius: 10px; overflow: hidden;
    position: relative; border: 1px solid #333; transition: var(--transition); cursor: pointer;
}
.game-card:hover { transform: translateY(-10px); border-color: var(--primary-color); box-shadow: var(--glow); }
.card-img { width: 100%; height: 180px; object-fit: cover; background-color: #333; }
.card-body { padding: 1.5rem; text-align: center; }
.card-title { font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-light); }
.btn-topup {
    display: block; width: 100%; margin-top: 1rem; padding: 8px;
    background: transparent; border: 1px solid var(--primary-color);
    color: var(--primary-color); border-radius: 5px; font-weight: 600;
    transition: var(--transition);
}
.game-card:hover .btn-topup { background: var(--primary-color); color: white; }

/* FEATURES SECTION */
.section-features { background: #151515; padding: 4rem 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; text-align: center; }
.feature-item { padding: 2rem; background: var(--bg-dark); border-radius: 15px; border-bottom: 3px solid var(--secondary-color); }
.feature-icon { font-size: 3rem; color: var(--primary-color); margin-bottom: 1rem; }

/* FOOTER */
footer { background: #000; padding: 3rem 0; border-top: 1px solid #333; margin-top: auto; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.footer-col h3 { color: var(--primary-color); margin-bottom: 1.5rem; font-size: 1.2rem; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a:hover { color: var(--secondary-color); padding-left: 5px; }
.copyright { text-align: center; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid #222; color: #666; font-size: 0.9rem; }


/* =========================================
   RESPONSIVE LOGIC (MEDIA QUERIES)
   ========================================= */

/* Desktop Mode (Layar Lebar) */
@media (min-width: 992px) {
    .mobile-toggle { display: none; } /* Sembunyikan Hamburger */
    .mobile-menu-drawer { display: none; } /* Matikan Drawer */
    .desktop-menu { display: block; } /* Tampilkan Menu Horizontal */
}

/* Mobile Mode (Layar Kecil) */
@media (max-width: 991px) {
    .desktop-menu { display: none; } /* Sembunyikan Menu Horizontal */
    .brand-logo { font-size: 1.3rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .section-title { font-size: 2rem; }
}