/* Mokaru Trading — Global Stylesheet */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: #0F172A;
  color: #e2e8f0;
  line-height: 1.7;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, #10B981 0%, #F59E0B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-gold {
  background: linear-gradient(135deg, #F59E0B 0%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Glass cards ── */
.glass-card {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
}

/* ── Analogy / callout boxes ── */
.callout {
  padding: 1.25rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.05);
  font-size: 0.9375rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.analogy {
  padding: 1.25rem;
  border-radius: 0.875rem;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: rgba(245, 158, 11, 0.06);
  font-size: 0.9375rem;
  color: #d4af6e;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* ── Step progress bar ── */
.step-bar {
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
}
.step-item {
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  gap: 0.5rem;
  flex: 1;
}
.step-item:last-child { flex: 0; }
.step-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700;
  flex-shrink: 0;
  border: 2px solid #334155;
  color: #64748b;
  background: #0F172A;
  transition: all 0.3s;
}
.step-dot.active {
  background: #10B981;
  border-color: #10B981;
  color: #0F172A;
  box-shadow: 0 0 14px rgba(16,185,129,.4);
}
.step-dot.done {
  background: rgba(16,185,129,.15);
  border-color: rgba(16,185,129,.4);
  color: #10B981;
}
.step-line {
  flex: 1;
  height: 2px;
  background: #1e293b;
  margin: 0 0.25rem;
}
.step-line.done { background: rgba(16,185,129,.3); }

/* ── Custom range slider ── */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 9999px;
  background: #1e293b;
  cursor: pointer;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #0F172A;
  box-shadow: 0 0 10px rgba(16,185,129,.4);
  cursor: pointer;
}
input[type="range"].gold-range::-webkit-slider-thumb { background: #F59E0B; box-shadow: 0 0 10px rgba(245,158,11,.4); }

/* ── Bar chart bars ── */
.bar-fill {
  border-radius: 4px 4px 0 0;
  transition: height 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(16,185,129,.25); }
  50%       { box-shadow: 0 0 36px rgba(16,185,129,.5); }
}
.animate-fade-up { animation: fadeUp 0.6s ease forwards; }
.anim-delay-1 { animation-delay: 0.1s; opacity: 0; }
.anim-delay-2 { animation-delay: 0.2s; opacity: 0; }
.anim-delay-3 { animation-delay: 0.3s; opacity: 0; }
.anim-delay-4 { animation-delay: 0.4s; opacity: 0; }
.anim-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* ── Module reading ── */
.prose-body p { margin-bottom: 1.1rem; color: #cbd5e1; font-size: 1rem; line-height: 1.8; }
.prose-body h2 { color: #fff; font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.prose-body h3 { color: #e2e8f0; font-size: 1.15rem; margin-top: 1.75rem; margin-bottom: 0.75rem; }
.prose-body strong { color: #fff; }
.prose-body ul, .prose-body ol { padding-left: 1.5rem; margin-bottom: 1rem; color: #cbd5e1; }
.prose-body li { margin-bottom: 0.5rem; line-height: 1.7; }

/* ── Glossary ── */
.glossary-term { border-bottom: 1px solid rgba(255,255,255,.06); padding: 0.75rem 0; }
.glossary-term:last-child { border-bottom: none; }

/* ── Slide-Card Presentation Framework ── */
.slide-card {
  display: none;
  opacity: 0;
  transform: translateY(12px) scale(0.99);
  transition: opacity 0.35s ease, transform 0.35s ease;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .slide-card {
    padding: 2.5rem;
  }
}

.slide-card.active-slide {
  display: block;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.slide-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  gap: 1rem;
}

.slide-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.slide-nav-btn:hover:not(:disabled) {
  background: #10B981;
  color: #0F172A;
  border-color: #10B981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.slide-dot {
  cursor: pointer;
}

/* Sidebar layout stability */
aside .sticky {
  position: sticky;
  top: 6rem;
  max-height: calc(100vh - 7rem);
  overflow-y: auto;
}

