
:root {
    --color-dark: #0f172a; /* Slate-900: Deep dark blue */
    --color-bg: #1e293b; /* Slate-800: Card background */
    --color-accent-blue: #3b82f6; /* Blue-500: Primary accent */
    --color-accent-green: #10b981; /* Green-500: Secondary accent */
    --color-text: #f1f5f9;
    --color-text-subtle: #94a3b8;
}

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--color-dark);
    color: var(--color-text);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 1. Navigation */
nav {
    background-color: var(--color-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 1px;
    text-decoration: none;
    color: var(--color-text);
}
.logo span {
    color: var(--color-accent-blue);
}

/* The removed CTA button styles are kept to maintain style consistency if needed elsewhere,
   but the button element itself is removed from the HTML structure. */
.cta-button {
    display: none; /* Hide any lingering login elements */
}

/* 2. Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-bg) 0%, #08111e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 4px solid var(--color-accent-blue);
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-accent-green);
}
@media (max-width: 768px) {
    .hero { height: 200px; }
    .hero h1 { font-size: 1.8rem; }
}

/* 3. Filter/Search Bar (Combined utility bar) */
.utility-bar {
    margin-bottom: 30px;
    padding: 0 20px;
}
.utility-content {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* Search Input Styling */
#searchInput {
    flex-grow: 1;
    min-width: 200px;
    padding: 10px 15px;
    background-color: var(--color-bg);
    border: 2px solid var(--color-bg);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 1rem;
    transition: border-color 0.2s;
}
#searchInput:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* Filter Buttons Wrapper (Horizontal Scroll) */
.filter-wrapper {
    display: flex;
    overflow-x: auto;
    padding-bottom: 10px;
    gap: 10px;
    flex-grow: 1;
    -webkit-overflow-scrolling: touch;
}
.filter-wrapper::-webkit-scrollbar { height: 4px; }
.filter-wrapper::-webkit-scrollbar-thumb { background: var(--color-accent-blue); border-radius: 2px; }

.filter-btn {
    flex-shrink: 0;
    padding: 8px 15px;
    background-color: transparent;
    color: var(--color-text-subtle);
    border: 2px solid var(--color-bg);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    white-space: nowrap;
}
.filter-btn:hover {
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
}
.filter-btn.active {
    background-color: var(--color-accent-blue);
    color: white;
    border-color: var(--color-accent-blue);
    font-weight: 600;
}
.searching .filter-btn {
    display: none !important;
}

/* 4. Game List Grid - Stable Grid Layout */
.game-grid-section {
    padding-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--color-accent-green);
}

.game-list-grid {
    /* Responsive Grid: min width 250px */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Game Tile Styles */
.game-tile {
    background-color: var(--color-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    display: flex;
}
.game-tile.hidden {
    display: none;
    opacity: 0;
    pointer-events: none;
}
.game-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.5);
}
.tile-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden;
}
.tile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.game-tile:hover .tile-image {
    transform: scale(1.05);
}
.tile-details {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.tile-details h4 {
    font-size: 1.1rem;
    margin: 0 0 4px;
    color: var(--color-text);
}
.tile-details .meta {
    font-size: 0.9rem;
    color: var(--color-text-subtle);
    margin-bottom: 12px;
}
.tile-details .price-tag {
    align-self: flex-start;
    padding: 4px 10px;
    background-color: var(--color-accent-green);
    color: var(--color-dark);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* 5. Website Description Section */
.site-description {
    background-color: var(--color-bg);
    padding: 40px 20px;
    margin-top: 30px;
    border-top: 2px solid var(--color-accent-green);
    text-align: center;
}
.site-description h3 {
    font-size: 1.8rem;
    color: var(--color-accent-blue);
    margin-bottom: 15px;
}
.site-description p {
    margin: 0 auto;
    line-height: 1.6;
    color: var(--color-text-subtle);
}

/* 6. Footer */
footer {
    background-color: #0c121e;
    color: #64748b;
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    border-top: 1px solid #1e293b;
}
footer a {
    color: var(--color-accent-blue);
    text-decoration: none;
    margin: 0 10px;
}