/* ============================================
   Doable Docs — Minimal White Theme
   ============================================ */

/* ---------- Root color tokens ---------- */
:root {
  --md-primary-fg-color: #1a1a1a;
  --md-primary-bg-color: #ffffff;
  --md-accent-fg-color: #F97316;
  --md-typeset-a-color: #F97316;
}

[data-md-color-scheme="slate"] {
  --md-accent-fg-color: #F97316;
  --md-typeset-a-color: #F97316;
}

/* ---------- Header ---------- */
.md-header {
  background: #ffffff;
  color: #1a1a1a;
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}

[data-md-color-scheme="slate"] .md-header {
  background: #1a1a1a;
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.08);
}

.md-header__title {
  color: #1a1a1a;
}

[data-md-color-scheme="slate"] .md-header__title {
  color: #ffffff;
}

/* ---------- Hero section on homepage ---------- */
.md-typeset .hero-banner {
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 3rem 2rem;
  margin: 1rem 0 2rem;
  color: #1a1a1a;
  text-align: center;
}

[data-md-color-scheme="slate"] .md-typeset .hero-banner {
  background: #262626;
  border-color: #404040;
  color: #fafafa;
}

.md-typeset .hero-banner h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #1a1a1a;
}

[data-md-color-scheme="slate"] .md-typeset .hero-banner h1 {
  color: #fafafa;
}

.md-typeset .hero-banner .hero-tagline {
  font-size: 1.15rem;
  opacity: 0.7;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

.md-typeset .hero-banner .hero-cta {
  display: inline-flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.md-typeset .hero-banner .hero-cta a {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.md-typeset .hero-banner .hero-cta a.primary {
  background: #F97316;
  color: white;
}

.md-typeset .hero-banner .hero-cta a.primary:hover {
  opacity: 0.9;
}

.md-typeset .hero-banner .hero-cta a.secondary {
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #d4d4d4;
}

[data-md-color-scheme="slate"] .md-typeset .hero-banner .hero-cta a.secondary {
  color: #fafafa;
  border-color: #525252;
}

.md-typeset .hero-banner .hero-cta a.secondary:hover {
  border-color: #F97316;
  color: #F97316;
}

/* ---------- Feature cards ---------- */
.md-typeset .feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.md-typeset .feature-card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 0.15s ease;
}

[data-md-color-scheme="slate"] .md-typeset .feature-card {
  background: #262626;
  border-color: #404040;
}

.md-typeset .feature-card:hover {
  border-color: #F97316;
}

.md-typeset .feature-card .feature-icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
}

.md-typeset .feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
}

.md-typeset .feature-card p {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* ---------- Demo container ---------- */
.md-typeset .demo-container {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin: 2rem 0;
  border: 1px solid #e5e5e5;
}

[data-md-color-scheme="slate"] .md-typeset .demo-container {
  border-color: #404040;
}

.md-typeset .demo-container .demo-header {
  background: #1e1e2e;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.md-typeset .demo-container .demo-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.md-typeset .demo-container .demo-header .dot.red { background: #ff5f57; }
.md-typeset .demo-container .demo-header .dot.yellow { background: #febc2e; }
.md-typeset .demo-container .demo-header .dot.green { background: #28c840; }

.md-typeset .demo-container .demo-header .demo-title {
  color: #a0a0b0;
  font-size: 0.8rem;
  margin-left: 0.5rem;
  font-family: var(--md-code-font-family);
}

.md-typeset .demo-container .demo-body {
  background: #1e1e2e;
  padding: 1.5rem;
  position: relative;
  min-height: 200px;
}

/* ---------- Animated SVG showcase ---------- */
.md-typeset .animated-showcase {
  border-radius: 8px;
  overflow: hidden;
  margin: 2rem 0;
  border: 1px solid #e5e5e5;
}

[data-md-color-scheme="slate"] .md-typeset .animated-showcase {
  border-color: #404040;
}

.md-typeset .animated-showcase img,
.md-typeset .animated-showcase svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Step indicators ---------- */
.md-typeset .step-flow {
  display: flex;
  gap: 0;
  margin: 2rem 0;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.md-typeset .step-flow .step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
  padding: 1rem 0.5rem;
}

.md-typeset .step-flow .step::after {
  content: '→';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem;
  color: #a3a3a3;
  font-weight: 400;
}

.md-typeset .step-flow .step:last-child::after {
  content: '';
}

.md-typeset .step-flow .step .step-number {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #F97316;
  color: white;
  font-weight: 600;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.md-typeset .step-flow .step .step-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
}

/* ---------- Comparison table styling ---------- */
.md-typeset .comparison-table {
  border-radius: 6px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.md-typeset .comparison-table table {
  margin: 0;
}

/* ---------- Badge styles ---------- */
.md-typeset .badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.md-typeset .badge.new { background: #fff7ed; color: #c2410c; }
.md-typeset .badge.pro { background: #f5f5f5; color: #525252; }
.md-typeset .badge.beta { background: #fef3c7; color: #92400e; }

[data-md-color-scheme="slate"] .badge.new { background: #431407; color: #fdba74; }
[data-md-color-scheme="slate"] .badge.pro { background: #262626; color: #a3a3a3; }
[data-md-color-scheme="slate"] .badge.beta { background: #451a03; color: #fcd34d; }

/* ---------- Smooth scroll ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- Code blocks ---------- */
.md-typeset pre {
  border-radius: 6px;
}

/* ---------- Announcement bar ---------- */
.md-banner {
  background: #1a1a1a;
  color: #fafafa;
  font-weight: 500;
  font-size: 0.85rem;
}

.md-banner a,
.md-banner a:hover {
  color: #F97316;
}

[data-md-color-scheme="slate"] .md-banner {
  background: #262626;
}

/* ---------- Footer ---------- */
.md-footer {
  border-top: 1px solid #e5e5e5;
}

[data-md-color-scheme="slate"] .md-footer {
  border-top-color: #404040;
}

/* ---------- Legal footer (inside dark footer bar) ---------- */
.md-copyright .doable-legal-links {
  display: inline-flex;
  gap: 0.5rem;
  font-size: 0.75rem;
  flex-wrap: wrap;
}

.md-copyright .doable-legal-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.md-copyright .doable-legal-links a:hover {
  color: #F97316;
  text-decoration: underline;
}

.md-copyright .doable-legal-links a + a::before {
  content: "·";
  margin-right: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ---------- Sidebar nav refinements ---------- */
.md-nav__link:hover {
  color: #F97316;
}

.md-nav__item--active > .md-nav__link {
  color: #F97316;
  font-weight: 600;
}

/* Section headings in sidebar (everything except HOME which is first child) */
.md-nav--primary > .md-nav__list > .md-nav__item:not(:first-child) > .md-nav__link,
.md-nav--primary > .md-nav__list > .md-nav__item > nav > .md-nav__title {
  font-weight: 700;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin-top: 0.75rem;
}

[data-md-color-scheme="slate"] .md-nav--primary > .md-nav__list > .md-nav__item:not(:first-child) > .md-nav__link,
[data-md-color-scheme="slate"] .md-nav--primary > .md-nav__list > .md-nav__item > nav > .md-nav__title {
  color: #e5e5e5;
}

/* ---------- Responsive adjustments ---------- */
@media (max-width: 768px) {
  .md-typeset .hero-banner h1 { font-size: 1.8rem; }
  .md-typeset .hero-banner .hero-tagline { font-size: 1rem; }
  .md-typeset .feature-grid { grid-template-columns: 1fr; }
  .md-typeset .step-flow { flex-direction: column; }
  .md-typeset .step-flow .step::after { content: '↓'; right: auto; bottom: -4px; top: auto; left: 50%; transform: translateX(-50%); }
}
