/* ─────────────────────────────────────────────────────────────────────────
   Simple Container docs — brand overrides
   Aligned with simple-container.com (hugo-saasify-theme tokens).
   See landing/.agents/design/2026-05-25/docs-refactor/07-theming-and-brand.md
   for the source-of-truth palette and rationale.
   ───────────────────────────────────────────────────────────────────────── */


/* 1. Brand color tokens
   ─────────────────────────────────────────────────────────────────────────
   The mkdocs preset "deep purple" / "cyan" gets us close; we tune the
   exact hex values to match landing's #a855f7 (purple) + #22d3ee (cyan). */

:root {
  --md-primary-fg-color:        #a855f7;
  --md-primary-fg-color--light: #c4b5fd;
  --md-primary-fg-color--dark:  #7e22ce;
  --md-accent-fg-color:         #22d3ee;
  --md-accent-fg-color--transparent: rgba(34, 211, 238, 0.1);
}


/* 2. Dark scheme (slate) — match landing's #07070f / #eeeeff / muted whites
   ───────────────────────────────────────────────────────────────────────── */

[data-md-color-scheme="slate"] {
  --md-default-bg-color:           #07070f;
  --md-default-bg-color--light:    #0a0a1f;
  --md-default-bg-color--lighter:  #12122b;
  --md-default-bg-color--lightest: #1e1b4b;

  --md-default-fg-color:           #eeeeff;
  --md-default-fg-color--light:    rgba(238, 238, 255, 0.75);
  --md-default-fg-color--lighter:  rgba(238, 238, 255, 0.45);
  --md-default-fg-color--lightest: rgba(238, 238, 255, 0.07);

  --md-typeset-a-color:            #93c5fd;       /* landing hero-gradient blue */

  --md-code-bg-color:              #0a0a1f;
  --md-code-fg-color:              #e5e7eb;
}


/* 3. Header — match landing's bg-slate-950/85 + backdrop blur
   ───────────────────────────────────────────────────────────────────────── */

[data-md-color-scheme="slate"] .md-header {
  background-color: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

[data-md-color-scheme="slate"] .md-tabs {
  background-color: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}


/* 4. H1 hero-gradient on the homepage only
   ─────────────────────────────────────────────────────────────────────────
   Landing's hero h1 uses linear-gradient(135deg, #fff, #c4b5fd 40%, #93c5fd)
   as a text fill. We restrict this to the very first H1 on the page so
   inner-page H1s stay readable. */

.md-typeset h1 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

body[data-md-color-scheme="slate"] .md-content article > h1:first-of-type {
  background: linear-gradient(135deg, #ffffff, #c4b5fd 40%, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}


/* 5. Code — inline + block
   ───────────────────────────────────────────────────────────────────────── */

.md-typeset code {
  font-feature-settings: "calt" off;          /* DM Mono ligatures off for code */
  border-radius: 4px;
  padding: 1px 6px;
}

[data-md-color-scheme="slate"] .md-typeset :not(pre) > code {
  background-color: rgba(34, 211, 238, 0.08);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.18);
}

[data-md-color-scheme="slate"] .md-typeset pre > code,
[data-md-color-scheme="slate"] .highlight pre {
  background-color: #0a0a1f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
}


/* 6. Tables — match landing's slate borders + faint purple header
   ───────────────────────────────────────────────────────────────────────── */

.md-typeset table:not([class]) {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 6px;
  overflow: hidden;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background-color: rgba(168, 85, 247, 0.08);
  color: #eeeeff;
  border-bottom: 1px solid rgba(168, 85, 247, 0.2);
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) tr {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}


/* 7. Admonitions — tighter corners + subtle accents
   ───────────────────────────────────────────────────────────────────────── */

.md-typeset .admonition,
.md-typeset details {
  border-radius: 6px;
  border-left-width: 3px;
  box-shadow: none;
}

[data-md-color-scheme="slate"] .md-typeset .admonition,
[data-md-color-scheme="slate"] .md-typeset details {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
}


/* 8. Navigation — active item picks up the brand purple
   ───────────────────────────────────────────────────────────────────────── */

.md-nav__link--active,
.md-nav__item--active > .md-nav__link {
  color: var(--md-primary-fg-color);
  font-weight: 600;
}


/* 9. Search box — subtle bordered card on dark, no harsh white
   ───────────────────────────────────────────────────────────────────────── */

[data-md-color-scheme="slate"] .md-search__input {
  background-color: rgba(255, 255, 255, 0.04);
  color: #eeeeff;
}

[data-md-color-scheme="slate"] .md-search__input::placeholder {
  color: rgba(238, 238, 255, 0.5);
}


/* 10. Footer — keep tight, dark, low-contrast
   ───────────────────────────────────────────────────────────────────────── */

[data-md-color-scheme="slate"] .md-footer {
  background-color: #07070f;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

[data-md-color-scheme="slate"] .md-footer-meta {
  background-color: transparent;
}


/* 11. Buttons (.md-button — used in mkdocs-material content)
   ───────────────────────────────────────────────────────────────────────── */

.md-typeset .md-button {
  border-radius: 6px;
  font-weight: 600;
}

.md-typeset .md-button--primary {
  background-color: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
  color: #ffffff;
}

.md-typeset .md-button--primary:hover,
.md-typeset .md-button--primary:focus {
  background-color: #9333ea;
  border-color: #9333ea;
}


/* 12. Body typography — Plus Jakarta Sans tuning
   ───────────────────────────────────────────────────────────────────────── */

.md-typeset {
  font-feature-settings: "kern", "liga", "calt";
  line-height: 1.65;
}

.md-typeset p {
  letter-spacing: -0.005em;
}
