/*
Theme Name: RomsGamesPlay
Theme URI: https://romsgamesplay.com/
Author: Roms Games
Author URI: https://romsgamesplay.com/
Description: A dark, modern gaming-magazine WordPress theme built for free browser-game guides, tips and reviews. Neon-green accents, chunky display headings, card grids, hero slider, trending strip, AdSense-ready ad slots, cookie-consent banner and full Customizer controls. Lightweight vanilla CSS/JS — no frameworks.
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: romsgamesplay
Tags: blog, news, gaming, dark, responsive, custom-logo, custom-colors, featured-images, custom-menu, translation-ready
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
*/

/* ============ Design tokens ============ */
:root {
  --bg: #0d1117;
  --bg-2: #111722;
  --bg-3: #18202e;
  --card: #141b28;
  --accent: #39ff14;
  --accent-2: #22d3ee;
  --accent-dim: rgba(57, 255, 20, 0.12);
  --heading: #f2f6fc;
  --text: #c3ccd9;
  --muted: #8b98ad;
  --border: #232e42;
  --radius: 12px;
  --radius-sm: 8px;
  --glow: 0 0 18px rgba(57, 255, 20, 0.35);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  --font-head: 'Chakra Petch', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 72px;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 300px at 15% -5%, rgba(57, 255, 20, 0.06), transparent 60%),
    radial-gradient(700px 340px at 90% 0%, rgba(34, 211, 238, 0.05), transparent 60%);
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--heading);
  line-height: 1.25;
  margin: 0 0 0.6em;
  letter-spacing: 0.01em;
}
a { color: var(--accent); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--accent-2); }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0 0 1.1em; }
::selection { background: var(--accent); color: #06120a; }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; position: relative; z-index: 1; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ============ Buttons ============ */
.btn, button.btn, input[type="submit"].btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.95rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  background: var(--accent); color: #07130a;
  border: 2px solid var(--accent); border-radius: var(--radius-sm);
  padding: 0.75rem 1.5rem; cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.15s ease, background 0.2s ease;
}
.btn:hover { color: #07130a; box-shadow: var(--glow); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--accent-dim); color: var(--accent); box-shadow: none; }

/* ============ Section headers ============ */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; margin: 2.75rem 0 1.5rem;
}
.section-title {
  font-size: 1.5rem; margin: 0; text-transform: uppercase; letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 0.6rem;
}
.section-title::before {
  content: ""; width: 6px; height: 1.4em; border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: var(--glow);
}
.section-link { font-family: var(--font-head); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }

/* ============ Topbar ============ */
.topbar {
  background: #070b11; border-bottom: 1px solid var(--border);
  font-size: 0.82rem; color: var(--muted);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.45rem 0; }
.topbar-tagline { display: flex; align-items: center; gap: 0.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: var(--glow); flex: none; }
.topbar-date { font-variant-numeric: tabular-nums; }

/* ============ Header / nav ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: var(--header-h); }
.site-branding { flex: none; }
.site-logo {
  font-family: var(--font-head); font-weight: 700; font-size: 1.7rem;
  color: var(--heading); letter-spacing: 0.03em; line-height: 1; white-space: nowrap;
}
.site-logo .logo-accent { color: var(--accent); text-shadow: 0 0 12px rgba(57, 255, 20, 0.6); }
.site-logo:hover { color: var(--heading); }
.custom-logo { max-height: 52px; width: auto; }

.main-nav { flex: 1; }
.main-nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 0.7rem 0.9rem; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 600; font-size: 0.92rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text);
}
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--accent); background: var(--accent-dim); }
.main-nav .sub-menu {
  display: none; position: absolute; background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 0.5rem; min-width: 200px; box-shadow: var(--shadow);
}
.main-nav li { position: relative; }
.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { display: block; }
.main-nav .sub-menu a { text-transform: none; font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  background: transparent; border: 1px solid var(--border); color: var(--text); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.icon-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.25s, opacity 0.25s; }

.search-bar { display: none; border-top: 1px solid var(--border); background: var(--bg-2); }
.search-bar.open { display: block; }
.search-bar .container { padding: 1rem 0; }
.search-bar form { display: flex; gap: 0.6rem; }
.search-bar input[type="search"] {
  flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--heading); padding: 0.8rem 1rem; font-size: 1rem; font-family: var(--font-body);
}
.search-bar input[type="search"]:focus { border-color: var(--accent); outline: none; }

/* ============ Ad slots ============ */
.ad-slot { margin: 1.75rem auto; text-align: center; max-width: 100%; overflow: hidden; }
.ad-slot-label {
  display: block; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.35rem;
}
.ad-slot-inner { display: inline-block; max-width: 100%; }
.ad-header { margin: 1rem auto; }
.ad-footer-slot { margin: 0 auto 2rem; }

/* ============ Hero slider ============ */
.hero { margin-top: 1.75rem; }
.hero-slider { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.hero-slide { display: none; position: relative; min-height: 420px; }
.hero-slide.active { display: block; animation: heroFade 0.6s ease; }
@keyframes heroFade { from { opacity: 0; } to { opacity: 1; } }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7, 11, 17, 0.96) 20%, rgba(7, 11, 17, 0.55) 55%, rgba(7, 11, 17, 0.15) 100%);
}
.hero-placeholder {
  position: absolute; inset: 0;
  background:
    radial-gradient(420px 220px at 80% 20%, rgba(57, 255, 20, 0.14), transparent 65%),
    radial-gradient(520px 260px at 65% 90%, rgba(34, 211, 238, 0.12), transparent 65%),
    linear-gradient(135deg, #1a2436 0%, #101724 60%, #0c1220 100%);
}
.hero-placeholder::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(57, 255, 20, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero-content { position: relative; z-index: 2; max-width: 620px; padding: 3rem 2.5rem; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent);
  background: var(--accent-dim); border: 1px solid rgba(57, 255, 20, 0.35);
  padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 1rem;
}
.hero-title { font-size: clamp(1.8rem, 4vw, 2.9rem); margin: 0 0 0.8rem; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.hero-title a { color: var(--heading); }
.hero-title a:hover { color: var(--accent); }
.hero-excerpt { color: #d5dbe5; font-size: 1.02rem; margin-bottom: 1.4rem; max-width: 34rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: 0.88rem; margin-bottom: 1.6rem; }
.hero-nav { position: absolute; right: 1.25rem; bottom: 1.25rem; z-index: 3; display: flex; gap: 0.5rem; }
.hero-dots { position: absolute; left: 2.5rem; bottom: 1.5rem; z-index: 3; display: flex; gap: 0.5rem; }
.hero-dot { width: 34px; height: 5px; border-radius: 3px; border: 0; background: rgba(255, 255, 255, 0.25); cursor: pointer; padding: 0; transition: background 0.25s, box-shadow 0.25s; }
.hero-dot.active { background: var(--accent); box-shadow: var(--glow); }

/* ============ Trending strip ============ */
.trending { margin-top: 1.75rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.trending-inner { display: flex; align-items: stretch; }
.trending-label {
  flex: none; display: flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, #1d3a12, #0f2a1a);
  border-right: 1px solid var(--border);
  font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent);
  padding: 0.9rem 1.25rem; white-space: nowrap;
}
.trending-label svg { width: 18px; height: 18px; fill: var(--accent); }
.trending-track { display: flex; gap: 0; overflow-x: auto; scrollbar-width: thin; flex: 1; }
.trending-item {
  flex: none; display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.25rem; border-right: 1px solid var(--border);
  font-size: 0.92rem; color: var(--text); max-width: 320px;
}
.trending-item:hover { color: var(--accent); background: rgba(57, 255, 20, 0.04); }
.trending-num {
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: transparent;
  -webkit-text-stroke: 1.5px var(--accent); flex: none; line-height: 1;
}

/* ============ Post cards & grids ============ */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.post-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.post-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.post-card:hover { transform: translateY(-5px); border-color: rgba(57, 255, 20, 0.45); box-shadow: var(--shadow), 0 0 0 1px rgba(57, 255, 20, 0.25); }
.post-card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-3); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.post-card:hover .post-card-media img { transform: scale(1.06); }
.post-card-media > a:first-child { display: block; width: 100%; height: 100%; }
.post-card-media a.post-card-cat { width: auto; height: auto; display: inline-block; }
.post-card-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(240px 140px at 75% 25%, rgba(57, 255, 20, 0.16), transparent 65%),
    radial-gradient(260px 150px at 25% 80%, rgba(34, 211, 238, 0.12), transparent 65%),
    linear-gradient(135deg, #1b2536 0%, #111a29 100%);
}
.post-card-placeholder svg { width: 52px; height: 52px; stroke: var(--accent); opacity: 0.55; fill: none; stroke-width: 1.5; }
.post-card-cat {
  position: absolute; top: 0.8rem; left: 0.8rem; z-index: 2;
  font-family: var(--font-head); font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  background: var(--accent); color: #07130a; padding: 0.28rem 0.7rem; border-radius: 4px;
}
.post-card-cat:hover { color: #07130a; box-shadow: var(--glow); }
.post-card-body { padding: 1.2rem 1.25rem 1.35rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.post-card-title { font-size: 1.08rem; margin: 0; }
.post-card-title a { color: var(--heading); }
.post-card-title a:hover { color: var(--accent); }
.post-card-excerpt { font-size: 0.92rem; color: var(--muted); margin: 0; flex: 1; }
.post-card-meta { display: flex; flex-wrap: wrap; gap: 0.9rem; font-size: 0.8rem; color: var(--muted); }
.post-card-meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 0.3rem; stroke: currentColor; fill: none; stroke-width: 2; }

/* Category mini-rows on front page */
.cat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.cat-lead { min-height: 100%; }
.cat-lead .post-card-title { font-size: 1.4rem; }
.cat-list { display: flex; flex-direction: column; gap: 1rem; }
.cat-list-item { display: flex; gap: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0.8rem; transition: border-color 0.25s; }
.cat-list-item:hover { border-color: rgba(57, 255, 20, 0.4); }
.cat-list-thumb { flex: none; width: 130px; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--bg-3); }
.cat-list-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-list-thumb .post-card-placeholder svg { width: 30px; height: 30px; }
.cat-list-body h3 { font-size: 1rem; margin: 0 0 0.35rem; }
.cat-list-body h3 a { color: var(--heading); }
.cat-list-body h3 a:hover { color: var(--accent); }
.cat-list-body .post-card-meta { font-size: 0.78rem; }

/* ============ Layout: content + sidebar ============ */
.content-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2.25rem; margin: 2rem auto 3rem; align-items: start; }
.content-wrap.no-sidebar { grid-template-columns: minmax(0, 1fr); }
.content-area { min-width: 0; }

/* ============ Page headers (archive/search/page) ============ */
.page-header { margin: 2rem 0 1.75rem; }
.page-title { font-size: 2rem; text-transform: uppercase; letter-spacing: 0.03em; margin: 0 0 0.4rem; }
.page-title .accent { color: var(--accent); }
.archive-description { color: var(--muted); max-width: 60ch; }
.result-count { color: var(--muted); font-size: 0.9rem; }

/* ============ Single post ============ */
.single-wrap { max-width: 100%; }
.breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.1rem; display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.breadcrumbs .sep { color: var(--border); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .current { color: var(--text); }
.single-header .post-card-cat { position: static; display: inline-block; margin-bottom: 0.9rem; }
.single-title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); margin: 0 0 1rem; }
.single-meta { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; color: var(--muted); font-size: 0.88rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem; }
.single-meta svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 0.35rem; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }
.meta-author { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 600; }
.meta-author img { border-radius: 50%; border: 2px solid var(--accent); }
.single-featured { margin: 0 0 1.75rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.single-featured img { width: 100%; }
.single-featured figcaption { font-size: 0.82rem; color: var(--muted); padding: 0.6rem 1rem; background: var(--bg-2); }

/* Table of contents */
.toc { background: var(--bg-2); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 1.1rem 1.4rem; margin: 0 0 1.75rem; }
.toc-title { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; color: var(--heading); margin: 0 0 0.6rem; display: flex; align-items: center; gap: 0.5rem; }
.toc-title svg { width: 17px; height: 17px; stroke: var(--accent); fill: none; stroke-width: 2; }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc li { margin: 0.3rem 0; font-size: 0.94rem; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--accent); }

/* Article typography */
.single-content { font-size: 1.05rem; color: var(--text); }
.single-content > *:first-child { margin-top: 0; }
.single-content h2 { font-size: 1.6rem; margin: 2.2rem 0 0.9rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--border); scroll-margin-top: calc(var(--header-h) + 20px); }
.single-content h2::before { content: "// "; color: var(--accent); }
.single-content h3 { font-size: 1.3rem; margin: 1.8rem 0 0.7rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.single-content h4 { font-size: 1.1rem; }
.single-content ul, .single-content ol { padding-left: 1.4rem; margin-bottom: 1.2em; }
.single-content li { margin-bottom: 0.4em; }
.single-content li::marker { color: var(--accent); }
.single-content blockquote { border-left: 4px solid var(--accent); background: var(--bg-2); margin: 1.5em 0; padding: 1rem 1.4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--heading); }
.single-content blockquote p:last-child { margin-bottom: 0; }
.single-content code { background: var(--bg-3); color: var(--accent-2); padding: 0.15em 0.45em; border-radius: 5px; font-size: 0.9em; }
.single-content pre { background: #070b11; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.2rem; overflow-x: auto; }
.single-content pre code { background: none; padding: 0; color: var(--text); }
.single-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.95rem; }
.single-content th, .single-content td { border: 1px solid var(--border); padding: 0.7rem 0.9rem; text-align: left; }
.single-content th { background: var(--bg-3); color: var(--heading); font-family: var(--font-head); text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.05em; }
.single-content tr:nth-child(even) td { background: rgba(255, 255, 255, 0.015); }
.single-content img { border-radius: var(--radius-sm); }
.single-content figure { margin: 1.5em 0; }
.single-content figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 2rem 0 1.5rem; }
.tags-label { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; color: var(--muted); }
.post-tags a { font-size: 0.85rem; border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.9rem; color: var(--text); }
.post-tags a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* Share row */
.share-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.4rem; margin-bottom: 2rem; }
.share-label { font-family: var(--font-head); font-weight: 700; text-transform: uppercase; font-size: 0.88rem; letter-spacing: 0.06em; color: var(--heading); }
.share-buttons { display: flex; gap: 0.6rem; }
.share-buttons a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--border); transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.share-buttons a:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--accent-dim); }
.share-buttons svg { width: 18px; height: 18px; fill: var(--text); }
.share-buttons a:hover svg { fill: var(--accent); }

/* Author box */
.author-box { display: flex; gap: 1.4rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 2rem; align-items: flex-start; }
.author-box img { border-radius: 50%; border: 3px solid var(--accent); flex: none; }
.author-box h3 { margin: 0 0 0.2rem; font-size: 1.25rem; }
.author-role { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); font-family: var(--font-head); font-weight: 700; margin-bottom: 0.6rem; }
.author-box p { margin: 0; font-size: 0.95rem; color: var(--muted); }

/* Prev/next */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2.5rem; }
.post-nav a { display: block; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; transition: border-color 0.25s; }
.post-nav a:hover { border-color: rgba(57, 255, 20, 0.45); }
.post-nav .nav-next { text-align: right; }
.nav-label { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.3rem; }
.nav-title { display: block; color: var(--heading); font-weight: 600; font-size: 0.98rem; }
a:hover .nav-title { color: var(--accent); }

/* Related posts */
.related-posts { margin-bottom: 2.5rem; }
.related-posts > h2 { font-size: 1.4rem; text-transform: uppercase; margin-bottom: 1.2rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }

/* Comments */
.comments-area { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 2rem; }
.comments-title { font-size: 1.3rem; margin-bottom: 1.2rem; }
.comment-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; margin-top: 1rem; }
.comment-body { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.comment-author { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { color: var(--heading); font-weight: 600; font-style: normal; }
.comment-meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.5rem; }
.comment-reply-link { font-size: 0.85rem; font-weight: 600; }
.comment-form label { display: block; font-size: 0.9rem; color: var(--muted); margin-bottom: 0.35rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--heading); padding: 0.75rem 0.9rem; font-family: var(--font-body); font-size: 0.95rem; margin-bottom: 1rem;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); outline: none; }
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.comment-form-cookies-consent input { width: auto; margin: 0; }

/* ============ Sidebar ============ */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: calc(var(--header-h) + 1rem); }
.widget { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.widget-title { font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 1rem; padding-bottom: 0.7rem; border-bottom: 2px solid var(--accent); display: inline-block; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--text); }
.widget li a:hover { color: var(--accent); }
.widget_search form, .widget .search-form { display: flex; gap: 0.5rem; }
.widget_search input[type="search"], .widget .search-form input[type="search"] {
  flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--heading); padding: 0.7rem 0.9rem; font-size: 0.92rem;
}
.widget_search input[type="submit"], .widget .search-form input[type="submit"] {
  background: var(--accent); color: #07130a; border: 0; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-weight: 700; padding: 0.7rem 1rem; cursor: pointer; text-transform: uppercase; font-size: 0.85rem;
}
.widget .tagcloud a { display: inline-block; font-size: 0.85rem !important; border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.8rem; margin: 0 0.3rem 0.4rem 0; color: var(--text); }
.widget .tagcloud a:hover { border-color: var(--accent); color: var(--accent); }
.widget_calendar table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.widget_calendar th, .widget_calendar td { text-align: center; padding: 0.35rem; }
.widget_calendar caption { color: var(--heading); font-weight: 600; margin-bottom: 0.5rem; }

/* ============ Pagination ============ */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin: 2.5rem 0 1rem; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font-head); font-weight: 700; padding: 0 0.9rem;
}
.pagination .page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #07130a; }

/* ============ Footer ============ */
.site-footer { background: #070b11; border-top: 1px solid var(--border); margin-top: 3rem; position: relative; z-index: 1; }
.site-footer::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent)); }
.footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.25rem; padding: 3rem 0 2.5rem; }
.footer-logo { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--heading); }
.footer-logo .logo-accent { color: var(--accent); }
.footer-about p { color: var(--muted); font-size: 0.93rem; margin: 0.8rem 0 1.2rem; }
.footer-widget-title { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 1rem; color: var(--heading); }
.footer-widget-title::after { content: ""; display: block; width: 34px; height: 3px; background: var(--accent); border-radius: 2px; margin-top: 0.45rem; box-shadow: var(--glow); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; font-size: 0.93rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--accent); padding-left: 4px; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--border); }
.footer-social a:hover { border-color: var(--accent); transform: translateY(-2px); }
.footer-social svg { width: 17px; height: 17px; fill: var(--text); }
.footer-social a:hover svg { fill: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; }
.footer-bottom .footer-links { display: flex; gap: 1.2rem; }
.footer-bottom .footer-links a:hover { padding-left: 0; }

/* ============ Cookie consent banner ============ */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 200;
  background: rgba(17, 23, 34, 0.98); border: 1px solid var(--accent);
  border-radius: var(--radius); box-shadow: var(--shadow), var(--glow);
  padding: 1.2rem 1.4rem; display: none; align-items: center; gap: 1.2rem; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto;
}
.cookie-banner.show { display: flex; animation: cookieIn 0.4s ease; }
@keyframes cookieIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.cookie-text { flex: 1; min-width: 220px; font-size: 0.92rem; color: var(--text); margin: 0; }
.cookie-text a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.6rem; }

/* ============ Back to top ============ */
.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 150;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); border: 0; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--glow); transition: transform 0.2s;
}
.back-to-top.show { display: inline-flex; }
.back-to-top:hover { transform: translateY(-3px); }
.back-to-top svg { width: 22px; height: 22px; stroke: #07130a; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ============ 404 Game Over ============ */
.gameover { text-align: center; padding: 4rem 1rem; max-width: 640px; margin: 0 auto; }
.gameover-kicker { font-family: var(--font-head); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-2); font-size: 0.9rem; }
.gameover-title {
  font-size: clamp(3.5rem, 12vw, 7rem); margin: 0.5rem 0 1rem; line-height: 1;
  color: var(--accent); text-shadow: 0 0 30px rgba(57, 255, 20, 0.5);
  animation: glitchPulse 2.4s ease-in-out infinite;
}
@keyframes glitchPulse {
  0%, 100% { text-shadow: 0 0 30px rgba(57, 255, 20, 0.5); transform: none; }
  50% { text-shadow: -3px 0 rgba(34, 211, 238, 0.7), 3px 0 rgba(57, 255, 20, 0.7); transform: translateX(1px); }
}
.gameover p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.8rem; }
.gameover-actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.gameover-search { max-width: 420px; margin: 2rem auto 0; }
.gameover-search form { display: flex; gap: 0.6rem; }
.gameover-search input[type="search"] { flex: 1; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--heading); padding: 0.8rem 1rem; }

/* ============ No results / empty states ============ */
.no-results { text-align: center; padding: 3rem 1rem; background: var(--bg-2); border: 1px dashed var(--border); border-radius: var(--radius); }
.no-results h2 { margin-bottom: 0.6rem; }
.no-results p { color: var(--muted); }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .content-wrap { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
  .footer-widgets { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 0.6rem; }
  .main-nav a { padding: 0.85rem 1rem; }
  .main-nav .sub-menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--accent); border-radius: 0; margin-left: 1rem; }
  .topbar-date { display: none; }
  .hero-content { padding: 2rem 1.5rem; }
  .hero-slide { min-height: 380px; }
  .hero-dots { left: 1.5rem; }
  .cat-row { grid-template-columns: 1fr; }
  .trending-label { font-size: 0.78rem; padding: 0.9rem 0.8rem; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .post-grid, .post-grid.cols-2, .post-grid.cols-4, .related-grid { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-widgets { grid-template-columns: 1fr; gap: 1.75rem; padding: 2.25rem 0; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .nav-next { text-align: left; }
  .author-box { flex-direction: column; }
  .hero-nav { display: none; }
  .share-row { flex-direction: column; align-items: flex-start; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
  .section-title { font-size: 1.25rem; }
}

/* ============ Print ============ */
@media print {
  .site-header, .site-footer, .sidebar, .share-row, .related-posts, .post-nav, .comments-area, .back-to-top, .cookie-banner, .ad-slot, .hero-nav, .hero-dots { display: none !important; }
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .single-content, h1, h2, h3 { color: #000; }
}
