/* === BILLION DOLLAR UI THEME (GK UNIVERSE) === */
:root {
    --bg-main: #0a0a0a;       
    --bg-panel: #141414;      
    --primary: #00ff99;       /* GK Neon Green */
    --primary-glow: rgba(0, 255, 153, 0.4);
    --text: #ffffff;
    --text-muted: #a0a0a0;
    --card-radius: 16px;
    --font-main: 'Inter', sans-serif;
    --font-head: 'Rajdhani', sans-serif;
    --nav-height: 60px;
}
  
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body { 
    margin: 0; background-color: var(--bg-main); color: var(--text); 
    font-family: var(--font-main); overflow-x: hidden; padding-bottom: 20px; 
}

/* === HEADER & NAV === */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 20px; height: var(--nav-height);
    background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(20px);
    position: sticky; top: 0; z-index: 1000; 
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.brand { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; letter-spacing: 1px; }
.brand span { color: var(--primary); text-shadow: 0 0 15px var(--primary-glow); }

.nav-icons { display: flex; gap: 15px; align-items: center; }
.icon-btn { background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; transition: 0.3s; }
.icon-btn:hover { color: var(--primary); transform: scale(1.1); }

/* === SIDE DRAWER MENU === */
.side-drawer {
    position: fixed; top: 0; right: -300px; width: 300px; height: 100%;
    background: #0f0f0f; z-index: 2000; transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 40px rgba(0,0,0,0.8); padding: 25px; overflow-y: auto; border-left: 1px solid #222;
}
.side-drawer.open { right: 0; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.drawer-link { display: flex; align-items: center; padding: 15px 0; color: #ccc; text-decoration: none; font-size: 16px; border-bottom: 1px solid rgba(255,255,255,0.05); transition: 0.3s; font-weight: 500; }
.drawer-link:hover { color: var(--primary); padding-left: 10px; border-color: var(--primary); background: linear-gradient(90deg, transparent, rgba(0,255,153,0.05)); }
.drawer-link i { width: 30px; color: var(--primary); font-size: 18px; }

.overlay { position: fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); z-index:1500; display:none; backdrop-filter: blur(5px); }
.overlay.active { display: block; }

/* === HERO SECTION === */
.hero { padding: 40px 20px; text-align: center; background: radial-gradient(circle at top center, rgba(0,255,153,0.08) 0%, transparent 70%); }
.greeting { font-size: 14px; color: var(--primary); text-transform: uppercase; letter-spacing: 2px; font-weight: 700; }
.hero h1 { font-family: var(--font-head); font-size: 42px; margin: 10px 0 30px; line-height: 1.1; }
.hero h1 span { color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }

.search-bar { position: relative; max-width: 450px; margin: 0 auto; }
.search-bar input { width: 100%; background: rgba(20,20,20,0.8); border: 1px solid rgba(255,255,255,0.1); padding: 15px 50px 15px 20px; border-radius: 50px; color: #fff; outline:none; font-size: 16px; transition: 0.3s; backdrop-filter: blur(10px); }
.search-bar input:focus { border-color: var(--primary); box-shadow: 0 0 20px rgba(0,255,153,0.2); }
.search-bar i { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--primary); }

/* === GAME SECTIONS === */
.section { padding: 0 0 40px 20px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px; padding-right: 20px; }
.sec-head h3 { margin: 0; font-size: 20px; font-weight: 700; font-family: var(--font-head); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.sec-head h3 i { color: var(--primary); }

.view-all-btn {
    font-size: 11px; font-weight: 700; color: var(--primary); 
    text-decoration: none; text-transform: uppercase; letter-spacing: 1px;
    padding: 6px 14px; border: 1px solid var(--primary); border-radius: 20px;
    transition: 0.3s;
}
.view-all-btn:hover { background: var(--primary); color: #000; box-shadow: 0 0 15px var(--primary-glow); }

.scroll-row { display: flex; gap: 15px; overflow-x: auto; padding-bottom: 20px; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; padding-right: 20px; }
.scroll-row::-webkit-scrollbar { display: none; }

/* === GAME CARD (High Quality) === */
.game-card { 
    min-width: 150px; width: 150px; 
    background: var(--bg-panel); border-radius: var(--card-radius); 
    overflow: hidden; position: relative; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.game-card:hover { 
    transform: translateY(-5px) scale(1.02); 
    border-color: var(--primary); 
    box-shadow: 0 10px 30px rgba(0,255,153,0.15);
    z-index: 2; 
}

.card-img { width: 100%; height: 110px; object-fit: cover; transition: 0.3s; }
.game-card:hover .card-img { filter: brightness(0.7); }

.card-info { padding: 12px; }
.card-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 0 0 5px 0; }
.card-cat { display: flex; justify-content: space-between; align-items: center; }
.count-badge { font-size: 11px; color: #888; display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; }

/* === ACTION BUTTONS (MOBILE VISIBLE FIX) === */
.fav-btn, .like-btn { 
    position: absolute; top: 8px; 
    background: rgba(0,0,0,0.6); color: #fff; border: none; 
    border-radius: 50%; width: 32px; height: 32px; 
    cursor: pointer; display: flex; align-items: center; justify-content: center; 
    backdrop-filter: blur(4px); transition: 0.2s; z-index: 10;
    
    /* FIX: Buttons always visible on Mobile */
    opacity: 1 !important; 
    transform: translateY(0) !important;
}

.fav-btn { right: 8px; }
.like-btn { left: 8px; }

.fav-btn:active, .like-btn:active { transform: scale(0.9) !important; }
.fav-btn:hover, .like-btn:hover { background: rgba(255,255,255,0.2); transform: scale(1.1) !important; }

.fav-btn.active { color: #ff4444; background: rgba(255, 68, 68, 0.15); border: 1px solid #ff4444; }
.like-btn.active { color: #00ff99; background: rgba(0, 255, 153, 0.15); border: 1px solid #00ff99; }

/* Skeleton Loading Animation */
.skeleton { background: linear-gradient(90deg, var(--bg-panel) 25%, #1f1f1f 50%, var(--bg-panel) 75%); background-size: 200% 100%; height: 110px; width: 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { 0% {background-position: 200% 0;} 100% {background-position: -200% 0;} }

/* SEO Content Area */
.seo-content {
    max-width: 1000px; margin: 40px auto; padding: 30px 20px;
    color: #888; font-size: 14px; line-height: 1.8;
    background: #111; border-radius: 12px; border: 1px solid #222;
}
.seo-content h2, .seo-content h3 { color: var(--primary); margin-top: 25px; margin-bottom: 15px; font-family: var(--font-head); }
.seo-content ul { padding-left: 20px; }
.seo-content li { margin-bottom: 8px; }

/* FOOTER */
.main-footer { background: #0f0f0f; padding: 60px 20px 30px; margin-top: 50px; border-top: 1px solid #222; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-col h4 { color: #fff; font-family: var(--font-head); font-size: 18px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p { color: #888; font-size: 14px; line-height: 1.6; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #888; text-decoration: none; font-size: 14px; transition: 0.3s; display: inline-block; }
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.footer-bottom { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #222; color: #555; font-size: 12px; }

/* RESPONSIVE DESKTOP LAYOUT */
@media (min-width: 768px) {
    .hero h1 { font-size: 64px; }
    .section { padding-right: 20px; }
    /* Desktop: Turn horizontal scroll into Grid */
    .scroll-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; overflow: visible; padding-bottom: 0; }
    .game-card { width: 100%; }
    .card-img { height: 140px; }
}
