/* CSS Variables - Design System */
:root {
    --background: hsl(220, 20%, 8%);
    --foreground: hsl(210, 40%, 98%);
    --card: hsl(220, 18%, 12%);
    --card-foreground: hsl(210, 40%, 98%);
    --primary: hsl(192, 100%, 50%);
    --primary-foreground: hsl(220, 20%, 8%);
    --secondary: hsl(28, 100%, 55%);
    --secondary-foreground: hsl(220, 20%, 8%);
    --muted: hsl(220, 15%, 20%);
    --muted-foreground: hsl(210, 20%, 70%);
    --border: hsl(220, 15%, 25%);
    --radius: 0.75rem;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--border);
    background-color: hsla(220, 20%, 8%, 0.8);
    backdrop-filter: blur(8px);
}

.header-content {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    color: var(--primary);
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-image: url('assets/hero-banner.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        var(--background),
        hsla(220, 20%, 8%, 0.8),
        transparent
    );
}

.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 42rem;
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, hsl(192, 100%, 50%), hsl(240, 100%, 60%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.hero-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, hsl(28, 100%, 55%), hsl(15, 100%, 50%));
    color: var(--secondary-foreground);
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.hero-button:hover {
    box-shadow: 0 0 40px hsla(28, 100%, 55%, 0.3);
    transform: translateY(-2px);
}

/* Category Section */
.category-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.category-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .category-title {
        font-size: 2.25rem;
    }
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Game Card */
.game-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-in;
}

.game-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 40px hsla(192, 100%, 50%, 0.4);
}

.game-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image {
    transform: scale(1.1);
}

.game-category-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: hsla(192, 100%, 50%, 0.9);
    color: var(--primary-foreground);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
}

.game-content {
    padding: 1rem;
}

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

.game-description {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.play-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, hsl(192, 100%, 50%), hsl(240, 100%, 60%));
    color: var(--primary-foreground);
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.play-button:hover {
    box-shadow: 0 0 40px hsla(192, 100%, 50%, 0.4);
}

.play-icon {
    width: 1rem;
    height: 1rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.footer p {
    color: var(--muted-foreground);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}
