@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@700&display=swap');

:root {
    --bg-color: #0b0f1a;
    --surface-color: #161b2e;
    --surface-border: #2d3748;
    --accent-color: #7c3aed;
    --accent-hover: #9061f9;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 15, 26, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #7c3aed, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
}

.search-container {
    position: relative;
    width: 400px;
    max-width: 100%;
}

.search-container input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 50px;
    color: white;
    outline: none;
    transition: var(--transition-smooth);
}

.search-container input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.3);
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* Hero Section */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(11, 15, 26, 0.6), rgba(11, 15, 26, 1)), url('assets/hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    margin-top: 60px;
}

.hero h1 {
    font-size: 3.5rem;
    font-family: 'Orbitron', sans-serif;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Category Filters */
.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 2rem 5%;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    color: var(--text-muted);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
}

/* Game Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 5% 5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    background: var(--surface-color);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--surface-border);
    transition: var(--transition-smooth);
    position: relative;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: var(--card-shadow);
}

.game-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.game-card:hover img {
    scale: 1.05;
}

.game-info {
    padding: 1.5rem;
}

.game-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fbbf24;
    font-size: 0.9rem;
}

.play-btn {
    padding: 0.5rem 1.25rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.play-btn:hover {
    background: var(--accent-hover);
}

/* Footer */
footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--surface-border);
    background: var(--surface-color);
    color: var(--text-muted);
}

footer p {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--accent-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .search-container {
        display: none; /* Hide in navbar for mobile, show in menu or separate section */
    }

    nav {
        padding: 1rem;
    }

    .hero {
        height: 50vh;
    }
}
