/* ── Walkthrough Shared Styles ─────────────────────────────────────────────── */
:root {
  --bg:           #0a0a0f;
  --bg-secondary: #111118;
  --bg-card:      #13131c;
  --bg-code:      #0d0d14;
  --border:       rgba(255,255,255,0.07);
  --accent:       #818cf8;
  --accent-glow:  rgba(129,140,248,0.15);
  --green:        #34d399;
  --orange:       #fb923c;
  --text:         #e2e8f0;
  --text-muted:   #94a3b8;
  --step-num:     rgba(129,140,248,0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1rem;
}

/* ── Nav ── */
.wt-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
.wt-nav .container {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: space-between;
}
.wt-nav-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}
.wt-nav-brand span { color: var(--accent); }
.wt-nav-links { display: flex; gap: 1.5rem; }
.wt-nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.wt-nav-links a:hover { color: var(--text); }

/* ── Container ── */
.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Hero ── */
.wt-hero {
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.wt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.wt-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.wt-breadcrumb a:hover { color: var(--accent); }
.wt-breadcrumb .sep { opacity: 0.4; }
.wt-category {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(129,140,248,0.25);
  border-radius: 20px;
  padding: 0.25rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.wt-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}
.wt-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 1.5rem;
}
.wt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.83rem;
  color: var(--text-muted);
}
.wt-meta-item { display: flex; align-items: center; gap: 0.4rem; }
.wt-meta-item i { color: var(--accent); }

/* ── TOC ── */
.wt-toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2.5rem 0;
}
.wt-toc h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.wt-toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
}
.wt-toc ol li {
  counter-increment: toc;
  padding: 0.25rem 0;
  border-bottom: 1px solid var(--border);
}
.wt-toc ol li:last-child { border-bottom: none; }
.wt-toc ol li::before {
  content: counter(toc) ".";
  color: var(--accent);
  font-weight: 700;
  font-size: 0.82rem;
  margin-right: 0.6rem;
}
.wt-toc a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.wt-toc a:hover { color: var(--accent); }

/* ── Main Content ── */
.wt-body { padding: 3rem 0 5rem; }
.wt-section { margin-bottom: 4rem; }
.wt-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.wt-section-title .icon {
  width: 36px;
  height: 36px;
  background: var(--accent-glow);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.wt-section-divider {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
  margin: 0.6rem 0 1.2rem;
}
.wt-section p { color: var(--text-muted); margin-bottom: 1rem; line-height: 1.8; }
.wt-section p strong { color: var(--text); }

/* ── Steps ── */
.wt-steps { list-style: none; padding: 0; counter-reset: steps; }
.wt-step {
  counter-increment: steps;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.wt-step-num {
  width: 52px;
  height: 52px;
  background: var(--step-num);
  border: 1px solid rgba(129,140,248,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.wt-step-content h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.wt-step-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.wt-step-content p:last-child { margin-bottom: 0; }

/* ── Code blocks ── */
.wt-code {
  background: var(--bg-code);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-family: 'Fira Code', 'JetBrains Mono', 'Cascadia Code', monospace;
  font-size: 0.82rem;
  color: #a8d8a8;
  overflow-x: auto;
  white-space: pre;
  margin: 0.75rem 0 1rem;
  line-height: 1.6;
}
.wt-code .comment { color: #636e88; }
.wt-code .key { color: #818cf8; }
.wt-code .val { color: #f59e0b; }

/* ── Info / Warning boxes ── */
.wt-callout {
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border: 1px solid;
  font-size: 0.9rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}
.wt-callout i { margin-top: 2px; flex-shrink: 0; }
.wt-callout-info {
  background: rgba(129,140,248,0.08);
  border-color: rgba(129,140,248,0.25);
  color: #a5b4fc;
}
.wt-callout-info i { color: var(--accent); }
.wt-callout-warn {
  background: rgba(251,146,60,0.08);
  border-color: rgba(251,146,60,0.25);
  color: #fcd34d;
}
.wt-callout-warn i { color: var(--orange); }
.wt-callout-success {
  background: rgba(52,211,153,0.08);
  border-color: rgba(52,211,153,0.25);
  color: #6ee7b7;
}
.wt-callout-success i { color: var(--green); }

/* ── Images ── */
.wt-img-wrap {
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.wt-img-wrap img {
  width: 100%;
  display: block;
  max-height: 500px;
  object-fit: contain;
  background: #0d0d14;
}
.wt-img-caption {
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-align: center;
  font-style: italic;
}

/* ── Tags ── */
.wt-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0 0; }
.wt-tag {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Reference links ── */
.wt-refs { padding-left: 0; list-style: none; }
.wt-refs li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.wt-refs li:last-child { border-bottom: none; }
.wt-refs a { color: var(--accent); text-decoration: none; }
.wt-refs a:hover { text-decoration: underline; }
.wt-refs .ref-source { font-size: 0.78rem; color: var(--text-muted); display: block; }

/* ── Sidebar layout ── */
.wt-layout { display: grid; grid-template-columns: 1fr 280px; gap: 3rem; }
.wt-sidebar { padding-top: 0; }
.wt-sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.wt-sidebar-card h5 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.wt-sidebar-card ul { list-style: none; }
.wt-sidebar-card ul li {
  padding: 0.3rem 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.wt-sidebar-card ul li:last-child { border-bottom: none; }
.wt-sidebar-card ul li i { color: var(--accent); font-size: 0.78rem; }

/* ── Footer ── */
.wt-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.wt-footer a { color: var(--accent); text-decoration: none; }

/* ── Nav pills for walkthrough index ── */
.wt-nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-glow);
  border: 1px solid rgba(129,140,248,0.3);
  color: var(--accent);
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.wt-nav-pill:hover {
  background: rgba(129,140,248,0.2);
  border-color: var(--accent);
}

@media (max-width: 768px) {
  .wt-layout { grid-template-columns: 1fr; }
  .wt-sidebar { display: none; }
  .wt-step { grid-template-columns: 40px 1fr; }
}
