/* Wallbreak guide pages — shared stylesheet */
:root {
  --bg: #0A0B14;
  --bg-surface: #12141F;
  --bg-elevated: #1A1D2E;
  --accent: #7C5CFF;
  --accent-light: #A78BFA;
  --accent-cyan: #00D4FF;
  --text-primary: #F4F5FA;
  --text-secondary: #A1A4B5;
  --text-muted: #6B6F82;
  --border: rgba(255,255,255,0.08);
  --border-accent: rgba(124,92,255,0.25);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── Navigation ─────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,11,20,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 24px;
}

.nav-logo {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo:hover { color: var(--accent-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--text-secondary); }

.nav-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s;
  white-space: nowrap;
}

.nav-cta:hover { background: #6B4EE8 !important; }

/* ─── Layout ─────────────────────────────────────── */
.guide-wrap {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-secondary); }
.breadcrumb span { opacity: 0.4; }

/* ─── Article header ─────────────────────────────── */
.article-header { margin-bottom: 2.5rem; }

.article-header time {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
}

/* ─── Article body ───────────────────────────────── */
.article-body { padding-bottom: 3rem; }

h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
}

h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

ul, ol {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li { margin-bottom: 0.45rem; }

a {
  color: var(--accent-light);
  text-decoration: underline;
  text-decoration-color: rgba(167,139,250,0.35);
  text-underline-offset: 2px;
  transition: color 0.15s, text-decoration-color 0.15s;
}

a:hover {
  color: var(--accent);
  text-decoration-color: rgba(124,92,255,0.6);
}

strong { color: var(--text-primary); font-weight: 600; }

/* ─── Callout blocks ─────────────────────────────── */
.callout {
  background: rgba(124,92,255,0.06);
  border: 1px solid rgba(124,92,255,0.2);
  border-radius: 12px;
  padding: 1.1rem 1.4rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.callout p:last-child { margin-bottom: 0; }

.callout.warning {
  background: rgba(255,181,71,0.06);
  border-color: rgba(255,181,71,0.25);
}

.callout.info {
  background: rgba(0,212,255,0.05);
  border-color: rgba(0,212,255,0.2);
}

/* ─── Signal table ───────────────────────────────── */
.signal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.signal-table th {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-weight: 600;
  text-align: left;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.signal-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.signal-table tr:last-child td { border-bottom: 0; }

.signal-table tr:hover td { background: rgba(255,255,255,0.02); }

.badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.badge-high { background: rgba(16,217,160,0.12); color: #10D9A0; }
.badge-med  { background: rgba(255,181,71,0.12);  color: #FFB547; }
.badge-low  { background: rgba(107,111,130,0.12); color: #8A8DA0; }

/* ─── Steps list ─────────────────────────────────── */
.steps { list-style: none; padding: 0; counter-reset: step; margin: 1.5rem 0; }

.steps li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  background: rgba(124,92,255,0.12);
  color: var(--accent-light);
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 2px;
  border: 1px solid rgba(124,92,255,0.2);
}

/* ─── Product CTA box ────────────────────────────── */
.cta-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  margin: 2.75rem 0;
  text-align: center;
}

.cta-box h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.2rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.cta-box p {
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto 1rem;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.6rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.btn:hover { background: #6B4EE8; color: #fff; text-decoration: none; }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--accent-light);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 0.75rem;
  transition: border-color 0.15s, color 0.15s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  text-decoration: none;
}

/* ─── FAQ section ────────────────────────────────── */
.faq-section { margin-top: 3rem; }

.faq-section h2 { margin-top: 0; }

.faq-item {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-q {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.faq-a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0;
}

/* ─── Related guides ─────────────────────────────── */
.related-guides {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.related-guides h2 { margin-top: 0; font-size: 1.2rem; }

.guide-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  display: block;
}

.guide-card:hover {
  border-color: var(--border-accent);
  background: var(--bg-elevated);
  text-decoration: none;
}

.guide-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  display: block;
}

.guide-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Site footer ────────────────────────────────── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2.5rem 24px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 0.82rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--text-secondary); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 640px) {
  .guide-wrap { padding: 0 16px; }
  .cta-box { padding: 1.25rem 1.25rem; }
  .btn-outline { display: block; margin-left: 0; margin-top: 0.75rem; }
  .nav-links { display: none; }
  .signal-table { font-size: 0.82rem; }
  .signal-table th, .signal-table td { padding: 0.5rem 0.75rem; }
}
