/*
Theme Name: ScriptVR
Theme URI: https://scriptvr.com
Author: ScriptVR
Author URI: https://scriptvr.com
Description: Custom review theme for scriptvr.com — interactive VR site, hardware, and software reviews. Neutral premium dark design.
Version: 0.1.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: scriptvr
Tags: dark, one-column, custom-post-types, custom-menu
*/

/* ==========================================================================
   Design tokens — neutral premium dark
   ========================================================================== */
:root {
  --bg: #0e1013;
  --bg-elevated: #15181d;
  --surface: #1a1e25;
  --surface-2: #20252d;
  --border: #262c36;
  --border-strong: #333b48;
  --text: #e8ebf1;
  --text-muted: #9aa3b2;
  --text-faint: #6b7482;
  --accent: #c9a15a;
  --accent-strong: #e0bd7a;
  --accent-ink: #17130a;
  --danger: #d07474;
  --success: #7fb98a;
  --radius: 10px;
  --radius-sm: 6px;
  --max-w: 1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--text); margin: 0 0 0.6em; font-weight: 650; }

p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.4em; }

.screen-reader-text {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
}

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

.site-main { padding: 32px 0 56px; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 62px;
}
.site-branding { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.site-branding a { color: var(--text); }
.site-branding a:hover { text-decoration: none; color: var(--accent-strong); }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.site-nav a { color: var(--text-muted); font-size: 0.95rem; }
.site-nav a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  padding: 8px 14px; cursor: pointer; font: inherit;
}

/* ==========================================================================
   Hero / sections
   ========================================================================== */
.hero { padding: 40px 0 24px; max-width: 760px; }
.hero__title { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.02em; }
.hero__sub { color: var(--text-muted); font-size: 1.15rem; }

.section { margin-top: 36px; }
.section__title { font-size: 1.4rem; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

.archive-title { font-size: 1.8rem; margin-bottom: 20px; }

/* ==========================================================================
   Cards / grid
   ========================================================================== */
.card-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--border-strong); }
.card__title { font-size: 1.05rem; margin: 0 0 6px; }
.card__title a { color: var(--text); }
.card__excerpt { color: var(--text-muted); font-size: 0.92rem; }

.review-card__thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.review-card__body { padding: 14px 16px 16px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block; text-align: center;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 650; font-size: 0.95rem; cursor: pointer;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }
.btn-affiliate { background: var(--accent); color: var(--accent-ink); }
.btn-affiliate:hover { background: var(--accent-strong); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border-color: var(--border-strong);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-faint); }

/* ==========================================================================
   Badges / stars / score
   ========================================================================== */
.badge {
  display: inline-block; padding: 3px 10px; margin: 0 6px 6px 0;
  border-radius: 999px; font-size: 0.78rem; font-weight: 600;
  background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--border-strong);
}
.badge--script { background: rgba(127, 185, 138, 0.12); color: var(--success); border-color: rgba(127, 185, 138, 0.35); }

.stars { letter-spacing: 2px; color: var(--accent); font-size: 1.05rem; }
.star--empty { color: var(--border-strong); }
.star--half { opacity: 0.55; }

.score-badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 0.85rem;
}

/* ==========================================================================
   Review layout
   ========================================================================== */
.review__header { margin-bottom: 24px; }
.review__title { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.review__meta { color: var(--text-muted); font-size: 0.9rem; }

.review__grid {
  display: grid; gap: 28px;
  grid-template-columns: minmax(0, 1fr) 340px;
}
.review__thumb img { border-radius: var(--radius); }

.score-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 20px;
  text-align: center;
}
.score-card__score { font-size: 2.6rem; font-weight: 750; line-height: 1; }
.score-card__score span { font-size: 1.1rem; color: var(--text-muted); font-weight: 600; }
.score-card__stars { margin: 8px 0 12px; }
.score-card__price { color: var(--text-muted); margin: 0 0 14px; }
.score-card .btn { width: 100%; }

.pros-cons {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px; margin-bottom: 20px;
}
.pros-cons__title { font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.pros-cons ul { margin: 0; }
.pros-cons li { margin-bottom: 6px; font-size: 0.92rem; }
.pros .pros-cons__title { color: var(--success); }
.cons .pros-cons__title { color: var(--danger); }

.verdict {
  margin-top: 32px; padding: 20px 22px;
  background: var(--bg-elevated); border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
}
.verdict__title { margin-bottom: 8px; }

.disclosure { margin-top: 28px; color: var(--text-faint); font-size: 0.82rem; }

/* ==========================================================================
   Age gate
   ========================================================================== */
.age-gate {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.age-gate__inner {
  max-width: 460px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 36px 32px;
}
.age-gate__brand { color: var(--accent); font-weight: 700; letter-spacing: 0.04em; margin-bottom: 4px; }
.age-gate__title { font-size: 1.4rem; }
.age-gate__text { color: var(--text-muted); }
.age-gate__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-elevated); border-top: 1px solid var(--border);
  padding: 32px 0; margin-top: 40px;
}
.footer-nav ul { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.footer-nav a { color: var(--text-muted); font-size: 0.9rem; }
.footer-disclosure { color: var(--text-faint); font-size: 0.8rem; max-width: 720px; }
.footer-legal { color: var(--text-faint); font-size: 0.8rem; margin: 0; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-elevated); border-bottom: 1px solid var(--border);
    padding: 12px 20px;
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 12px; }

  .review__grid { grid-template-columns: 1fr; }
  .review__sidebar { order: -1; }
}
