/* Global Reset */
:root {
    /* Color Palette */
    --bg-color: #121212;
    --surface-color: #1E1E1E;
    --text-primary: #E0E0E0;
    --text-secondary: #B0B0B0;
    --accent-color: #FF9800; /* Orange */
    --border-color: #333333;
    
    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    height: var(--header-height);
    background: var(--surface-color);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #FFFFFF;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Ad Container */
.ad-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: #252525;
    border: 1px solid var(--border-color);
}

.ad-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Layout */
.main-layout {
    display: block;
    margin-top: 2rem;
    margin-bottom: 4rem;
}

.content-feed {
    width: 100%;
}

.feed-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.category-block {
    margin-bottom: 1rem;
}

.section-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 0.5rem;
}

.section-header h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    margin: 0;
}

.section-header .line {
    display: none; /* Simplified header */
}

/* Games Grid - General Layout */
.games-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Featured Section - Horizontal Scroll */
#category-featured .games-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

#category-featured .games-grid::-webkit-scrollbar {
    height: 8px;
}

#category-featured .games-grid::-webkit-scrollbar-track {
    background: var(--surface-color);
}

#category-featured .games-grid::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

#category-featured .games-grid .game-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    height: 380px;
}

/* Other Sections - Vertical List Style */
.category-block:not(#category-featured) .games-grid .game-card {
    flex-direction: row;
    height: 180px;
    width: 100%;
}

.category-block:not(#category-featured) .games-grid .game-card .card-image {
    width: 280px;
    height: 100%;
    aspect-ratio: auto;
    flex-shrink: 0;
}

.category-block:not(#category-featured) .games-grid .game-card .card-content {
    flex-grow: 1;
    overflow: hidden;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .category-block:not(#category-featured) .games-grid .game-card {
        flex-direction: column;
        height: auto;
    }
    
    .category-block:not(#category-featured) .games-grid .game-card .card-image {
        width: 100%;
        height: 200px;
    }
}

/* Game Card */
.game-card {
    display: flex;
    flex-direction: column;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border-color: var(--accent-color);
}

.card-image {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.game-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.card-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Detail Page */
.breadcrumb {
    padding: 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.breadcrumb .current {
    color: var(--accent-color);
}

.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.detail-header-mobile {
    display: none;
}

.detail-media img {
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.desktop-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: #fff;
}

.game-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--surface-color);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.game-description {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    font-weight: 500;
}

.btn-primary:hover {
    background: #FFAB40;
}

.related-section {
    margin: 4rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    color: #fff;
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
}

/* Footer */
.footer {
    background: var(--surface-color);
    color: var(--text-secondary);
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .main-layout {
        margin-top: 1rem;
    }
    
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .desktop-title {
        display: none;
    }
    
    .detail-header-mobile {
        display: block;
        margin-bottom: 1rem;
    }
    
    .detail-header-mobile h1 {
        font-family: var(--font-heading);
        font-size: 2.2rem;
        line-height: 1.1;
        text-transform: uppercase;
        color: #fff;
    }
    
    .nav-links {
        display: none; 
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--surface-color);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.5);
        border-bottom: 2px solid var(--accent-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    /* Mobile specific adjustments */
    
    /* Remove scrollbar for featured section on mobile for cleaner look */
    #category-featured .games-grid::-webkit-scrollbar {
        display: none;
    }
    
    /* Ensure non-featured items stack properly if not already handled */
    .category-block:not(#category-featured) .games-grid .game-card {
        flex-direction: column;
        height: auto;
    }
    
    .category-block:not(#category-featured) .games-grid .game-card .card-image {
        width: 100%;
        height: 180px;
    }
}

@media (max-width: 480px) {
    .section-header h3 {
        font-size: 1.4rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
}


/* Added by full_site_update.py */
.play-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Adaptive Colors with Fallbacks */
    background: var(--surface-color, rgba(0, 0, 0, 0.8));
    color: var(--accent-color, #ffffff);
    border: 1px solid var(--accent-color, #ffffff);
    font-family: var(--font-heading, sans-serif);
    
    /* Modern Styling */
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    /* Effects */
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px var(--accent-dim, rgba(255, 255, 255, 0.1));
}

.game-card:hover .play-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.game-card:hover .card-image img {
    opacity: 1;
    filter: brightness(0.7) blur(2px);
    transform: scale(1.05);
}
