/* Spynra Launch — Help Center shared styles */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #08111f; --surface: #0d1b2e; --surface2: #0f1e33;
  --border: #162d48; --text: #e2ecf8; --muted: #5e7c9a;
  --accent: #38bdf8; --accent-glow: rgba(56,189,248,0.1);
  --accent-hover: #7dd3fc; --gradient: #818cf8; --code-bg: #060f1c;
}
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4 { font-family: 'Space Grotesk', sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
code { font-family: 'Fira Code', 'Consolas', monospace; font-size: 0.875em; background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.15); border-radius: 4px; padding: 1px 5px; color: var(--accent-hover); }

/* ── TOP NAV ── */
.top-nav { height: 60px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid var(--border); background: rgba(8,17,31,0.96); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 100; }
.nav-left { display: flex; align-items: center; gap: 16px; }
.nav-logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 17px; text-decoration: none; color: var(--text); display: flex; align-items: center; gap: 7px; }
.nav-logo span { color: var(--accent); }
.nav-logo img { width: 24px; height: 24px; }
.nav-divider { width: 1px; height: 16px; background: var(--border); }
.nav-breadcrumb { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.nav-breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.15s; }
.nav-breadcrumb a:hover { color: var(--text); }
.nav-breadcrumb-sep { color: var(--border); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.btn-ghost { padding: 6px 14px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: none; transition: all 0.15s; font-family: 'DM Sans', sans-serif; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-primary { padding: 6px 14px; background: var(--accent); border-radius: 6px; font-size: 13px; font-weight: 600; color: #0a1628; text-decoration: none; transition: background 0.15s; font-family: 'DM Sans', sans-serif; }
.btn-primary:hover { background: var(--accent-hover); }
.mobile-menu-btn { display: none; background: none; border: 1px solid var(--border); border-radius: 6px; padding: 6px 10px; color: var(--muted); cursor: pointer; font-size: 14px; font-family: 'DM Sans', sans-serif; }

/* ── LAYOUT ── */
.help-layout { display: grid; grid-template-columns: 260px 1fr; max-width: 1200px; margin: 0 auto; padding: 0 24px; min-height: calc(100vh - 60px); }

/* ── SIDEBAR ── */
#helpSidebar { position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; padding: 28px 20px 28px 0; border-right: 1px solid var(--border); scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
#helpSidebar::-webkit-scrollbar { width: 4px; }
#helpSidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
.sidebar-search-wrap { position: relative; margin-bottom: 20px; }
.sidebar-search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; }
#helpSearch { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px 8px 32px; font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text); outline: none; transition: border-color 0.2s; }
#helpSearch:focus { border-color: var(--accent); }
#helpSearch::placeholder { color: var(--muted); }
.search-results { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-bottom: 4px; }
.search-result-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; text-decoration: none; color: var(--text); font-size: 13px; border-bottom: 1px solid var(--border); transition: background 0.1s; }
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--accent-glow); }
.search-result-title { font-weight: 500; }
.search-result-cat { font-size: 11px; color: var(--muted); }
.search-empty { padding: 12px; text-align: center; color: var(--muted); font-size: 13px; }
.sidebar-section { margin-bottom: 4px; }
.sidebar-cat-label { font-family: 'Space Grotesk', sans-serif; font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 16px 12px 6px; }
.sidebar-links { list-style: none; }
.sidebar-link { display: block; padding: 7px 12px; border-radius: 7px; font-size: 13.5px; color: var(--muted); text-decoration: none; transition: all 0.15s; line-height: 1.4; }
.sidebar-link:hover { color: var(--text); background: rgba(56,189,248,0.06); }
.sidebar-link.active { color: var(--accent); background: rgba(56,189,248,0.1); font-weight: 500; }

/* ── ARTICLE ── */
.help-main { padding: 40px 48px; min-width: 0; max-width: 760px; }
.article-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
.article-category { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); background: var(--accent-glow); border: 1px solid rgba(56,189,248,0.2); padding: 3px 10px; border-radius: 4px; }
.article-title { font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -0.8px; line-height: 1.1; margin-bottom: 14px; }
.article-subtitle { font-size: 16px; color: var(--muted); line-height: 1.6; margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }

/* Article body */
.article-body { line-height: 1.75; font-size: 15px; }
.article-body h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.3px; margin: 40px 0 14px; color: var(--text); }
.article-body h3 { font-size: 16px; font-weight: 600; margin: 28px 0 10px; color: var(--text); }
.article-body p { margin-bottom: 16px; color: #c8dae8; }
.article-body ul, .article-body ol { margin: 12px 0 20px 20px; }
.article-body li { margin-bottom: 8px; color: #c8dae8; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

/* Steps */
.step-list { list-style: none; margin: 0 0 28px 0; }
.step { display: flex; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; transition: border-color 0.2s; }
.step:hover { border-color: rgba(56,189,248,0.2); }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-glow); border: 1px solid rgba(56,189,248,0.3); color: var(--accent); font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-content { flex: 1; min-width: 0; }
.step-title { font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: 15px; margin-bottom: 6px; color: var(--text); }
.step-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.step-desc strong { color: var(--text); }
.step-desc a { color: var(--accent); }

/* Code */
.code-block { background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; margin: 16px 0; font-family: 'Fira Code', 'Consolas', 'Monaco', monospace; font-size: 13px; color: #a8d8f0; overflow-x: auto; line-height: 1.6; white-space: pre; }
.code-label { font-family: 'Space Grotesk', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* Callouts */
.callout { border-radius: 8px; padding: 16px 18px; margin: 20px 0; display: flex; gap: 12px; font-size: 14px; line-height: 1.6; }
.callout-info { background: rgba(56,189,248,0.07); border: 1px solid rgba(56,189,248,0.2); }
.callout-success { background: rgba(52,211,153,0.07); border: 1px solid rgba(52,211,153,0.2); }
.callout-warning { background: rgba(251,191,36,0.07); border: 1px solid rgba(251,191,36,0.2); }
.callout-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.callout-text { color: #c8dae8; }
.callout-text strong { color: var(--text); }
.callout-text a { color: var(--accent); }

/* Screenshot placeholder */
.screenshot-placeholder { background: var(--surface); border: 1px dashed var(--border); border-radius: 10px; padding: 32px 24px; text-align: center; margin: 20px 0; }
.screenshot-placeholder-icon { font-size: 28px; margin-bottom: 10px; }
.screenshot-placeholder-label { font-size: 13px; color: var(--muted); font-style: italic; }
.screenshot-placeholder-tag { font-size: 11px; color: rgba(56,189,248,0.6); background: rgba(56,189,248,0.08); border: 1px solid rgba(56,189,248,0.15); padding: 3px 8px; border-radius: 4px; display: inline-block; margin-top: 6px; }

/* Feature table */
.feature-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.feature-table th { font-family: 'Space Grotesk', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.feature-table td { padding: 12px 14px; border-bottom: 1px solid rgba(22,45,72,0.6); color: #c8dae8; }
.feature-table tr:last-child td { border-bottom: none; }
.feature-table tr:hover td { background: rgba(56,189,248,0.03); }
.feature-table .check { color: #34d399; }
.feature-table .dash { color: var(--border); }
.feature-table .plan-col { font-family: 'Space Grotesk', sans-serif; font-weight: 600; color: var(--text); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin: 20px 0; }

/* Article nav */
.article-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.article-nav-btn { flex: 1; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; text-decoration: none; transition: all 0.2s; max-width: 220px; }
.article-nav-btn:hover { border-color: rgba(56,189,248,0.3); }
.article-nav-btn-label { font-size: 11px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 5px; }
.article-nav-btn-title { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; color: var(--text); }
.article-nav-btn.next { margin-left: auto; text-align: right; }

/* Mobile overlay */
#sidebarOverlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 49; }
#sidebarOverlay.visible { display: block; }

@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; padding: 0 16px; }
  #helpSidebar { position: fixed; left: -280px; top: 60px; width: 260px; height: calc(100vh - 60px); background: var(--bg); border-right: 1px solid var(--border); padding: 24px 20px; z-index: 50; transition: left 0.3s ease; overflow-y: auto; }
  #helpSidebar.open { left: 0; }
  .help-main { padding: 28px 0; }
  .mobile-menu-btn { display: block; }
  .nav-divider { display: none; }
  .article-nav { flex-direction: column; }
  .article-nav-btn { max-width: 100%; }
  .article-nav-btn.next { text-align: left; }
}
