/* NerfCenter — modern stylesheet */
:root {
  --orange: #f4511e;
  --orange-bright: #ff7a3d;
  --navy: #101c33;
  --navy-2: #1a2a4a;
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1c2333;
  --muted: #5b6477;
  --line: #e3e3df;
  --gold: #f5a623;
  --green: #1f8a4c;
  --red: #c62828;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(16, 28, 51, .08), 0 4px 16px rgba(16, 28, 51, .06);
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1422;
    --surface: #16203a;
    --text: #e8ebf2;
    --muted: #9aa5bb;
    --line: #263150;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
  flex-wrap: wrap;
  padding-top: 6px;
  padding-bottom: 6px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -.02em;
  color: #fff !important;
  text-decoration: none !important;
}
.brand .accent { color: var(--orange-bright); }
.brand svg { display: block; }
nav.main-nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
nav.main-nav a {
  color: #cfd6e4;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
}
nav.main-nav a:hover { background: rgba(255,255,255,.1); color: #fff; text-decoration: none; }
nav.main-nav a[aria-current="page"] { background: var(--orange); color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 55%, #2b1a12 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244,81,30,.35), transparent 70%);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 14px; line-height: 1.12; letter-spacing: -.02em; }
.hero p.lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #c9d2e3; max-width: 640px; margin: 0 0 28px; }
.hero .accent { color: var(--orange-bright); }

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff !important;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover { background: var(--orange-bright); transform: translateY(-1px); }
.btn.ghost { background: rgba(255,255,255,.12); }
.btn.ghost:hover { background: rgba(255,255,255,.2); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

.stat-band { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 44px; }
.stat-band .stat b { display: block; font-size: 1.9rem; color: var(--orange-bright); line-height: 1.1; }
.stat-band .stat span { color: #aab4c8; font-size: .92rem; }

/* Sections */
section.block { padding: 52px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2.section-title { font-size: 1.7rem; letter-spacing: -.01em; margin: 0 0 6px; }
p.section-sub { color: var(--muted); margin: 0 0 28px; }

/* Cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform .12s ease, box-shadow .12s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 6px 24px rgba(16,28,51,.14); }
.card a.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card .thumb {
  aspect-ratio: 5 / 3;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}
.card .thumb img { max-height: 100%; object-fit: contain; }
.card .card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
.card .meta { color: var(--muted); font-size: .85rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.badge {
  display: inline-block;
  background: color-mix(in srgb, var(--orange) 12%, transparent);
  color: var(--orange);
  font-size: .74rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge.gray { background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }

/* Stars */
.stars { color: var(--gold); font-size: .95rem; letter-spacing: 2px; white-space: nowrap; }
.stars .num { color: var(--muted); font-size: .85rem; letter-spacing: 0; margin-left: 6px; }

/* Review page */
.breadcrumbs { font-size: .88rem; color: var(--muted); margin: 22px 0 8px; }
.breadcrumbs a { color: var(--muted); }
.review-head { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; margin: 8px 0 30px; }
@media (max-width: 760px) { .review-head { grid-template-columns: 1fr; } }
.review-head h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0 0 10px; letter-spacing: -.02em; }
.photo-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}
.summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin: 18px 0;
}
.summary-card h2, .panel h2 { font-size: 1.15rem; margin: 0 0 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.specs th { text-align: left; color: var(--muted); font-weight: 600; padding: 7px 12px 7px 0; width: 42%; vertical-align: top; white-space: nowrap; }
table.specs td { padding: 7px 0; }
table.specs tr + tr { border-top: 1px solid var(--line); }
.avail-available { color: var(--green); font-weight: 700; }
.avail-discontinued { color: var(--red); font-weight: 700; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 22px 0;
}
.panel h2 { margin-bottom: 14px; }
.review-byline { font-weight: 800; font-size: 1.05rem; margin: 22px 0 6px; color: var(--text); }
.review-byline::before { content: "✦ "; color: var(--orange); }
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .proscons { grid-template-columns: 1fr; } }
.proscons ul { margin: 8px 0 0; padding: 0 0 0 2px; list-style: none; }
.proscons li { padding: 5px 0 5px 26px; position: relative; }
.pros li::before { content: "+"; position: absolute; left: 4px; font-weight: 800; color: var(--green); }
.cons li::before { content: "–"; position: absolute; left: 4px; font-weight: 800; color: var(--red); }
.verdict {
  border-left: 4px solid var(--orange);
  background: color-mix(in srgb, var(--orange) 7%, var(--surface));
  padding: 16px 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.06rem;
  margin: 22px 0;
}
.verdict b { color: var(--orange); }

/* Buy box */
.buy-box {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  margin: 26px 0;
}
.buy-box h2 { color: #fff; font-size: 1.2rem; margin: 0 0 8px; }
.buy-box p { color: #c2cbdd; margin: 0 0 16px; font-size: .95rem; }
.buy-box .fineprint { font-size: .78rem; color: #8a96ad; margin: 14px 0 0; }
.btn.ebay { background: #e53238; }
.btn.ebay:hover { background: #ff4046; }
.btn.amazon { background: #ff9900; color: #111 !important; }
.btn.amazon:hover { background: #ffb13d; }

/* Filters (review index) */
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 26px;
  align-items: center;
}
.filters input[type="search"], .filters select {
  font: inherit;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  min-width: 0;
}
.filters input[type="search"] { flex: 1 1 220px; }
.filters .count { color: var(--muted); font-size: .9rem; margin-left: auto; }

/* Tables */
table.rank { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.rank th, table.rank td { padding: 10px 14px; text-align: left; font-size: .95rem; }
table.rank thead th { background: var(--navy); color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
table.rank tbody tr { border-top: 1px solid var(--line); }
table.rank tbody tr:hover { background: color-mix(in srgb, var(--orange) 5%, var(--surface)); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Archive list */
.archive-list { list-style: none; padding: 0; margin: 0; }
.archive-list li {
  display: flex;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
  flex-wrap: wrap;
}
.archive-list time { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; min-width: 110px; }

/* Prose pages */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -.02em; }
.prose h2 { margin-top: 2em; }
.prose ul li, .prose ol li { margin: 6px 0; }
.note {
  background: color-mix(in srgb, var(--gold) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .95rem;
}

/* Pager */
.pager { display: flex; justify-content: space-between; gap: 14px; margin: 34px 0; flex-wrap: wrap; }
.pager a { font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #aab4c8;
  margin-top: 64px;
  padding: 44px 0 36px;
  font-size: .9rem;
}
.site-footer a { color: #d7deeb; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .07em; margin: 0 0 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; padding-top: 22px; font-size: .8rem; color: #7c879c; }

/* Misc */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; background: #fff; color: var(--navy); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--text) !important;
  text-decoration: none !important;
}
.chip:hover { border-color: var(--orange); color: var(--orange) !important; }
