/* ── Shared theme styles — CatalystOps / SpendOps ─────────────────────── */

html, body { background-color: #0F1117; overflow-x: hidden; }

/* Nav link underline animation */
.nav-link { position: relative; }
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1.5px; background: #F97316;
  transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, #fff 30%, #F97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge pill */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(249,115,22,0.1);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #F97316;
}

/* Nav button */
.btn-nav { background: #F97316; color: #fff; font-weight: 600; font-size: 0.875rem; border-radius: 8px; padding: 10px 20px; transition: background 0.2s, box-shadow 0.2s; white-space: nowrap; }
.btn-nav:hover { background: #EA580C; box-shadow: 0 0 28px rgba(249,115,22,0.35); }
@media (max-width: 640px) { .btn-nav { font-size: 0.75rem; padding: 6px 12px; } }

/* CTA / Hero buttons */
.btn-primary {
  position: relative; overflow: hidden;
  background: #F97316; color: #fff !important;
  font-weight: 600; border-radius: 8px;
  padding: 13px 28px; font-size: 1rem;
  transition: background 0.2s, box-shadow 0.2s;
  text-align: center; display: inline-block;
  text-decoration: none !important;
}
.btn-primary:hover { background: #EA580C; box-shadow: 0 0 24px rgba(249,115,22,0.35); }

.btn-secondary {
  background: transparent; color: #D1D5DB !important;
  border: 1px solid #1E2535; font-weight: 600; font-size: 1rem; border-radius: 8px;
  padding: 13px 28px; transition: border-color 0.2s, color 0.2s;
  display: inline-block; text-decoration: none !important; text-align: center;
}
.btn-secondary:hover { border-color: #F97316; color: #fff !important; text-decoration: none !important; }

/* Code window */
.code-window { background: #0D1117; border: 1px solid #1E2535; border-radius: 12px; overflow: hidden; }
.code-titlebar { background: #161B27; padding: 10px 16px; display: flex; align-items: center; gap: 6px; border-bottom: 1px solid #1E2535; }
.dot { width: 12px; height: 12px; border-radius: 50%; }

/* Callout */
.callout { background: #161B27; border: 1px solid #1E2535; border-left: 3px solid #F97316; border-radius: 8px; padding: 18px 22px; margin: 24px 0; }
.callout-label { font-size: 0.72rem; font-weight: 600; color: #F97316; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }

/* Prose (article body) */
.prose h2 {
  font-size: 1.4rem; font-weight: 700; color: #F3F4F6;
  margin-top: 3rem; margin-bottom: 1rem;
  padding-bottom: 0.6rem; border-bottom: 1px solid #1E2535;
}
.prose h3 { font-size: 1.05rem; font-weight: 600; color: #F97316; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose p { color: #9CA3AF; line-height: 1.8; margin-bottom: 1.25rem; }
.prose p strong { color: #F3F4F6; }
.prose a { color: #F97316; text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose code {
  font-family: 'JetBrains Mono', monospace; font-size: 0.82em;
  background: #161B27; border: 1px solid #1E2535;
  border-radius: 4px; padding: 2px 6px; color: #F97316;
}
.prose ul { list-style: none; padding: 0; margin-bottom: 1.25rem; }
.prose ul li { color: #9CA3AF; padding: 5px 0 5px 22px; position: relative; line-height: 1.75; }
.prose ul li::before { content: '→'; position: absolute; left: 0; color: #F97316; }
.prose ol { list-style: none; padding: 0; counter-reset: ol; margin-bottom: 1.25rem; }
.prose ol li { counter-increment: ol; color: #9CA3AF; padding: 7px 0 7px 38px; position: relative; line-height: 1.75; }
.prose ol li::before {
  content: counter(ol); position: absolute; left: 0; top: 8px;
  width: 22px; height: 22px;
  background: rgba(249,115,22,0.1); border: 1px solid rgba(249,115,22,0.3);
  border-radius: 50%; font-size: 0.72rem; font-weight: 700; color: #F97316;
  display: flex; align-items: center; justify-content: center;
}
.prose hr { border: none; border-top: 1px solid #1E2535; margin: 2.5rem 0; }

/* Prose table */
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.875rem; }
.prose th { background: #161B27; color: #F97316; font-weight: 600; padding: 10px 14px; text-align: left; border: 1px solid #1E2535; }
.prose td { padding: 9px 14px; border: 1px solid #1E2535; color: #9CA3AF; }
.prose tr:nth-child(even) td { background: rgba(22,27,39,0.6); }
