/* General Reset */
* { margin: 0; padding: 0; box-box: border-box; }
body { 
    background: #0f172a; 
    color: #f1f5f9; 
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif; 
    line-height: 1.6;
}

.container { max-width: 1300px; margin: auto; padding: 0 20px; }

/* Header & Navigation */
header { 
    background: #1e293b; 
    padding: 15px 0; 
    border-bottom: 2px solid #3b82f6; 
    position: sticky; 
    top: 0; 
    z-index: 1000;
}
.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.top-nav a { 
    color: #cbd5e1; 
    text-decoration: none; 
    margin-left: 20px; 
    font-weight: 500; 
    transition: 0.3s;
}
.top-nav a:hover { color: #3b82f6; }

/* Hero Section (Featured Game) */
.hero-section { margin-top: 30px; }
.hero-content { 
    border-radius: 20px; 
    height: 400px; 
    display: flex; 
    align-items: center; 
    padding: 60px; 
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.hero-text { position: relative; z-index: 2; max-width: 500px; }
.hero-text h1 { font-size: 3.5rem; color: #fff; margin-bottom: 15px; text-shadow: 2px 2px 10px rgba(0,0,0,0.8); }
.badge { background: #f59e0b; color: #000; padding: 4px 12px; border-radius: 4px; font-weight: 800; font-size: 12px; }
.play-now-btn { 
    display: inline-block;
    background: #ef4444; 
    color: #fff; 
    padding: 14px 35px; 
    border-radius: 50px; 
    text-decoration: none; 
    font-weight: bold; 
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    transition: 0.3s transform;
}
.play-now-btn:hover { transform: scale(1.05); background: #dc2626; }

/* Main Layout: Sidebar + Grid */
.main-layout { display: flex; gap: 30px; margin: 40px 0; }

.sidebar { width: 260px; background: #1e293b; padding: 25px; border-radius: 15px; height: fit-content; position: sticky; top: 90px; }
.sidebar h3 { font-size: 18px; margin-bottom: 20px; color: #3b82f6; display: flex; align-items: center; gap: 10px; }
.cat-list { list-style: none; }
.cat-list li a { 
    display: block; 
    padding: 12px; 
    color: #94a3b8; 
    text-decoration: none; 
    border-radius: 8px; 
    transition: 0.3s;
}
.cat-list li a:hover { background: #334155; color: #3b82f6; padding-left: 20px; }

/* Game Grid & Cards */
.content-area { flex: 1; }
.section-title { margin-bottom: 25px; }
.section-title h2 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }

.game-card { 
    background: #1e293b; 
    border-radius: 15px; 
    overflow: hidden; 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #334155;
}
.game-card:hover { transform: scale(1.05); border-color: #3b82f6; box-shadow: 0 10px 20px rgba(0,0,0,0.4); }

.card-img-wrapper { position: relative; height: 130px; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.game-card:hover img { transform: scale(1.1); }

.overlay { 
    position: absolute; top:0; left:0; width:100%; height:100%; 
    background: rgba(15, 23, 42, 0.7); display: flex; align-items: center; 
    justify-content: center; opacity: 0; transition: 0.3s;
}
.game-card:hover .overlay { opacity: 1; }
.play-icon { font-size: 2.5rem; color: #3b82f6; }

.card-info { padding: 12px; text-align: left; }
.cat-tag { font-size: 9px; font-weight: bold; color: #3b82f6; text-transform: uppercase; letter-spacing: 1px; }
.card-info h3 { font-size: 14px; margin-top: 5px; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Load More Button */
.load-more { 
    background: transparent; border: 2px solid #334155; color: #94a3b8; 
    padding: 12px 40px; border-radius: 8px; font-weight: bold; 
    cursor: pointer; transition: 0.3s; margin-top: 30px;
}
.load-more:hover { background: #3b82f6; color: #fff; border-color: #3b82f6; }

/* Footer */
footer { background: #020617; padding: 50px 0; margin-top: 80px; text-align: center; color: #64748b; }
.footer-links { margin-top: 15px; }
.footer-links a { color: #3b82f6; text-decoration: none; margin: 0 10px; font-size: 14px; }

/* Mobile Responsive */
@media (max-width: 992px) {
    .main-layout { flex-direction: column; }
    .sidebar { width: 100%; position: static; }
    .hero-content { height: 300px; padding: 30px; }
    .hero-text h1 { font-size: 2.2rem; }
}