/* Betanora Custom CSS — Ignite Theme */

:root {
  --crimson: #DC143C;
  --crimson-dark: #a50e2d;
  --neon: #00e5ff;
  --neon-glow: rgba(0,229,255,0.35);
  --midnight: #08080f;
  --surface: #111120;
  --surface2: #1a1a2e;
  --text-primary: #f0f0f5;
  --text-muted: #9999bb;
  --border: rgba(0,229,255,0.18);
}

* { box-sizing: border-box; }

body {
  background-color: var(--midnight);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.7;
  margin: 0;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--midnight); }
::-webkit-scrollbar-thumb { background: var(--crimson); border-radius: 3px; }

/* ---- Marquee ---- */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track { animation: marquee 28s linear infinite; }
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }

/* ---- Parallax hero ---- */
@keyframes parallax-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-14px); }
}
.parallax-float { animation: parallax-float 6s ease-in-out infinite; }

/* ---- Neon pulse ---- */
@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 8px var(--neon-glow), 0 0 20px var(--neon-glow); }
  50% { box-shadow: 0 0 18px var(--neon-glow), 0 0 40px var(--neon-glow); }
}
.neon-pulse { animation: neon-pulse 2.4s ease-in-out infinite; }

/* ---- Crimson glow ---- */
@keyframes crimson-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(220,20,60,0.4); }
  50% { box-shadow: 0 0 28px rgba(220,20,60,0.75); }
}
.crimson-pulse { animation: crimson-pulse 2.2s ease-in-out infinite; }

/* ---- Prose (Markdown pages) ---- */
.prose { color: var(--text-primary); max-width: 100%; }
.prose h2 {
  color: var(--neon);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  border-left: 4px solid var(--crimson);
  padding-left: 0.75rem;
  line-height: 1.3;
}
.prose h3 {
  color: #e0e0f5;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.prose p { margin-bottom: 1.1rem; color: var(--text-primary); }
.prose a { color: var(--neon); text-decoration: underline; }
.prose a:hover { color: #fff; }
.prose ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; color: var(--text-primary); }
.prose blockquote {
  border-left: 4px solid var(--crimson);
  padding: 0.75rem 1.25rem;
  background: var(--surface2);
  color: #ccd;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}
.prose img { max-width: 100%; height: auto; border-radius: 10px; margin: 1.5rem 0; border: 1px solid var(--border); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
.prose table thead { background: var(--crimson); }
.prose table thead th { color: #fff; padding: 0.65rem 1rem; text-align: left; white-space: nowrap; }
.prose table tbody tr:nth-child(even) { background: var(--surface2); }
.prose table tbody tr:nth-child(odd) { background: var(--surface); }
.prose table td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-primary); }
.prose-wrap { overflow-x: auto; }

/* ---- Table scroll wrapper ---- */
.table-scroll { overflow-x: auto; width: 100%; }

/* ---- Utility classes ---- */
.btn-crimson {
  display: inline-block;
  background: var(--crimson);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}
.btn-crimson:hover { background: var(--crimson-dark); box-shadow: 0 0 18px rgba(220,20,60,0.5); }

.btn-neon {
  display: inline-block;
  background: transparent;
  color: var(--neon);
  font-weight: 700;
  padding: 0.7rem 2rem;
  border-radius: 6px;
  border: 2px solid var(--neon);
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  font-size: 1rem;
}
.btn-neon:hover { background: var(--neon); color: var(--midnight); }

.card-surface {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

/* ---- Word cloud ---- */
.word-cloud span {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  margin: 0.25rem;
  border-radius: 999px;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: background 0.2s, color 0.2s;
}
.word-cloud span:hover { background: var(--crimson); color: #fff; }

/* ---- Badge ---- */
.bonus-badge {
  background: linear-gradient(135deg, #1a0010 0%, #2d0018 60%, #0a0a1f 100%);
  border: 2px solid var(--crimson);
  border-radius: 14px;
  padding: 1.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.bonus-badge::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(220,20,60,0.08) 0%, transparent 65%);
  pointer-events: none;
}

/* ---- Step badge ---- */
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--crimson);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(220,20,60,0.45);
}

/* ---- Hero overlay pattern ---- */
.hero-pattern {
  background-image:
    radial-gradient(circle at 20% 50%, rgba(220,20,60,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0,229,255,0.07) 0%, transparent 40%);
}

/* ---- Nav ---- */
#mobile-menu { background: #0e0e1c; }

@media (max-width: 640px) {
  .prose h2 { font-size: 1.3rem; }
  .bonus-badge { padding: 1rem 1rem; }
}
