/*
Theme Name: GAMENYX
Theme URI: https://gamenyx.com/
Author: GAMENYX
Description: A fast editorial gaming theme built for GAMENYX.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: gamenyx
*/

:root {
  --gamenyx-ink: #111318;
  --gamenyx-paper: #f5f3ef;
  --gamenyx-red: #ff4f57;
  --gamenyx-muted: #747881;
  --gamenyx-line: #dedbd5;
  --gamenyx-dark: #090b10;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--gamenyx-paper); color: var(--gamenyx-ink); font-family: Arial, Helvetica, sans-serif; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.site-main { min-height: 60vh; }

.support-bar { background: #05060a; color: #fff; text-align: center; padding: 9px 20px; font-size: 11px; letter-spacing: .2em; font-weight: 800; }
.site-header { min-height: 86px; display: flex; align-items: center; gap: 34px; padding: 0 max(4vw, 24px); background: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 1px solid #eceae6; }
.brand { display: inline-flex; align-items: center; font-size: 25px; letter-spacing: -.06em; white-space: nowrap; }
.brand span { font-weight: 300; }
.brand strong { background: var(--gamenyx-red); color: #fff; padding: 8px 9px; margin-left: 5px; letter-spacing: .01em; }
.main-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.main-nav a { font-size: 11px; font-weight: 900; letter-spacing: .09em; position: relative; }
.main-nav a::after { content: ""; position: absolute; height: 2px; left: 0; right: 100%; bottom: -8px; background: var(--gamenyx-red); transition: right .2s ease; }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.menu-toggle, .search-toggle, .search-close { border: 0; background: transparent; cursor: pointer; color: var(--gamenyx-ink); }
.menu-toggle { display: none; margin-left: auto; font-size: 23px; }
.search-toggle { font-size: 25px; }
.search-panel { position: sticky; top: 86px; z-index: 45; display: none; align-items: center; gap: 18px; padding: 18px max(4vw, 24px); background: var(--gamenyx-ink); color: #fff; }
.search-panel.is-open { display: flex; }
.search-panel form { display: flex; align-items: center; gap: 16px; width: 100%; }
.search-panel label { font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.search-panel input { flex: 1; background: transparent; color: #fff; border: 0; border-bottom: 1px solid #5f626b; padding: 10px 0; outline: 0; }
.search-close { color: #fff; font-size: 28px; }

.hero { max-width: 1500px; min-height: 610px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr; background: var(--gamenyx-dark); color: #fff; }
.hero-main, .hero-side-story { position: relative; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility .45s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.story-art { position: absolute; inset: 0; background-position: center; background-size: cover; background-repeat: no-repeat; transition: transform .55s ease; }
.story-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(5,7,14,.9) 100%); }
.hero-main:hover .story-art, .hero-side-story:hover .story-art, .story-card:hover .story-card-image { transform: scale(1.035); }
.hero-copy { position: absolute; left: 7%; right: 7%; bottom: 12%; z-index: 2; max-width: 760px; }
.eyebrow, .section-kicker, .feature-copy > span, .contact-band span { color: var(--gamenyx-red); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.hero-copy h1 { max-width: 830px; margin: 16px 0 18px; font-size: clamp(42px, 5.6vw, 82px); line-height: .94; letter-spacing: -.055em; }
.hero-copy p { max-width: 620px; color: #d4d6dc; line-height: 1.6; }
.story-link { display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.story-link b { color: var(--gamenyx-red); margin-left: 7px; }
.hero-controls { position: absolute; right: 4%; bottom: 5%; z-index: 4; display: flex; align-items: center; gap: 9px; }
.hero-controls button { width: 30px; height: 3px; padding: 0; border: 0; background: rgba(255,255,255,.35); cursor: pointer; }
.hero-controls button.is-active { width: 52px; background: var(--gamenyx-red); }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; }
.hero-side-story { min-height: 305px; border-left: 1px solid rgba(255,255,255,.18); border-bottom: 1px solid rgba(255,255,255,.18); }
.hero-side-copy { position: absolute; left: 8%; right: 8%; bottom: 10%; z-index: 2; }
.hero-side-copy h2 { margin: 10px 0 0; font-size: clamp(20px, 2vw, 29px); line-height: 1.06; letter-spacing: -.035em; }
.hero-empty { grid-column: 1 / -1; display: flex; align-items: end; min-height: 610px; padding: 8%; background: linear-gradient(135deg, #090b10, #242936); }
.hero-empty h1 { max-width: 850px; margin: 15px 0; font-size: clamp(48px, 7vw, 94px); line-height: .92; letter-spacing: -.06em; }
.hero-empty p { max-width: 620px; color: #c5c8d0; font-size: 18px; line-height: 1.6; }

.ticker { display: flex; align-items: center; gap: 24px; padding: 17px max(4vw, 24px); background: var(--gamenyx-red); color: #fff; overflow: hidden; }
.ticker strong { font-size: 10px; letter-spacing: .15em; background: var(--gamenyx-ink); padding: 8px 12px; }
.ticker span { white-space: nowrap; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.content-shell { max-width: 1320px; margin: 0 auto; padding: 90px 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 38px; }
.section-heading h2 { margin: 8px 0 0; font-size: clamp(38px, 5vw, 68px); letter-spacing: -.055em; }
.section-heading a { padding-bottom: 6px; border-bottom: 2px solid var(--gamenyx-red); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 22px; }
.story-card { overflow: hidden; background: #fff; border-bottom: 3px solid transparent; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.story-card:hover { transform: translateY(-5px); border-color: var(--gamenyx-red); box-shadow: 0 18px 45px rgba(23,24,30,.1); }
.story-card-image { height: 220px; background-position: center; background-size: cover; transition: transform .55s ease; }
.story-card-copy { padding: 22px 22px 25px; }
.story-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; letter-spacing: .11em; font-weight: 900; text-transform: uppercase; }
.story-meta time { color: #9a9da4; }
.story-card h3 { margin: 14px 0; font-size: 24px; line-height: 1.08; letter-spacing: -.035em; }
.story-card p { color: var(--gamenyx-muted); line-height: 1.55; font-size: 14px; }
.empty-state { padding: 42px; background: #fff; border-left: 4px solid var(--gamenyx-red); }
.empty-state h3 { margin-top: 0; font-size: 28px; }
.empty-state p { margin-bottom: 0; color: var(--gamenyx-muted); line-height: 1.6; }

.scoreboard { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 25px; padding: 70px max(5vw, 28px); background: #171920; color: #fff; }
.score-intro { padding-right: 7%; }
.score-intro h2 { margin: 10px 0; font-size: 48px; letter-spacing: -.05em; }
.score-intro p { color: #afb2ba; line-height: 1.6; }
.score-card { display: flex; align-items: center; gap: 20px; padding: 30px; background: var(--gamenyx-red); }
.score-card.is-dark { background: #282b35; }
.score-card > strong { font-size: 67px; line-height: 1; }
.score-card span { font-size: 9px; letter-spacing: .13em; font-weight: 900; }
.score-card h3 { margin: 8px 0; font-size: 23px; }
.score-card p { margin: 0; color: #f1f1f1; font-size: 13px; line-height: 1.45; }
.feature-row { min-height: 550px; display: grid; grid-template-columns: 1.3fr 1fr; background: #fff; }
.feature-art { min-height: 430px; background-position: center; background-size: cover; }
.feature-copy { display: flex; flex-direction: column; justify-content: center; padding: 8%; }
.feature-copy h2 { margin: 14px 0 20px; font-size: clamp(42px, 5vw, 68px); line-height: .98; letter-spacing: -.055em; }
.feature-copy p { max-width: 540px; color: var(--gamenyx-muted); line-height: 1.7; }
.contact-band { display: flex; align-items: end; justify-content: space-between; gap: 50px; padding: 68px max(7vw, 30px); background: var(--gamenyx-red); color: #fff; }
.contact-band span { color: var(--gamenyx-ink); }
.contact-band h2 { margin: 10px 0; font-size: clamp(38px, 5vw, 64px); letter-spacing: -.055em; }
.contact-band p { margin-bottom: 0; }
.contact-button { display: inline-block; padding: 18px 25px; background: var(--gamenyx-ink); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .1em; }

.archive-hero { padding: 75px max(5vw, 28px) 35px; background: #fff; }
.archive-hero h1 { margin: 10px 0; font-size: clamp(48px, 7vw, 82px); letter-spacing: -.06em; }
.archive-hero p { max-width: 700px; color: var(--gamenyx-muted); line-height: 1.65; }
.pagination { margin-top: 45px; font-weight: 800; }
.pagination .nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; padding: 11px 14px; background: #fff; text-align: center; }
.pagination .current { background: var(--gamenyx-red); color: #fff; }

.article-header { min-height: 660px; display: flex; align-items: end; padding: 8% max(7vw, 28px); background-position: center; background-size: cover; color: #fff; position: relative; }
.article-header::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,7,14,.12), rgba(5,7,14,.92)); }
.article-header-inner { position: relative; z-index: 2; max-width: 980px; }
.article-header h1 { margin: 16px 0 22px; font-size: clamp(48px, 7vw, 98px); line-height: .94; letter-spacing: -.06em; }
.article-header p { max-width: 760px; color: #e2e3e7; font-size: 19px; line-height: 1.55; }
.article-header small { display: block; margin-top: 24px; color: #b8bbc4; text-transform: uppercase; letter-spacing: .1em; }
.article-body { max-width: 840px; margin: 0 auto; padding: 80px 28px 110px; }
.article-body > p, .article-body li { font: 400 clamp(18px, 2vw, 21px)/1.85 Georgia, serif; color: #33363d; }
.article-body h2 { margin-top: 56px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.article-body h3 { margin-top: 40px; font-size: 27px; letter-spacing: -.025em; }
.article-body blockquote { margin: 42px 0; padding: 8px 0 8px 28px; border-left: 4px solid var(--gamenyx-red); color: #4c5058; }
.article-body a { color: #b9222a; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.article-body figure { margin: 42px 0; }
.article-body figcaption { margin-top: 9px; color: var(--gamenyx-muted); font-size: 12px; }
.article-end { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 24px; border-top: 3px solid var(--gamenyx-ink); font-size: 10px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.page-shell { max-width: 900px; margin: 0 auto; padding: 85px 28px 120px; }
.page-shell h1 { margin: 0 0 38px; font-size: clamp(48px, 7vw, 84px); line-height: .96; letter-spacing: -.06em; }
.page-content > p, .page-content li { font: 400 19px/1.8 Georgia, serif; color: #34373e; }
.page-content h2 { margin-top: 50px; font-size: 38px; letter-spacing: -.04em; }

.site-footer { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; padding: 65px max(5vw, 28px); background: #05060a; color: #fff; }
.footer-brand { width: max-content; }
.footer-copy { color: #92959c; text-align: right; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.site-footer small { color: #666a72; text-align: right; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .site-header { min-height: 72px; gap: 14px; }
  .brand { font-size: 20px; }
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; margin: 0; padding: 26px; flex-direction: column; align-items: flex-start; background: #fff; border-top: 1px solid #eee; }
  .main-nav.is-open { display: flex; }
  .search-panel { top: 72px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-main { min-height: 610px; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: 320px; }
  .hero-side-story { min-height: 320px; }
  .story-grid { grid-template-columns: repeat(2, 1fr); }
  .scoreboard { grid-template-columns: 1fr 1fr; }
  .score-intro { grid-column: 1 / -1; }
  .feature-row { grid-template-columns: 1fr; }
  .contact-band { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 600px) {
  .support-bar { font-size: 9px; }
  .search-panel label { display: none; }
  .hero-main { min-height: 540px; }
  .hero-copy { left: 24px; right: 24px; bottom: 72px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-side { grid-template-columns: 1fr; grid-template-rows: auto; }
  .hero-side-story { min-height: 280px; }
  .hero-controls { left: 24px; right: auto; bottom: 28px; }
  .content-shell { padding: 65px 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .story-grid { grid-template-columns: 1fr; }
  .scoreboard { grid-template-columns: 1fr; }
  .score-intro { grid-column: auto; }
  .score-intro h2 { font-size: 42px; }
  .feature-copy { padding: 60px 24px; }
  .article-header { min-height: 560px; }
  .article-header h1 { font-size: 47px; }
  .article-end { flex-direction: column; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-copy, .site-footer small { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .story-art, .story-card, .story-card-image { transition: none; }
}
