/* ============================================
   Djinn Platform — Custom Theme
   ============================================ */

/* Brand colors */
:root {
  --md-primary-fg-color: #7c3aed;
  --md-primary-fg-color--light: #a78bfa;
  --md-primary-fg-color--dark: #5b21b6;
  --md-accent-fg-color: #22d3ee;
}

[data-md-color-scheme="slate"] {
  --md-primary-fg-color: #8b5cf6;
  --md-primary-fg-color--light: #a78bfa;
  --md-primary-fg-color--dark: #6d28d9;
  --md-accent-fg-color: #22d3ee;
  --md-default-bg-color: #0f0f1a;
  --md-default-bg-color--light: #1a1a2e;
  --md-code-bg-color: #16162a;
}

/* Hero-style header on home page */
.md-main .md-content h1:first-of-type {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #8b5cf6, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* Gradient accent on h2 */
.md-content h2 {
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #8b5cf6, #22d3ee, transparent) 1;
  padding-bottom: 0.4rem;
}

/* Cards for admonitions */
.md-typeset .admonition,
.md-typeset details {
  border-radius: 12px;
  border-left-width: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-md-color-scheme="slate"] .md-typeset .admonition,
[data-md-color-scheme="slate"] .md-typeset details {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* Table styling */
.md-typeset table:not([class]) {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.md-typeset table:not([class]) th {
  background: var(--md-primary-fg-color);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) th {
  background: rgba(139, 92, 246, 0.3);
}

.md-typeset table:not([class]) td {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Code blocks */
.md-typeset pre > code {
  border-radius: 8px;
}

.md-typeset code {
  border-radius: 4px;
  padding: 0.1em 0.4em;
}

/* Navigation tabs */
.md-tabs {
  background: linear-gradient(90deg, var(--md-primary-fg-color--dark), var(--md-primary-fg-color));
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Footer */
.md-footer {
  border-top: 1px solid rgba(139, 92, 246, 0.2);
}

/* Tag pills */
.md-typeset .md-tag {
  border-radius: 20px;
  padding: 0.2em 0.8em;
  font-size: 0.7rem;
  font-weight: 600;
}

/* Mermaid diagrams */
.mermaid {
  text-align: center;
  margin: 1.5rem 0;
}
