/* Global Reset */
:root {
    /* Color Palette - Modern Retro Arcade */
    --bg-color: #0d9488; /* Deepest Black */
    --surface-color: #134e4a; /* Dark Gray for cards */
    --text-primary: #5eead4; /* Off-white */
    --text-secondary: #ccfbf1; /* Dim Gray */
    
    /* Neon Accents */
    --neon-cyan: #9333ea;
    --neon-pink: #fda4af;
    --neon-purple: #ffe4e6;
    
    --accent-color: var(--neon-cyan); 
    --accent-gradient: linear-gradient(135deg, var(--neon-purple), var(--neon-cyan));
    --hover-gradient: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    
    /* Glows */
    --card-shadow: 0 0 10px rgba(0, 243, 255, 0.1); /* Subtle Cyan Glow */
    --hover-shadow: 0 0 20px rgba(0, 243, 255, 0.4), 0 0 10px rgba(255, 0, 255, 0.2);
    --neon-border: 1px solid rgba(0, 243, 255, 0.3);
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif; /* Keep it premium */
    --font-body: 'Roboto', sans-serif;
    
    /* Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --radius: 8px; /* Sharper corners for retro feel */
}

* {
    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;
    background-image: 
        linear-gradient(rgba(18, 18, 18, 0.8) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 18, 18, 0.8) 1px, transparent 1px);
    background-size: 40px 40px; /* Grid background for arcade feel */
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    height: var(--header-height);
    background: #16a34a; /* Deep Black */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--neon-purple); /* Neon Border */
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.5); /* Purple Glow */
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo h1 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 5px var(--neon-cyan), 0 0 10px var(--neon-cyan); /* Neon Text Glow */
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-item {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-item:hover, .nav-item.active {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan), inset 0 0 5px var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #F5F2EF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 0 0 0rem 0;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 0px var(--neon-purple); /* Retro shadow */
}

.gradient-text {
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
}

/* Ad Container - Minimalist Card */
.ad-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--surface-color); /* Dark Gray */
    border: 1px solid #333;
    border-radius: 0; /* Square corners */
    box-shadow: none;
    position: relative;
}

.ad-container::before {
    /* Pixel accent on top left */
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    width: 10px;
    height: 10px;
    background: var(--neon-cyan);
    box-shadow: 2px 2px 0 var(--bg-color); /* Pixel look */
}

.ad-container::after {
    /* Pixel accent on bottom right */
    content: '';
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: var(--neon-pink);
    box-shadow: -2px -2px 0 var(--bg-color); /* Pixel look */
}

.ad-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#adv1 {
    margin-bottom: 0;
}

/* Masonry Layout */
.waterfall-layout {
    margin-bottom: 4rem;
}

.category-block {
    margin-bottom: 3rem;
}

.block-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #fff;
    padding-left: 1rem;
    border-left: 5px solid var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px var(--neon-cyan);
    position: relative;
}

.block-title::after {
    /* Pixel dot at end of title */
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--neon-pink);
    margin-left: 10px;
    vertical-align: middle;
}

/* CSS Grid Masonry Simulation */
.games-grid.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    grid-auto-rows: auto;
}

.game-card {
    background: var(--surface-color);
    border: 1px solid #333;
    border-radius: 0; /* Square corners for arcade feel */
    overflow: hidden;
    box-shadow: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.game-card::before {
    /* Top border neon line on hover */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: width 0.3s ease;
    z-index: 10;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border-color: var(--neon-cyan);
}

.game-card:hover::before {
    width: 100%;
}

.card-image {
    width: 100%;
    /* Randomize heights slightly or keep consistent 16:9 for safety without JS */
    aspect-ratio: 4/3; /* Taller cards for "Explore" feel */
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #333;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: grayscale(0.8) contrast(1.2); /* Retro B&W feel initially */
}

.game-card:hover .card-image img {
    transform: scale(1.1);
    filter: grayscale(0) contrast(1.1) drop-shadow(0 0 5px rgba(0, 243, 255, 0.5)); /* Colorize on hover */
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-content h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    color: #fff;
    text-transform: uppercase;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Courier New', monospace; /* Monospace for description */
}

/* Detail Page - Retro Glass */
.breadcrumb {
    padding: 2rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.breadcrumb .current {
    color: var(--neon-cyan);
    font-weight: 600;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.detail-card {
    background: var(--surface-color);
    border: 1px solid #333;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    margin-bottom: 4rem;
    position: relative;
}

.detail-card::after {
    /* Corner accent */
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, transparent 10px, var(--neon-purple) 10px);
}

.glass-panel {
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(20px);
    border-left: 1px solid #333;
}

.detail-media {
    position: relative;
    height: 100%;
    min-height: 400px;
}

.detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1);
}

.floating-meta {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.tag {
    background: rgba(0, 0, 0, 0.8);
    padding: 5px 15px;
    border: 1px solid var(--neon-cyan);
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neon-cyan);
    box-shadow: 0 0 5px var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.detail-header h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    text-shadow: 2px 2px 0 var(--neon-purple);
    text-transform: uppercase;
}

.game-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-family: 'Courier New', monospace;
}

.action-bar {
    display: flex;
    gap: 1rem;
}

.btn-gradient {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    border-radius: 0;
    font-weight: 600;
    box-shadow: 0 0 10px var(--neon-cyan), inset 0 0 10px rgba(0, 243, 255, 0.2);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
}

.btn-cyber {
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--neon-pink);
    border: 2px solid var(--neon-pink);
    border-radius: 0;
    font-weight: 600;
    box-shadow: 0 0 10px var(--neon-pink), inset 0 0 10px rgba(255, 0, 255, 0.2);
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
}

.btn-cyber:hover {
    transform: translateY(-3px);
    background: var(--neon-pink);
    color: #fff;
    box-shadow: 0 0 20px var(--neon-pink);
}

/* Retro Elements */
.scan-line {
    width: 100%;
    height: 100px;
    z-index: 10;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.1;
    position: absolute;
    bottom: 100%;
    animation: scanline 10s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { bottom: 100%; }
    80% { bottom: -100%; }
    100% { bottom: -100%; }
}

.sys-tag {
    display: inline-block;
    padding: 2px 8px;
    background: var(--surface-color);
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    font-size: 0.7rem;
    margin-right: 10px;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
}

.header-decoration {
    width: 50px;
    height: 5px;
    background: var(--neon-purple);
    margin-bottom: 1rem;
    box-shadow: 0 0 5px var(--neon-purple);
}

.detail-header .game-meta {
    margin-bottom: 1rem;
}

.related-section {
    margin: 4rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px var(--neon-purple);
}

/* Footer */
.footer {
    background: #000;
    padding: 4rem 0;
    margin-top: 4rem;
    text-align: center;
    border-top: 2px solid var(--neon-purple);
    box-shadow: 0 -5px 20px rgba(188, 19, 254, 0.2);
}

.footer-brand h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 5px var(--neon-cyan);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px var(--neon-cyan);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .detail-card {
        grid-template-columns: 1fr;
    }
    
    .detail-media {
        min-height: 250px;
    }
    
    .detail-content {
        padding: 2rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #000;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        gap: 1rem;
        border-bottom: 2px solid var(--neon-cyan);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: block;
    }
    
    .bar {
        background-color: var(--neon-cyan);
        box-shadow: 0 0 5px var(--neon-cyan);
    }
    
    .games-grid.masonry-grid {
        grid-template-columns: 1fr;
    }
    
    .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%);
    
    /* Retro Button Style */
    background: rgba(0, 0, 0, 0.8);
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
    font-family: var(--font-heading, sans-serif);
    
    /* Modern Styling */
    padding: 0.8rem 2rem;
    border-radius: 0;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    
    /* Effects */
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    pointer-events: none;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px var(--neon-cyan), inset 0 0 10px rgba(0, 243, 255, 0.3);
    text-shadow: 0 0 5px var(--neon-cyan);
}

.game-card:hover .play-indicator {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.game-card:hover .card-image img {
    opacity: 1;
    filter: brightness(0.6) blur(2px) grayscale(0);
    transform: scale(1.05);
}
