/* Wanderburg Builds & Strategy Guide - Shared Styles */
:root {
  --bg-main: #0c1218;
  --bg-surface: #131c26;
  --bg-card: #182330;
  --bg-card-hover: #1f2c3d;
  --border-subtle: #253342;
  --border-accent: #d6b16a;
  --border-hover: #e0b66c;
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #d6b16a;
  --text-accent-bright: #f3cf84;
  --text-orange: #d16f3b;
  
  --badge-bg: rgba(214, 177, 106, 0.12);
  --badge-border: rgba(214, 177, 106, 0.35);
  
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --container-max: 1160px;
  --header-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at 50% 0%, #172433 0%, var(--bg-main) 70%);
  background-attachment: fixed;
  overflow-x: hidden;
}

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease;
}

a:hover {
  color: var(--text-accent-bright);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--text-accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--text-accent);
  color: var(--bg-main);
  padding: 0.5rem 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 1rem;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background-color: rgba(12, 18, 24, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}

.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-desktop a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-accent);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(214, 177, 106, 0.12);
  border: 1px solid var(--border-accent);
  color: var(--text-accent-bright);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--border-accent);
  color: var(--bg-main);
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
}

@media (max-width: 960px) {
  .nav-desktop, .header-cta {
    display: none;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-drawer {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.25rem;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    z-index: 99;
  }
  .mobile-drawer.open {
    transform: translateY(0);
  }
  .mobile-drawer nav {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }
  .mobile-drawer a {
    color: var(--text-primary);
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .mobile-cta {
    display: block;
    margin-top: 1rem;
    text-align: center;
    background: var(--border-accent);
    color: var(--bg-main) !important;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.75rem !important;
  }
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

main {
  flex: 1;
}

section {
  padding: 3.5rem 0;
}

.section-header {
  margin-bottom: 2rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.section-title span {
  color: var(--text-accent);
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 720px;
  margin-top: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #d6b16a 0%, #ba8a38 100%);
  color: #0c1218;
  border: 1px solid #e0b66c;
  box-shadow: 0 4px 12px rgba(214, 177, 106, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e4c17b 0%, #c99843 100%);
  color: #000;
  box-shadow: 0 6px 16px rgba(214, 177, 106, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  color: var(--text-accent-bright);
}

/* Hero Section */
.hero {
  padding: 3.5rem 0 2.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.badge-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-verified {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #4ade80;
}

.badge-unofficial {
  background: rgba(214, 177, 106, 0.12);
  border: 1px solid var(--badge-border);
  color: var(--text-accent);
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--text-accent);
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-disclaimer {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-left: 2px solid var(--border-accent);
  padding-left: 0.75rem;
}

/* Hero Status Card (Release Ledger) */
.status-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-ledger-banner {
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.hero-ledger-banner img {
  width: 100%;
  height: auto;
  display: block;
}

figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

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

figcaption {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 0.6rem 0.85rem;
  background: rgba(12, 18, 24, 0.85);
  border-top: 1px solid var(--border-subtle);
}

.card-media {
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
  border: 1px solid var(--border-subtle);
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.guide-card:hover .card-media img {
  transform: scale(1.03);
}

.media-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0;
}

@media (max-width: 800px) {
  .media-feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.status-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.status-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
}

.status-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.status-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.status-label {
  color: var(--text-secondary);
}

.status-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.status-val.accent {
  color: var(--text-accent);
}

/* Strategic Guidance Cards (3-Column Grid) */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.guide-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-card);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.guide-card-icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(214, 177, 106, 0.1);
  border-radius: var(--radius-sm);
  color: var(--text-accent);
}

.guide-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.guide-card-desc {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  font-size: 0.85rem;
}

.guide-card-action {
  font-weight: 600;
  color: var(--text-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.guide-card-action:hover {
  text-decoration: underline;
}

/* Core Loop Step List */
.loop-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.loop-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  position: relative;
}

.step-number {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-accent);
  background: rgba(214, 177, 106, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.step-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Evidence Boundary Callout */
.boundary-box {
  background: rgba(19, 28, 38, 0.85);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--text-accent);
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin: 2rem 0;
}

.boundary-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-accent);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.boundary-box p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}

.boundary-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .boundary-columns {
    grid-template-columns: 1fr;
  }
}

.boundary-col h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.boundary-col.yes h4 { color: #4ade80; }
.boundary-col.no h4 { color: #f87171; }

.boundary-col ul {
  list-style: none;
  padding: 0;
}

.boundary-col li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
  position: relative;
  padding-left: 1.25rem;
}

.boundary-col.yes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4ade80;
  font-weight: bold;
}

.boundary-col.no li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #f87171;
  font-weight: bold;
}

/* Table Styles */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

th, td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
}

td {
  background: var(--bg-card);
  color: var(--text-secondary);
}

tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

details {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  transition: border-color 0.2s ease;
}

details:hover {
  border-color: var(--border-accent);
}

details[open] {
  border-color: var(--border-accent);
}

summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-primary);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--text-accent);
  transition: transform 0.2s ease;
}

details[open] summary::after {
  content: "−";
}

details p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Footer */
.site-footer {
  background: #080c10;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 840px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-top: 0.75rem;
  line-height: 1.5;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.footer-col a:hover {
  color: var(--text-accent);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-legal {
  max-width: 600px;
  line-height: 1.5;
}

/* Trust Pages Specific */
.trust-header {
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.prose {
  max-width: 800px;
  line-height: 1.7;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text-accent);
}

.prose p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.prose ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.prose li {
  margin-bottom: 0.5rem;
}
