/*
Theme Name: TrendVetted
Theme URI: https://trendvetted.com
Description: Editorial product review theme. Separating viral hype from real value. Reviews are posts with structured verdict fields filled through the REST API.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: trendvetted
License: GPL-2.0-or-later
*/


:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #4B5563;
  --line: #E5E7EB;
  --line-strong: #D1D5DB;

  --vetted: #047857;      /* emerald 700: passes 4.5:1 for white text */
  --vetted-soft: #ECFDF5;
  --skip: #C2410C;        /* coral-red, darkened to pass contrast */
  --skip-soft: #FFF1EC;
  --wait: #B45309;        /* amber 700 */
  --wait-soft: #FFFBEB;

  --font-head: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius: 10px;
  --maxw: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-head);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Nav ---------- */
.nav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.nav .wrap { display: flex; align-items: center; gap: 32px; min-height: 68px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: -0.03em; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); display: grid; place-items: center; }
.logo b { color: var(--vetted); font-weight: 800; }
.nav-links { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 8px 0; display: inline-block; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); }
.search { margin-left: auto; position: relative; }
.search input {
  font: inherit; font-size: 14px; width: 260px; height: 40px; padding: 0 14px 0 38px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--ink);
}
.search input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.search svg { position: absolute; left: 13px; top: 12px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: #fff; padding: 6px 10px; border-radius: 6px; line-height: 1;
}
.badge.vetted { background: var(--vetted); }
.badge.skip { background: var(--skip); }
.badge.wait { background: var(--wait); }
.badge.lg { font-size: 15px; padding: 10px 14px; border-radius: 8px; }

/* ---------- Placeholder image ---------- */
.ph {
  background: repeating-linear-gradient(135deg, #EEF0F3 0 12px, #E6E9ED 12px 24px);
  display: grid; place-items: center; color: var(--muted);
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 700; font-size: 16px;
  text-decoration: none; border: 0; cursor: pointer; font-family: var(--font-head);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-strong); }

.fine { font-size: 12px; color: var(--muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }

@media (max-width: 760px) {
  .search { margin-left: 0; width: 100%; }
  .search input { width: 100%; }
  .nav .wrap { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .nav-links { gap: 16px; }
}

/* ========== Homepage & archive ========== */
/* Hero */
.hero { padding: 56px 0 28px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.035em; margin: 0; font-weight: 800; max-width: 820px; }
.hero p.method { font-family: var(--font-body); font-size: 19px; color: var(--ink-2); margin: 16px 0 0; max-width: 700px; }
.hero p.method a { font-family: var(--font-head); font-size: 15px; font-weight: 600; margin-left: 4px; }
.legend { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 22px; font-size: 14px; color: var(--ink-2); }
.legend span { display: inline-flex; gap: 8px; align-items: center; }

/* Filter bar */
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 22px 0; }
.pill {
  font: inherit; font-size: 14px; font-weight: 600; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer;
}
.pill[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters .count { margin-left: auto; font-size: 14px; color: var(--muted); }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: border-color .15s, transform .15s; }
.card[hidden] { display: none; }
.card:hover { border-color: var(--ink); transform: translateY(-2px); }
.card .media { position: relative; aspect-ratio: 4 / 3; }
.card .media .badge { position: absolute; top: 12px; left: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card .cat { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.card h3 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
.catch { font-family: var(--font-body); font-size: 15px; line-height: 1.45; color: var(--ink-2); margin: 0; }
.catch strong { font-family: var(--font-head); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-right: 4px; }
.card .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 17px; }
.price small { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 4px; }
.read { font-size: 14px; font-weight: 600; color: var(--ink-2); }

/* Feature card (first) spans 2 */
.card.feature { grid-column: span 2; flex-direction: row; }
.card.feature .media { aspect-ratio: auto; flex: 1 1 50%; min-height: 300px; }
.card.feature .body { flex: 1 1 50%; padding: 24px; }
.card.feature h3 { font-size: 26px; }
.card.feature .catch { font-size: 17px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; margin: 8px 0 18px; }
.section-head h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0; }

@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 820px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .card.feature { flex-direction: column; } .card.feature .media { min-height: 220px; } }
@media (max-width: 540px) { .grid { grid-template-columns: minmax(0, 1fr); } .card.feature { grid-column: auto; } .filters .count { margin-left: 0; width: 100%; } }

/* ========== Single review ========== */
.crumbs { font-size: 13px; color: var(--muted); padding: 24px 0 0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.layout { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 20px; }
.main { flex: 999 1 600px; min-width: 0; max-width: 760px; }
.aside { flex: 1 1 300px; position: sticky; top: 92px; }

.title h1 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.035em; margin: 10px 0 14px; font-weight: 800; }
.title .dek { font-family: var(--font-body); font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0 0 18px; }
.byline { display: flex; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.avatar { width: 36px; height: 36px; border-radius: 50%; }
.byline strong { color: var(--ink); }
.tested { display: inline-flex; align-items: center; gap: 6px; color: var(--vetted); font-weight: 600; }

/* ---------- 10-Second Verdict Box (focal point) ---------- */
.verdict {
  margin: 32px 0 40px; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink); overflow: hidden;
}
.verdict-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; background: var(--ink); color: #fff; flex-wrap: wrap; }
.verdict-head .label { font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.verdict-head .date { font-size: 13px; color: #D1D5DB; }
.verdict-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px; padding: 24px 22px; }
.verdict-status { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.verdict-status .thumb { width: 100%; aspect-ratio: 1; border-radius: 10px; }
.verdict-status .badge { font-size: 20px; padding: 12px 18px; border-radius: 8px; width: 100%; justify-content: center; }
.verdict-lines { display: flex; flex-direction: column; gap: 16px; }
.vline { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.vline dt { font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.vline dd { margin: 0; font-family: var(--font-body); font-size: 18px; line-height: 1.45; }
.vline.catch dt { color: var(--skip); }
dl { margin: 0; display: flex; flex-direction: column; gap: 16px; }
.verdict-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.verdict-cta .price { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; }
.verdict-cta .price small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.verdict-cta .btn { margin-left: auto; }
.verdict-alt { padding: 14px 22px; background: var(--vetted-soft); border-top: 1px solid var(--line); font-size: 15px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.verdict-alt a { font-weight: 700; color: var(--vetted); }

/* ---------- Article body ---------- */
.prose h2 { font-size: 28px; letter-spacing: -0.025em; line-height: 1.2; margin: 48px 0 14px; font-weight: 800; }
.prose h2 .num { color: var(--muted); font-weight: 600; margin-right: 8px; }
.prose p, .prose li { font-family: var(--font-body); font-size: 19px; line-height: 1.7; color: var(--ink); }
.prose p { margin: 0 0 20px; }
.prose ul { padding-left: 22px; margin: 0 0 20px; }
.figure { margin: 28px 0; }
.figure .ph { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.hype-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 24px; }
.hype-points div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.hype-points b { display: block; font-size: 15px; margin-bottom: 4px; }
.hype-points span { font-family: var(--font-body); font-size: 15px; color: var(--ink-2); line-height: 1.5; }

/* Complaints callout */
.complaints { background: var(--skip-soft); border: 1px solid #F6C9B8; border-radius: 14px; padding: 24px; margin: 8px 0 24px; }
.complaints-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.complaints-head h3 { margin: 0; font-size: 18px; letter-spacing: -0.01em; }
.complaints-head .src { margin-left: auto; font-size: 13px; color: var(--muted); }
.complaint { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid #F6C9B8; }
.complaint:first-of-type { border-top: 0; padding-top: 0; }
.complaint .n { width: 28px; height: 28px; border-radius: 50%; background: var(--skip); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.complaint b { display: block; font-size: 16px; margin-bottom: 4px; }
.complaint q { font-family: var(--font-body); font-style: italic; font-size: 16px; color: var(--ink-2); line-height: 1.5; quotes: "\201C" "\201D"; }
.complaint .freq { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Comparison table */
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin: 8px 0 24px; }
table { width: 100%; border-collapse: collapse; min-width: 560px; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; }
thead th { font-size: 13px; letter-spacing: 0.04em; background: #F3F4F6; border-bottom: 1px solid var(--line-strong); }
thead th .badge { margin-top: 8px; }
thead th .pname { display: block; font-size: 16px; letter-spacing: -0.01em; text-transform: none; }
tbody th { font-weight: 600; color: var(--muted); width: 26%; }
td.alt { background: #F6FDF9; }
thead th.alt { background: var(--vetted-soft); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.win { color: var(--vetted); font-weight: 700; }
.lose { color: var(--skip); font-weight: 600; }

/* Sticky sidebar: better alternative */
.alt-card { background: var(--surface); border: 2px solid var(--vetted); border-radius: 14px; overflow: hidden; }
.alt-card .tag { background: var(--vetted); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 10px 18px; }
.alt-card .inner { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.alt-card .ph { aspect-ratio: 4 / 3; border-radius: 8px; }
.alt-card h3 { margin: 0; font-size: 20px; letter-spacing: -0.02em; line-height: 1.2; }
.alt-card p { margin: 0; font-family: var(--font-body); font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.alt-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.alt-card li { display: flex; gap: 8px; align-items: flex-start; }
.alt-card .row { display: flex; justify-content: space-between; align-items: baseline; }
.alt-card .price { font-size: 22px; font-weight: 800; }
.alt-card .btn { width: 100%; background: var(--vetted); color: #fff; }
.alt-card .btn:hover { background: #065F46; }
.toc { margin-top: 20px; font-size: 14px; }
.toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin: 0 0 10px; }
.toc ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.toc a { text-decoration: none; color: var(--ink-2); }
.toc a:hover { color: var(--ink); text-decoration: underline; }

.prose p.fine { font-family: var(--font-head); font-size: 13px; color: var(--muted); }
.bottom-line { border-top: 2px solid var(--ink); padding-top: 24px; margin-top: 48px; }

@media (max-width: 1000px) {
  .aside { position: static; }
  .toc { display: none; }
}
@media (max-width: 640px) {
  .verdict-body { grid-template-columns: minmax(0, 1fr); }
  .verdict-status { flex-direction: row; align-items: center; }
  .verdict-status .thumb { width: 88px; flex: none; }
  .verdict-status .badge { width: auto; }
  .vline { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .verdict-cta .btn { margin-left: 0; width: 100%; }
  .hype-points { grid-template-columns: minmax(0, 1fr); }
  .verdict { box-shadow: 4px 4px 0 var(--ink); }
}

/* ========== WordPress extras ========== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.card .media img, .verdict-status .thumb img, .alt-card .media img, .figure img { width: 100%; height: 100%; object-fit: cover; }
.card .media img { position: absolute; inset: 0; }
.card.feature .media img { position: absolute; inset: 0; }
.verdict-status .thumb { overflow: hidden; }
.prose a { color: var(--vetted); font-weight: 600; }
.prose img { height: auto; border-radius: var(--radius); }
.prose h3 { font-size: 21px; letter-spacing: -0.015em; margin: 32px 0 10px; }
.prose blockquote { margin: 24px 0; padding-left: 18px; border-left: 3px solid var(--line-strong); color: var(--ink-2); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 8px; text-decoration: none; font-weight: 600; background: var(--surface); padding: 0 12px; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
a.pill { display: inline-flex; align-items: center; text-decoration: none; }
.empty { padding: 48px 0; color: var(--muted); font-family: var(--font-body); font-size: 18px; }
.page-body { max-width: 760px; padding: 40px 0; }
.page-body h1 { font-size: clamp(30px, 4.4vw, 44px); letter-spacing: -0.03em; margin: 0 0 20px; }
.archive-head { padding: 40px 0 8px; }
.archive-head h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; margin: 0; }
.archive-head p { font-family: var(--font-body); color: var(--ink-2); font-size: 18px; margin: 8px 0 0; }
.prose .complaints-head h3 { margin: 0; }
.alt-card .inner > .badge { align-self: flex-start; }
.byline .avatar { background: var(--line); }
