/* Global Variables */
:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent-green: #00ff88;
    --accent-pink: #ff00cc;
    --accent-blue: #00ccff;
    --font-main: 'Inter', sans-serif;
    --header-height: 70px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.btn-primary {
    background: linear-gradient(45deg, var(--accent-green), var(--accent-blue));
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--accent-green);
}

.section-title {
    font-size: 2rem;
    margin-bottom: 20px;
    border-left: 5px solid var(--accent-pink);
    padding-left: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Header */
header {
    background-color: rgba(13, 13, 13, 0.95);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
    backdrop-filter: blur(10px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-pink);
}

.nav-menu {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-weight: 500;
    font-size: 16px;
}

.nav-link:hover {
    color: var(--accent-green);
}

.search-bar {
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    background: #333;
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    color: #fff;
    width: 200px;
    outline: none;
}

.search-bar input:focus {
    box-shadow: 0 0 5px var(--accent-blue);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://placehold.co/1920x1080/111/00ff88?text=Gaming+Banner');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.game-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.game-thumb {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

.game-info {
    padding: 15px;
}

.game-title {
    font-size: 1rem;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
}

.rating {
    color: #ffd700;
}

/* Categories Section */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
}

.cat-pill {
    background: #333;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
}

.cat-pill:hover, .cat-pill.active {
    background: var(--accent-pink);
    color: #fff;
}

/* Footer */
footer {
    background-color: #000;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #333;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    margin: 0 15px;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: #fff;
}

.disclaimer {
    font-size: 0.8rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #111;
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }
    .nav-menu.active { display: flex; }
    .menu-toggle { display: block; }
    .search-bar { display: none; } /* Hide search on small mobile for simplicity, or move it */
}
