:root {
    --primary: #4facfe;
    --primary-dark: #00f2fe;
    --accent: #FFD700;
    --accent-hover: #e6c200;
    --text: #2d3436;
    --bg: #f0f4f8;
    --card-bg: #ffffff;
    --font-main: 'Outfit', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: var(--card-bg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 2rem;
    border-radius: 0 0 50% 50% / 4rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.card {
    background: var(--card-bg);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    padding: 2rem;
    border: 2px solid transparent;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.card p {
    color: #636e72;
    margin-bottom: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: var(--accent);
    color: #2d3436;
}

.btn-secondary:hover {
    background-color: var(--accent-hover);
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    font-weight: bold;
    color: var(--text);
    padding: 5px 10px;
    border-radius: 5px;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    background: #f0f8ff;
}

/* --- Monetization (Ad Slots) --- */
.ad-slot {
    background-color: #f8f9fa;
    border: 1px dashed #ced4da;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #adb5bd;
    font-weight: bold;
    font-size: 0.9rem;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 8px;
}

.ad-banner {
    width: 100%;
    max-width: 728px;
    height: 90px;
}

.ad-square {
    width: 300px;
    height: 250px;
}

.ad-sidebar {
    display: none;
    /* Hidden on mobile */
    width: 160px;
    height: 600px;
    position: fixed;
    top: 120px;
}

.ad-left {
    left: 20px;
}

.ad-right {
    right: 20px;
}

@media (min-width: 1400px) {
    .ad-sidebar {
        display: flex;
    }

    main {
        max-width: 900px;
        margin: 0 auto;
    }
}

/* Footer */
footer {
    margin-top: auto;
    background: var(--text);
    color: white;
    padding: 2rem 0;
    text-align: center;
}