:root {
    /* Theme Palette: Modern Retro */
    --bg-body: #1a1b20;       /* Dark Blue-Grey */
    --bg-card: #25262e;       /* Slightly lighter */
    --text-main: #e0e0e0;
    --text-muted: #8a8b98;
    
    /* Accents */
    --accent-orange: #ffb74d; /* Pastel Orange */
    --accent-blue: #64b5f6;   /* Pastel Blue */
    --accent-glow: rgba(100, 181, 246, 0.4); 
    
    --border: #333333;
    --max-w: 90%;             /* Utilizing 90% width */
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.inner-width {
    width: var(--max-w);
    margin: 0 auto;
}

/* --- 1. TOP BAR --- */
.top-bar {
    background: #111;
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    font-size: 0.85rem;
}

.top-flex {
    display: flex;
    justify-content: space-between; /* Left, Center, Right */
    align-items: center;
}

.top-bar a { color: var(--text-muted); text-decoration: none; transition: 0.3s; }
.top-bar a:hover { color: var(--accent-orange); }

.top-center { display: flex; gap: 20px; }
.divider { margin: 0 5px; color: #444; }

.cart-btn {
    color: var(--accent-orange) !important;
    font-weight: bold;
}

/* --- 2. LOGO & GLOW --- */
.branding-area {
    padding: 30px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--bg-body) 0%, #202125 100%);
}

.logo {
    margin: 0;
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 5px;
    color: #fff;
    /* The Glow Effect */
    text-shadow: 0 0 10px var(--accent-glow), 0 0 20px rgba(255, 183, 77, 0.2);
}

.tagline {
    color: var(--accent-blue);
    margin-top: 5px;
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* --- 3. NAV --- */
.main-nav {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    display: block;
    padding: 15px 25px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}

.nav-link:hover { background: #333; color: var(--accent-orange); }

/* Dropdown */
.nav-item, .sub-item { position: relative; }
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    min-width: 200px;
    border: 1px solid var(--border);
    list-style: none;
    padding: 0;
    z-index: 1000;
}
.dropdown .dropdown {
    top: 0;
    left: 100%;
}
.dropdown a { display: block; padding: 10px 20px; color: var(--text-muted); text-decoration: none; }
.dropdown a:hover { background: #333; color: #fff; }
.nav-item:hover > .dropdown, .sub-item:hover > .dropdown { display: block; }

/* --- 4. GRID LAYOUT & HERO --- */
.content-wrapper {
    flex: 1; /* Pushes footer down */
    margin: 40px auto;
    width: var(--max-w);
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, #2a2c35 0%, #1f2026 100%);
    padding: 50px;
    border-radius: 8px;
    border-left: 5px solid var(--accent-orange);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
}

.hero-content h2 { font-size: 2.5rem; margin: 10px 0; }
.tag { background: var(--accent-blue); color: #000; padding: 2px 8px; font-size: 0.7rem; font-weight: bold; border-radius: 4px; }
.btn-hero { 
    display: inline-block; 
    margin-top: 20px; 
    padding: 10px 30px; 
    background: var(--accent-orange); 
    color: #000; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 4px;
}
.btn-hero:hover { background: #fff; }

/* Mixed Grid System */
.mixed-grid {
    display: grid;
    /* Auto-fit creates as many columns as fit */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); 
    gap: 25px;
}

.grid-item {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: transform 0.2s;
}

.grid-item:hover { transform: translateY(-5px); border-color: var(--accent-blue); }

.p-image { height: 180px; background: #000; margin-bottom: 15px; border-radius: 4px; }

.price { color: var(--accent-orange); font-size: 1.2rem; font-weight: bold; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.section-header h3 { margin: 0; font-size: 1.5rem; }
.view-all { color: var(--accent-blue); text-decoration: none; font-size: 0.9rem; }
.view-all:hover { color: var(--accent-orange); }

.grid-item { position: relative; }

.item-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: var(--text-muted);
    padding: 3px 8px;
    font-size: 0.7rem;
    border-radius: 4px;
    border: 1px solid var(--border);
    z-index: 10;
}

.btn-action {
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    cursor: pointer;
    margin-top: 10px;
    transition: 0.2s;
}
.btn-action:hover { background: var(--accent-blue); color: #000; }

.alt-btn { border-color: #ff5555; color: #ff5555; }
.alt-btn:hover { background: #ff5555; color: #000; }

.review-card { border-left: 4px solid var(--accent-blue); padding-top: 35px; }
.game-card { border-left: 4px solid #ff5555; padding-top: 35px; }

/* --- 5. FOOTER --- */
.site-footer {
    background: #111;
    border-top: 1px solid var(--border);
    padding-top: 40px;
    margin-top: 60px;
    color: var(--text-muted);
}

.footer-flex {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
}

.footer-col h5 { color: #fff; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col a { color: var(--text-muted); text-decoration: none; line-height: 2; }
.footer-col a:hover { color: var(--accent-orange); }

.copy-bar {
    text-align: center;
    padding: 20px;
    background: #080808;
    font-size: 0.8rem;
}