/*
Theme Name: NerdSnack
Theme URI: https://nerdsnack.com
Author: NerdSnack
Description: NerdSnack custom theme — anime, TCG, gaming, collectibles & food culture.
Version: 1.6.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
License: Private
Tags: blog, custom-menu, featured-images, post-thumbnails
*/

/* ============================================================
   LIGHT MODE VARIABLES
============================================================ */
[data-theme="light"] {
  --bg:      #f4f4f8;
  --bg-card: #ffffff;
  --bg-nav:  #ffffff;
  --bg-hover:#ebebf3;
  --border:  #dddde8;
  --border-h:#b0b0c8;
  --text:    #18181f;
  --muted:   #55556a;
  --dim:     #8888a0;
}
[data-theme="light"] body { background: #f4f4f8; color: #18181f; }
[data-theme="light"] .ns-hero-body,
[data-theme="light"] .ns-post-cover-body { background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.6) 35%, transparent 100%); }
[data-theme="light"] .ns-food-section { background: linear-gradient(180deg, #fff4ef 0%, #f4f4f8 100%); }
[data-theme="light"] .ns-spotlight-section { background: linear-gradient(180deg, #ededf5 0%, #f4f4f8 100%); }
[data-theme="light"] .ns-newsletter { background: linear-gradient(135deg, #ffffff, #ededf8); }
[data-theme="light"] .trending-bar { background: #f0f0f5; }
[data-theme="light"] .entry-content,
[data-theme="light"] .entry-content *:not(pre):not(code) { color: #18181f !important; background-color: transparent !important; }
[data-theme="light"] .entry-content a { color: var(--orange) !important; }

/* ============================================================
   RESET & BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: #080808;
  color: #e8e8f0;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: 'Barlow Condensed', sans-serif; }

/* ============================================================
   VARIABLES
============================================================ */
:root {
  --orange:      #ff6b35;
  --orange-low:  rgba(255,107,53,0.15);
  --bg:          #080808;
  --bg-card:     #16161a;
  --bg-hover:    #1e1e26;
  --bg-nav:      #111114;
  --border:      #2a2a35;
  --border-h:    #3a3a48;
  --text:        #e8e8f0;
  --muted:       #8888a0;
  --dim:         #50505f;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow:      0 4px 24px rgba(0,0,0,0.5);
}

/* ============================================================
   LAYOUT
============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   TRENDING BAR
============================================================ */
.trending-bar {
  background: #0a0a0c;
  border-bottom: 1px solid var(--border);
  padding: 9px 0;
  overflow: hidden;
}
.trending-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
.trending-inner::-webkit-scrollbar { display: none; }
.trending-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
  flex-shrink: 0;
}
.trending-item {
  font-size: 0.8rem;
  color: var(--muted);
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.trending-item:hover { color: var(--text); border-color: var(--border-h); }
.trending-divider { color: var(--dim); flex-shrink: 0; }

/* ============================================================
   HEADER / NAV
============================================================ */
header.site-header {
  background: rgba(10,10,12,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  align-items: center;
  height: 62px;
  gap: 20px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo-mark {
  background: var(--orange);
  color: #fff;
  font-weight: 900;
  font-size: 1rem;
  padding: 5px 9px;
  border-radius: 7px;
  letter-spacing: -0.02em;
  line-height: 1;
}
.logo-name {
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}
.logo-name span { color: var(--orange); }

.main-nav { flex: 1; overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 2px; }
.main-nav ul li a {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.main-nav ul li a:hover { color: var(--text); background: var(--bg-card); }
.main-nav ul li.food-nav > a { color: var(--orange); background: var(--orange-low); }
.main-nav ul li.food-nav > a:hover { background: rgba(255,107,53,0.25); }

.nav-search {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  gap: 8px;
  flex-shrink: 0;
}
.nav-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 0.85rem;
  width: 150px;
  padding: 7px 0;
}
.nav-search input::placeholder { color: var(--dim); }

/* ============================================================
   CATEGORY BADGES
============================================================ */
.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.cat-badge.anime    { background: rgba(155,93,229,0.2);  color: #c084fc; }
.cat-badge.tcg      { background: rgba(59,130,246,0.2);  color: #60a5fa; }
.cat-badge.gaming   { background: rgba(16,185,129,0.2);  color: #34d399; }
.cat-badge.movies   { background: rgba(245,158,11,0.2);  color: #fbbf24; }
.cat-badge.collect  { background: rgba(239,68,68,0.2);   color: #f87171; }
.cat-badge.food     { background: rgba(255,107,53,0.2);  color: var(--orange); }
.cat-badge.spotlight{ background: rgba(251,191,36,0.2);  color: #fbbf24; }
.cat-badge.snack    { background: rgba(236,72,153,0.2);  color: #f472b6; }

/* ============================================================
   HERO SECTION — full-bleed overlay (MTG-inspired)
============================================================ */
.ns-hero { padding: 0; background: #000; }

.ns-hero-card {
  position: relative;
  display: block;
  width: 100%;
  min-height: 75vh;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #0a0a0f;
  border: none;
  border-radius: 0;
  transition: none;
}
.ns-hero-card:hover { transform: none; box-shadow: none; border-color: transparent; }

.ns-hero-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  aspect-ratio: auto;
  overflow: hidden;
  background: #1a1a2e;
}
.ns-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 8s ease;
  display: block;
}
.ns-hero-card:hover .ns-hero-img img { transform: scale(1.06); }
.ns-hero-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  background: linear-gradient(135deg, #1a1a2e, #2d1b69);
}

/* Gradient overlay — absolute, fills the card, dark at bottom */
.ns-hero-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.97) 0%,
    rgba(0,0,0,0.82) 25%,
    rgba(0,0,0,0.45) 55%,
    transparent 100%
  );
}
.ns-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 56px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ns-hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 900;
  line-height: 1.0;
  color: #fff;
  max-width: 900px;
  text-transform: uppercase;
  text-shadow: 0 2px 32px rgba(0,0,0,0.7);
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.ns-hero-card:hover .ns-hero-title { color: var(--orange); }
.ns-hero-excerpt {
  font-size: 1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 600px;
}
.ns-hero-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ns-hero-meta strong { color: rgba(255,255,255,0.78); }
.ns-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #000;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 12px 28px;
  border-radius: 4px;
  margin-top: 8px;
  align-self: flex-start;
  transition: background 0.2s, transform 0.15s, gap 0.2s;
}
.ns-hero-card:hover .ns-hero-cta { gap: 12px; transform: translateY(-2px); }
.sep { color: var(--dim); }

/* ============================================================
   SECTION LAYOUT
============================================================ */
.ns-section { padding: 40px 0; }
.ns-section + .ns-section { border-top: 1px solid var(--border); }

.ns-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ns-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  border-left: 4px solid var(--orange);
  padding-left: 14px;
}
.ns-badge {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--orange);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 4px;
}
.ns-view-all {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--orange);
  transition: opacity 0.2s;
}
.ns-view-all:hover { opacity: 0.75; }

/* ============================================================
   GRIDS
============================================================ */
.ns-grid { display: grid; gap: 18px; }
.ns-grid-4 { grid-template-columns: repeat(4, 1fr); }
.ns-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ns-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ============================================================
   UNIFIED CARD — every article card looks the same
============================================================ */
.ns-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ns-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.75), 0 0 0 1px var(--orange), 0 0 28px rgba(255,107,53,0.18);
  border-color: var(--orange);
}
.ns-card > a {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

/* Card image */
.ns-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1a2e;
  flex-shrink: 0;
}
.ns-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ns-card:hover .ns-card-img img { transform: scale(1.05); }
.ns-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  background: linear-gradient(135deg, #1a1a2e, #2d1b69);
}

/* Food card placeholder */
.ns-card-food .ns-card-placeholder {
  background: linear-gradient(135deg, #1f0e04, #2d1505);
}

/* Card body */
.ns-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}
.ns-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ns-card:hover .ns-card-title { color: var(--orange); }
.ns-card-excerpt {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ns-card-meta {
  font-size: 0.74rem;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

/* Food card accent */
.ns-card-food {
  border-color: rgba(255,107,53,0.12);
}
.ns-card-food:hover {
  border-color: rgba(255,107,53,0.35);
}
.ns-food-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange);
}

/* ============================================================
   FOOD SECTION BG
============================================================ */
.ns-food-section {
  background: linear-gradient(180deg, #120704 0%, var(--bg) 100%);
}

/* ============================================================
   AFFILIATE STRIP
============================================================ */
.ns-affiliate-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(90deg, #16161a, #1c1828, #16161a);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  margin: 32px 0;
}
.ns-aff-emoji { font-size: 2.2rem; flex-shrink: 0; }
.ns-aff-text { flex: 1; }
.ns-aff-text h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 3px; }
.ns-aff-text p { font-size: 0.83rem; color: var(--muted); }

.ns-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.ns-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.ns-btn-orange { background: var(--orange); color: #fff; }
.ns-btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.ns-btn-outline:hover { border-color: var(--orange); color: var(--orange); }

/* ============================================================
   NEWSLETTER
============================================================ */
.ns-newsletter {
  background: linear-gradient(135deg, #16161a, #1a1028);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin: 32px 0 48px;
}
.ns-newsletter h3 { font-size: 1.5rem; margin-bottom: 8px; }
.ns-newsletter p { color: var(--muted); font-size: 0.9rem; margin-bottom: 20px; }
.ns-newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
}
.ns-newsletter-form input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
}
.ns-newsletter-form input:focus { border-color: var(--orange); }
.ns-newsletter-form input::placeholder { color: var(--dim); }
.ns-newsletter-note { font-size: 0.72rem; color: var(--dim); margin-top: 10px; }

/* ============================================================
   SINGLE POST — full-bleed cover hero (MTG-inspired)
============================================================ */
.ns-post-hero { background: #000; }

/* Cover: image fills background, text overlaid at bottom */
.ns-post-cover {
  position: relative;
  width: 100%;
  min-height: 480px;
  overflow: hidden;
  background: #0a0a0f;
  display: block;
}
.ns-post-cover-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.ns-post-cover-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.ns-post-cover-body {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.97) 0%,
    rgba(0,0,0,0.78) 30%,
    rgba(0,0,0,0.3) 65%,
    transparent 100%
  );
}
.ns-post-cover-body .container {
  padding-bottom: 44px;
  padding-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 900px;
}
.ns-post-cover h1 {
  font-size: clamp(1.7rem, 3.8vw, 3rem);
  font-weight: 900;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
  letter-spacing: -0.025em;
  max-width: 820px;
}

/* Fallback: no featured image — plain dark header */
.ns-post-hero-plain {
  padding: 40px 0 32px;
  background: linear-gradient(180deg, #111118 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}
.ns-post-hero-plain .container {
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ns-post-hero-plain h1 {
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text);
}

.ns-post-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
}
.ns-post-byline strong { color: rgba(255,255,255,0.82); }

.ns-post-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 36px 24px 48px;
  align-items: start;
}

/* Post content */
.ns-post-content .entry-content {
  font-size: 1.05rem;
  line-height: 1.82;
  color: #d0d0e0;
}
.entry-content h2 { font-size: 1.5rem; font-weight: 800; margin: 36px 0 12px; color: var(--text); }
.entry-content h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 10px; color: var(--text); }
.entry-content p { margin-bottom: 20px; }
.entry-content ul { list-style: disc; margin: 0 0 20px 24px; }
.entry-content ol { list-style: decimal; margin: 0 0 20px 24px; }
.entry-content li { margin-bottom: 8px; }
.entry-content img { border-radius: var(--radius); margin: 24px 0; width: 100%; }
.entry-content a { color: var(--orange); text-decoration: underline; }
.entry-content blockquote { border-left: 3px solid var(--orange); padding: 14px 20px; background: var(--bg-card); border-radius: 0 8px 8px 0; margin: 24px 0; color: var(--muted); font-style: italic; }
.entry-content strong { color: var(--text); font-weight: 700; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 0.9rem; }
.entry-content th { background: var(--bg-card); padding: 10px 14px; text-align: left; border: 1px solid var(--border); }
.entry-content td { padding: 10px 14px; border: 1px solid var(--border); }
.entry-content tr:nth-child(even) td { background: var(--bg-card); }

/* Post tags */
.ns-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.ns-post-tag { font-size: 0.78rem; padding: 4px 12px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.ns-post-tag:hover { border-color: var(--orange); color: var(--orange); }

/* Post sidebar */
.ns-post-sidebar { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 18px; }
.ns-sidebar-widget { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.ns-sidebar-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

.ns-sidebar-posts { display: flex; flex-direction: column; gap: 12px; }
.ns-sidebar-post { display: flex; gap: 10px; }
.ns-sidebar-thumb { width: 62px; height: 46px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: #222232; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.ns-sidebar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ns-sidebar-post-title { font-size: 0.82rem; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
.ns-sidebar-post-title:hover { color: var(--orange); }
.ns-sidebar-post-date { font-size: 0.7rem; color: var(--dim); margin-top: 3px; }

/* Related posts */
.ns-related { padding: 40px 0; border-top: 1px solid var(--border); }

/* ============================================================
   SPOTLIGHT FEATURED GRID
   1 featured card (top, horizontal) + 3 equal cards below
============================================================ */
.ns-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* First card spans all 3 columns — horizontal layout */
.ns-spotlight-grid > article:first-child {
  grid-column: 1 / -1;
}
.ns-spotlight-grid > article:first-child > a {
  flex-direction: row;
}
.ns-spotlight-grid > article:first-child .ns-card-img {
  width: 45%;
  min-width: 45%;
  aspect-ratio: 16/9;
  flex-shrink: 0;
}
.ns-spotlight-grid > article:first-child .ns-card-body {
  padding: 28px 32px;
  justify-content: center;
  gap: 14px;
}
.ns-spotlight-grid > article:first-child .ns-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  -webkit-line-clamp: 3;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.ns-spotlight-grid > article:first-child .ns-card-excerpt {
  -webkit-line-clamp: 3;
  font-size: 0.9rem;
}
.ns-spotlight-grid > article:first-child .ns-card-meta {
  font-size: 0.8rem;
}

/* Spotlight section bg */
.ns-spotlight-section {
  background: linear-gradient(180deg, #0e0e14 0%, var(--bg) 100%);
}

/* ============================================================
   ARCHIVE / CATEGORY
============================================================ */
.ns-archive-header { padding: 44px 0 28px; border-bottom: 1px solid var(--border); }
.ns-archive-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--orange); margin-bottom: 8px; }
.ns-archive-title { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; }
.ns-archive-desc { color: var(--muted); margin-top: 8px; max-width: 600px; font-size: 0.9rem; }
.ns-archive-grid { padding: 36px 0; }

/* ============================================================
   PAGINATION
============================================================ */
.ns-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 28px 0 40px; }
.page-numbers { font-size: 0.875rem; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); transition: all 0.2s; }
.page-numbers:hover, .page-numbers.current { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ============================================================
   AD PLACEMENTS
============================================================ */
.ns-ad-wrap { padding: 20px 0 0; text-align: center; }
.ns-ad-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 5px; }
.ns-ad-banner { background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--dim); font-size: 0.8rem; min-height: 90px; width: 100%; }

/* ============================================================
   FOOTER
============================================================ */
footer.site-footer {
  background: var(--bg-nav);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 40px;
}
.ns-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.ns-footer-brand p { font-size: 0.85rem; color: var(--muted); margin-top: 12px; line-height: 1.7; max-width: 260px; }
.ns-footer-col h4 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 14px; }
.ns-footer-col ul li { margin-bottom: 8px; }
.ns-footer-col ul li a { font-size: 0.85rem; color: var(--muted); transition: color 0.2s; }
.ns-footer-col ul li a:hover { color: var(--orange); }
.ns-footer-bottom { border-top: 1px solid var(--border); padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ns-footer-bottom p { font-size: 0.78rem; color: var(--dim); }
.ns-affiliate-disclaimer { font-size: 0.72rem; color: var(--dim); background: var(--bg-card); border: 1px solid var(--border); border-radius: 6px; padding: 10px 14px; margin-bottom: 20px; line-height: 1.6; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .ns-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .ns-post-layout { grid-template-columns: 1fr; }
  .ns-post-sidebar { position: static; }
  .ns-footer-grid { grid-template-columns: 1fr 1fr; }
  .ns-spotlight-grid { grid-template-columns: 1fr 1fr; }
  .ns-spotlight-grid > article:first-child { grid-column: 1 / -1; }
  .ns-spotlight-grid > article:first-child > a { flex-direction: column; }
  .ns-spotlight-grid > article:first-child .ns-card-img { width: 100%; min-width: 100%; aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
  .ns-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .nav-search { display: none; }
  .ns-hero-card { min-height: 420px; }
  .ns-hero-body { min-height: 420px; }
  .ns-post-cover { min-height: 340px; }
  .ns-post-cover-body { min-height: 340px; }
  .ns-hero-inner { padding: 0 20px 40px; }
}
@media (max-width: 540px) {
  .ns-grid-4, .ns-grid-3, .ns-grid-2 { grid-template-columns: 1fr; }
  .ns-spotlight-grid { grid-template-columns: 1fr; }
  .ns-spotlight-grid > article:first-child { grid-column: 1 / -1; }
  .ns-affiliate-strip { flex-direction: column; text-align: center; }
  .ns-newsletter-form { flex-direction: column; }
  .ns-footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .ns-hero-card { min-height: 360px; }
  .ns-hero-body { min-height: 360px; }
  .ns-hero-inner { padding: 0 16px 36px; }
}

/* ============================================================
   DARK MODE TOGGLE BUTTON
============================================================ */
.ns-theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}
.ns-theme-toggle:hover { color: var(--orange); border-color: var(--orange); }
/* Show moon in dark mode, sun in light mode */
.ns-icon-sun { display: none; }
.ns-icon-moon { display: block; }
[data-theme="light"] .ns-icon-sun { display: block; }
[data-theme="light"] .ns-icon-moon { display: none; }

/* ============================================================
   AFFILIATE DISCLOSURE
============================================================ */
.ns-disclosure {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--dim);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}
.ns-disclosure svg { flex-shrink: 0; margin-top: 1px; fill: var(--orange); }
.ns-disclosure a { color: var(--orange); text-decoration: underline; }

/* ============================================================
   AFFILIATE CTA BOX
============================================================ */
.ns-cta-box {
  background: linear-gradient(135deg, #16161a, #1c1828);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 36px 0 20px;
}
.ns-cta-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ns-cta-text { flex: 1; min-width: 200px; }
.ns-cta-text strong { display: block; font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.ns-cta-text p { font-size: 0.85rem; color: var(--muted); line-height: 1.55; margin: 0; }
.ns-cta-tcg   { border-color: rgba(59,130,246,0.35); background: linear-gradient(135deg, #0d1520, #0f1f35); }
.ns-cta-snack { border-color: rgba(255,107,53,0.35); background: linear-gradient(135deg, #1f0d04, #2a1208); }
.ns-cta-anime { border-color: rgba(155,93,229,0.35); background: linear-gradient(135deg, #130d1f, #1e1235); }
.ns-cta-gaming{ border-color: rgba(16,185,129,0.35); background: linear-gradient(135deg, #071612, #0d2018); }

.ns-buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--orange);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  text-decoration: none !important;
}
.ns-buy-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,53,0.4);
  color: #fff !important;
}
.ns-cta-tcg   .ns-buy-btn { background: #3b82f6; }
.ns-cta-anime .ns-buy-btn { background: #9b5de5; }
.ns-cta-gaming .ns-buy-btn { background: #10b981; }

/* ============================================================
   COMPARISON TABLE
   Usage in posts: wrap a <table> in <div class="ns-compare-table">
============================================================ */
.ns-compare-table {
  width: 100%;
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.ns-compare-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0;
}
.ns-compare-table th {
  background: var(--bg-card);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dim);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}
.ns-compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}
.ns-compare-table tr:last-child td { border-bottom: none; }
.ns-compare-table tr:hover td { background: var(--bg-hover); }
.ns-compare-table .ns-best { color: #34d399; font-weight: 700; }
.ns-compare-table .ns-buy-link {
  display: inline-flex;
  align-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 6px;
  white-space: nowrap;
  text-decoration: none;
}
.ns-compare-table .ns-buy-link:hover { opacity: 0.85; }

/* ============================================================
   COOKIE CONSENT BANNER
============================================================ */
#ns-cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #111118;
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.ns-cookie-text {
  flex: 1;
  font-size: 0.82rem;
  color: var(--muted);
  min-width: 240px;
  line-height: 1.5;
}
.ns-cookie-text a { color: var(--orange); text-decoration: underline; }
.ns-cookie-accept {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.ns-cookie-accept:hover { opacity: 0.88; }

/* ============================================================
   MOBILE IMPROVEMENTS
============================================================ */
@media (max-width: 600px) {
  .ns-cta-inner { flex-direction: column; align-items: stretch; }
  .ns-buy-btn { text-align: center; justify-content: center; }
  .ns-post-layout { padding: 24px 16px 36px; }
  .ns-post-cover { min-height: 300px; }
  .ns-post-cover-body { min-height: 300px; }
  .ns-post-cover h1 { font-size: 1.5rem; }
  .ns-post-cover-body .container { padding-bottom: 28px; }
  .ns-disclosure { font-size: 0.74rem; }
  #ns-cookie-banner { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   ELEMENTOR & BLOCK EDITOR OVERRIDES
   Forces consistent styling inside post content regardless
   of how the post was originally built.
============================================================ */

/* Strip Elementor section/column wrapper padding that bleeds layout */
.entry-content .elementor-section,
.entry-content .elementor-column,
.entry-content .elementor-column-wrap,
.entry-content .elementor-widget-wrap,
.entry-content .elementor-container,
.entry-content .elementor-row {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  background: transparent !important;
}

/* Normalize all text inside post content */
.entry-content,
.entry-content *:not(pre):not(code) {
  color: #d0d0e0 !important;
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif !important;
  background-color: transparent !important;
  border-color: var(--border) !important;
}

/* Restore specific colored elements */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: #e8e8f0 !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
}
.entry-content h2 { font-size: 1.5rem !important; margin: 36px 0 12px !important; }
.entry-content h3 { font-size: 1.2rem !important; margin: 28px 0 10px !important; }
.entry-content h4 { font-size: 1.05rem !important; margin: 22px 0 8px !important; }

.entry-content p {
  font-size: 1.05rem !important;
  line-height: 1.82 !important;
  margin-bottom: 20px !important;
  color: #d0d0e0 !important;
}

.entry-content a {
  color: var(--orange) !important;
  text-decoration: underline !important;
}
.entry-content a:hover { opacity: 0.8 !important; }

.entry-content strong,
.entry-content b {
  color: #e8e8f0 !important;
  font-weight: 700 !important;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
  border-left: 3px solid var(--orange) !important;
  padding: 14px 20px !important;
  background: var(--bg-card) !important;
  border-radius: 0 8px 8px 0 !important;
  margin: 24px 0 !important;
  color: #8888a0 !important;
  font-style: italic !important;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 20px 24px !important;
  padding: 0 !important;
}
.entry-content ul { list-style: disc !important; }
.entry-content ol { list-style: decimal !important; }
.entry-content li {
  margin-bottom: 8px !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
}

.entry-content img {
  border-radius: var(--radius) !important;
  margin: 24px 0 !important;
  width: 100% !important;
  height: auto !important;
}

.entry-content table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin: 24px 0 !important;
  font-size: 0.9rem !important;
}
.entry-content th {
  background: var(--bg-card) !important;
  padding: 10px 14px !important;
  text-align: left !important;
  border: 1px solid var(--border) !important;
  color: #e8e8f0 !important;
}
.entry-content td {
  padding: 10px 14px !important;
  border: 1px solid var(--border) !important;
}
.entry-content tr:nth-child(even) td { background: var(--bg-card) !important; }

/* WP block elements */
.entry-content .wp-block-image { margin: 24px 0 !important; }
.entry-content .wp-block-separator { border-color: var(--border) !important; margin: 28px 0 !important; }
.entry-content .wp-block-code,
.entry-content pre,
.entry-content code {
  background: var(--bg-card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  padding: 2px 6px !important;
  font-size: 0.9em !important;
  color: #c084fc !important;
}
.entry-content pre {
  padding: 16px !important;
  overflow-x: auto !important;
  line-height: 1.6 !important;
}

/* Kill any Elementor inline font-size/color spans */
.entry-content span[style],
.entry-content div[style],
.entry-content p[style] {
  color: inherit !important;
  font-size: inherit !important;
  background: transparent !important;
  font-family: inherit !important;
  line-height: inherit !important;
}
