/* Global Reset */
:root {
    --bg-color: #FFFFFF;
    --text-primary: #0F0F0F;
    --text-secondary: #666666;
    --accent-red: #FF2E2E;
    --accent-blue: #2E51FF;
    --border-color: #E5E5E5;
    --card-bg: #F8F8F8;
    
    --font-heading: 'Teko', sans-serif;
    --font-body: 'Noto Sans', sans-serif;
    
    --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: #FFFFFF;
    border-bottom: 3px solid var(--accent-red);
    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: 2.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-primary);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
    transform: skewX(-20deg);
}

.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: #f0f0f0;
    border: 1px solid #ddd;
    /* Removed clip-path to ensure full ad visibility per user request */
    border-left: 4px solid var(--text-secondary); /* Simple tech accent without cutting content */
}

.ad-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: #888;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Main Layout - Sidebar + Feed */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 3rem;
    margin-top: 2rem;
    position: relative;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 3rem;
    background: var(--card-bg);
    padding: 1.5rem;
    border-left: 4px solid var(--accent-blue);
}

.sidebar-widget h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 2px solid #ddd;
    padding-bottom: 0.5rem;
}

.category-list li a {
    display: block;
    padding: 0.8rem 0;
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-secondary);
    border-bottom: 1px solid #eee;
    transition: all 0.2s;
}

.category-list li a:hover {
    color: var(--accent-red);
    padding-left: 10px;
    background: #fff;
}

.trending-list li {
    display: flex;
    align-items: center;
    padding: 0.8rem 0;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-primary);
    border-bottom: 1px solid #eee;
}

.trending-list .number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-right: 1rem;
    width: 30px;
}

/* Content Feed & Timeline */
.content-feed {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid #E5E5E5;
}

/* Timeline nodes */
.category-block {
    position: relative;
    margin-bottom: 4rem;
}

/* Dot on the timeline */
.category-block::before {
    content: '';
    position: absolute;
    left: -39px; /* Adjust based on padding-left of content-feed (30px) + border (2px) + half dot */
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent-red);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--accent-red);
    transform: rotate(45deg); /* Diamond shape */
    z-index: 10;
}

.section-header {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header h3 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    line-height: 1;
    background: #fff;
    padding-right: 1rem;
}

.section-header .line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red), transparent);
}

/* Games Grid */
.games-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* First card - Large Image Display */
.games-grid .game-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
}

.games-grid .game-card:first-child .card-image {
    aspect-ratio: 2.35/1; /* Ultra-wide cinematic look */
}

.games-grid .game-card:first-child h4 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.games-grid .game-card:first-child .card-content {
    padding: 1.5rem;
    background: linear-gradient(to bottom, #fff, #f8f8f8);
}

/* Game Card */
.game-card {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    /* Tech corners */
    clip-path: polygon(
        0 0, 
        100% 0, 
        100% calc(100% - 15px), 
        calc(100% - 15px) 100%, 
        0 100%
    );
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 10px 10px 0 rgba(46, 81, 255, 0.1);
    border-color: var(--accent-blue);
}

.game-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-blue);
    clip-path: polygon(100% 0, 0 100%, 100% 100%);
}

.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;
    filter: grayscale(20%);
}

.game-card:hover .card-image img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.card-content {
    padding: 1rem;
}

.card-content h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.1;
    text-transform: uppercase;
}

/* Detail Page */
.breadcrumb {
    padding: 1.5rem 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.breadcrumb .current {
    color: var(--accent-red);
}

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.detail-header-mobile {
    display: none;
}

.media-frame {
    position: relative;
    padding: 10px;
    border: 2px solid var(--text-primary);
    background: #fff;
}

.media-frame::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    border-top: 4px solid var(--accent-red);
    border-left: 4px solid var(--accent-red);
}

.media-frame::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 20px;
    height: 20px;
    border-bottom: 4px solid var(--accent-red);
    border-right: 4px solid var(--accent-red);
}

.media-frame img {
    width: 100%;
    display: block;
}

.desktop-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.game-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tag {
    background: var(--text-primary);
    color: #fff;
    padding: 0.2rem 0.8rem;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag:first-child {
    background: var(--accent-blue);
}

.game-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent-red);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #d00000;
    transform: translateX(5px);
}

.related-section {
    margin: 3rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    border-left: 5px solid var(--accent-red);
    padding-left: 1rem;
}

/* Footer */
.footer {
    background: #0F0F0F;
    color: #fff;
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 5px solid var(--accent-blue);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: #888;
}

.footer-links a:hover {
    color: var(--accent-red);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        order: -1; /* Move sidebar to top or bottom? User said mobile first. Usually sidebar content like filters go top or hidden. */
        /* Let's keep it on top but simpler */
        display: none; /* Hide sidebar on mobile for cleaner look as per previous iteration */
    }
    
    .content-feed {
        padding-left: 20px; /* Reduced padding */
    }
    
    .category-block::before {
        left: -29px;
    }
    
    .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.5rem;
        line-height: 1;
        text-transform: uppercase;
    }
    
    .nav-links {
        display: none; /* Add hamburger logic if needed */
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        gap: 1rem;
    }
    
    .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;
    }
}


/* 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);
}
