:root {
    /* Color Palette */
    --bg-color: #1A1A2E;
    --card-bg: #16213E;
    --accent-color: #E94560;
    --accent-glow: rgba(233, 69, 96, 0.4);
    --text-primary: #E0E0E0;
    --text-secondary: #95A5A6;
    --border-color: #0F3460;
    --glitch-color: rgba(233, 69, 96, 0.3);
    
    /* Spacing (8px grid) */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 40px;
    --space-6: 48px;
    --space-8: 64px;
    --space-10: 80px;
    
    /* Typography */
    --font-header: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
    
    /* Effects */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: linear-gradient(rgba(12, 18, 34, 0.92), rgba(12, 18, 34, 0.96)), url("../images/layout/site-bg.jpg");
    background-size: cover;
    background-position: center top;
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

.cyber-noir {
    position: relative;
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-3);
}

/* Header */
.site-header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-2) 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    position: relative;
    flex-wrap: nowrap;
}

.logo {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: 2px;
    position: relative;
    padding: 4px 0;
}

.logo-text {
    position: relative;
    z-index: 1;
    text-transform: uppercase;
}

.glitch-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
}

.nav-links {
    display: flex;
    gap: var(--space-4);
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(233, 69, 96, 0.35);
    border-radius: 12px;
    background: rgba(15, 52, 96, 0.24);
    cursor: pointer;
    transition: border-color var(--transition-base), background var(--transition-base), transform var(--transition-base);
}

.nav-toggle:hover {
    border-color: var(--accent-color);
    background: rgba(233, 69, 96, 0.16);
    transform: translateY(-1px);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-primary);
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-header);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    transition: color var(--transition-base);
}

.nav-item:hover, .nav-item.active {
    color: var(--accent-color);
}

.search-container {
    width: min(420px, 100%);
    position: relative;
}

.search-container-nav {
    flex: 1 1 320px;
    min-width: 220px;
    max-width: 420px;
    margin-left: auto;
}

.search-field {
    display: block;
    margin-bottom: 10px;
}

.search-field-inline {
    position: relative;
}

.search-inline-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(224, 224, 224, 0.62);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-field input {
    width: 100%;
    border: 1px solid rgba(15, 52, 96, 0.9);
    border-radius: 16px;
    background: rgba(10, 16, 31, 0.9);
    color: var(--text-primary);
    padding: 15px 18px 15px 48px;
    font-size: 1rem;
    font-family: var(--font-body);
}

.search-field input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.14);
}

.search-field input::placeholder {
    color: rgba(224, 224, 224, 0.52);
}

.search-meta {
    color: var(--text-secondary);
    font-size: 0.78rem;
    margin-bottom: 8px;
}

.search-results {
    display: none;
    gap: 12px;
    max-height: min(60vh, 520px);
    overflow-y: auto;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 140;
}

.search-results.has-results {
    display: grid;
}

.search-result-item,
.search-empty {
    display: block;
    padding: 18px;
    border: 1px solid rgba(15, 52, 96, 0.9);
    border-radius: 18px;
    background: rgba(18, 26, 46, 0.98);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.search-result-item {
    text-decoration: none;
    color: inherit;
    transition: border-color var(--transition-base), transform var(--transition-base), background var(--transition-base);
}

.search-result-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    background: rgba(233, 69, 96, 0.06);
}

.search-result-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-2);
    margin-bottom: 10px;
}

.search-result-type,
.search-result-meta {
    font-family: var(--font-header);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.search-result-type {
    color: var(--accent-color);
}

.search-result-meta {
    color: var(--text-secondary);
}

.search-result-title {
    font-family: var(--font-header);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.search-result-desc,
.search-empty {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Hero */
.hero-section {
    padding: var(--space-10) 0;
    background: radial-gradient(circle at center, #16213E 0%, #1A1A2E 100%);
    text-align: center;
}

.hero-title {
    font-family: var(--font-header);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-3);
    line-height: 1.1;
}

.highlight {
    color: var(--accent-color);
    text-shadow: 0 0 20px var(--accent-glow);
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto var(--space-5);
}

/* Buttons */
.btn {
    padding: var(--space-2) var(--space-4);
    border: none;
    font-family: var(--font-header);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--accent-glow);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Grid Layout */
.section-header {
    margin: var(--space-8) 0 var(--space-4);
}

.featured-reviews {
    position: relative;
    padding: var(--space-3) 0 var(--space-8);
    isolation: isolate;
}

.featured-reviews::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(135deg, rgba(10, 18, 34, 0.9), rgba(15, 52, 96, 0.78)), url("../images/blog/strategy-cover.jpg");
    background-position: center;
    background-size: cover;
    opacity: 0.45;
    z-index: -1;
}

.section-title {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: var(--space-1);
    text-transform: uppercase;
}

.header-line {
    width: 60px;
    height: 4px;
    background: var(--accent-color);
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.game-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-img-wrapper {
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.card-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.game-card:hover .card-img-wrapper img {
    transform: scale(1.05);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.card-rating {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(233, 69, 96, 0.35);
    border-radius: 999px;
    background: rgba(15, 52, 96, 0.35);
    color: var(--text-primary);
    flex-shrink: 0;
}

.rating-stars {
    color: #ffd166;
    letter-spacing: 1px;
    font-size: 0.72rem;
    line-height: 1;
}

.rating-score {
    font-family: var(--font-header);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.category-card .card-img-wrapper {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--border-color) 100%);
}

.category-count {
    position: absolute;
    bottom: var(--space-2);
    right: var(--space-2);
    background: var(--accent-color);
    color: white;
    padding: 4px 12px;
    font-family: var(--font-header);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2;
}

.mini-hero {
    padding: var(--space-8) 0;
    background: #16213e;
}

.article-link {
    display: inline-block;
    margin-top: var(--space-2);
    color: var(--accent-color);
    text-decoration: none;
    font-family: var(--font-header);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    transition: transform var(--transition-fast);
}

.article-link:hover {
    transform: translateX(5px);
}

/* Editorial Manifesto */
.editorial-manifesto {
    padding: var(--space-8) 0;
    background: var(--bg-color);
}

.editorial-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-6);
    align-items: start;
}

.editorial-lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    margin: var(--space-3) 0;
    line-height: 1.6;
}

.editorial-body p {
    color: var(--text-secondary);
    margin-bottom: var(--space-3);
    line-height: 1.8;
}

.editorial-sidebar .sidebar-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: var(--space-4);
    border-radius: 4px;
}

.editorial-sidebar h3 {
    font-family: var(--font-header);
    font-size: 1rem;
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
}

.sidebar-list {
    list-style: none;
}

.sidebar-list li {
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.sidebar-list .dot {
    width: 6px;
    height: 6px;
    background: var(--accent-color);
    border-radius: 50%;
}

.sidebar-list a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.sidebar-list a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .editorial-grid {
        grid-template-columns: 1fr;
    }
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    transition: transform var(--transition-base);
}

.article-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.article-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-thumb img {
    transform: scale(1.04);
}

.article-info {
    padding: var(--space-4);
}

.article-tag {
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--space-1);
    display: block;
}

.article-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    margin-bottom: var(--space-2);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: var(--space-3);
}

.view-all-intel {
    text-align: center;
    margin-top: var(--space-6);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: white;
}

/* Deep Content Styles */
.deep-content {
    max-width: 800px;
    margin: var(--space-8) auto;
}

.article-header {
    margin-bottom: var(--space-6);
    text-align: center;
}

.article-cover {
    position: relative;
    margin-bottom: var(--space-6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}

.article-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 52, 96, 0.08) 0%, rgba(15, 18, 34, 0.28) 100%);
    pointer-events: none;
}

.article-cover img {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 8;
    object-fit: cover;
}

.article-meta {
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: var(--space-2);
}

.article-body h2 {
    font-family: var(--font-header);
    font-size: 1.75rem;
    margin: var(--space-6) 0 var(--space-3);
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: var(--space-4);
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.article-body .intro {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 500;
}

.article-body strong {
    color: var(--accent-color);
}

.card-content {
    padding: var(--space-3);
    flex-grow: 1;
}

.card-tag {
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: var(--space-1);
    display: block;
}

.card-title {
    font-family: var(--font-header);
    font-size: 1.25rem;
    margin-bottom: var(--space-1);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Detail Page */
.review-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: var(--space-5);
    padding: var(--space-8) var(--space-3);
}

.review-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.game-meta-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: var(--space-4);
    border-radius: 4px;
    text-align: center;
}

.game-icon-container {
    width: 120px;
    height: 120px;
    margin: 0 auto var(--space-3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.game-icon-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    margin: var(--space-3) 0;
    padding: var(--space-3) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
    display: block;
    text-transform: uppercase;
}

.stat-value {
    font-weight: 700;
    font-size: 1.125rem;
}

.detail-rating-row {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-rating-stars {
    color: #ffd166;
    letter-spacing: 1px;
    font-size: 0.85rem;
    line-height: 1;
}

.detail-rating-badge {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid rgba(233, 69, 96, 0.35);
    background: rgba(15, 52, 96, 0.35);
    color: var(--text-primary);
    font-family: var(--font-header);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
}

.iframe-container {
    position: relative;
    padding-top: 62.5%;
    background: #000;
    border: 1px solid var(--border-color);
    margin: var(--space-4) 0;
}

.editorial-text {
    font-size: 1.125rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.analysis-card {
    background: rgba(22, 33, 62, 0.5);
    border: 1px solid var(--border-color);
    padding: var(--space-4);
}

.analysis-card h3 {
    font-family: var(--font-header);
    margin-bottom: var(--space-2);
    color: var(--accent-color);
    text-transform: uppercase;
}

/* Play Page */
.play-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.85fr);
    gap: var(--space-5);
    padding: var(--space-8) var(--space-3);
}

.play-stage,
.play-side-panel {
    min-width: 0;
}

.play-stage {
    background: rgba(22, 33, 62, 0.78);
    border: 1px solid rgba(15, 52, 96, 0.9);
    border-radius: 20px;
    padding: var(--space-4);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.play-stage-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.play-kicker {
    color: var(--accent-color);
    font-family: var(--font-header);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

.play-title {
    margin-bottom: var(--space-2);
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.play-subtitle {
    max-width: 760px;
    margin: 0;
}

.play-frame-shell {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(233, 69, 96, 0.18);
    background: rgba(8, 12, 22, 0.92);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.play-embed {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 640px;
    border: 0;
    background: #05070d;
}

.play-side-panel {
    display: grid;
    gap: var(--space-4);
    align-content: start;
}

.play-meta-stack {
    display: grid;
    gap: var(--space-3);
    margin-top: var(--space-3);
}

.play-category-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(233, 69, 96, 0.35);
    background: rgba(233, 69, 96, 0.12);
    color: var(--text-primary);
    font-family: var(--font-header);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.play-note {
    color: var(--text-secondary);
    line-height: 1.8;
}

.play-page-minimal {
    min-height: 100vh;
    background: #000;
    overflow: hidden;
}

.play-frame-only {
    width: 100vw;
    height: 100vh;
}

.play-embed-full {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    aspect-ratio: auto;
    border-radius: 0;
}

/* Footer */
.site-footer {
    background: #0F3460;
    padding: var(--space-10) 0 var(--space-5);
    margin-top: var(--space-10);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-8);
}

.footer-bio {
    color: var(--text-secondary);
    max-width: 400px;
    margin-top: var(--space-2);
}

.footer-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
}

.footer-column h4 {
    margin-bottom: var(--space-3);
    font-family: var(--font-header);
    text-transform: uppercase;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: var(--space-1);
    transition: color var(--transition-base);
}

.footer-column a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-secondary);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 992px) {
    .review-container {
        grid-template-columns: 1fr;
    }
    .review-sidebar {
        position: relative;
        top: 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}
