/* ═══════════════════════════════════════════════════════════════
   Neon VLA — Custom Theme
   Dark-first glassmorphic design with neon orange accents.
   Distinct from strands-microgpt: warmer palette, deeper darks,
   glowing accent elements that evoke "neon" lighting.
   ═══════════════════════════════════════════════════════════════ */

/* ─── Custom Properties ────────────────────────────────────── */

:root {
  --neon-orange: #ff6d00;
  --neon-red: #ff3d00;
  --neon-amber: #ffab00;
  --neon-glow: 0 0 20px rgba(255, 109, 0, 0.3);
  --neon-glow-sm: 0 0 8px rgba(255, 109, 0, 0.15);
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Light Mode ──────────────────────────────────────────── */

[data-md-color-scheme="default"] {
  --md-primary-fg-color: #1a1a2e;
  --md-primary-bg-color: #fafafa;
  --md-accent-fg-color: #e65100;
  --md-default-bg-color: #fafafa;
  --md-default-fg-color: #2d2d2d;
  --md-typeset-a-color: #bf360c;
  --md-code-bg-color: #f0f0f0;
  --md-code-fg-color: #37474f;

  --bg: #fafafa;
  --bg-surface: #f3f3f3;
  --bg-elevated: #eaeaea;
  --fg: #2d2d2d;
  --fg-muted: #777;
  --fg-heading: #111;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-blur: blur(16px);
  --hero-bg: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --hero-fg: #f0f0f0;
}

/* ─── Dark Mode (primary) ─────────────────────────────────── */

[data-md-color-scheme="slate"] {
  --md-default-bg-color: #0c0c14;
  --md-default-fg-color: #c0c0c8;
  --md-primary-fg-color: #f0f0f0;
  --md-primary-bg-color: #0c0c14;
  --md-accent-fg-color: #ff6d00;
  --md-code-bg-color: rgba(255, 255, 255, 0.04);
  --md-code-fg-color: #b0b0b8;
  --md-typeset-a-color: #ff8f00;

  --bg: #0c0c14;
  --bg-surface: rgba(255, 255, 255, 0.035);
  --bg-elevated: rgba(255, 255, 255, 0.06);
  --fg: #c0c0c8;
  --fg-muted: #555;
  --fg-heading: #f0f0f0;
  --glass-bg: rgba(255, 255, 255, 0.025);
  --glass-border: rgba(255, 255, 255, 0.06);
  --glass-blur: blur(20px);
  --hero-bg: linear-gradient(135deg, #0c0c14 0%, #1a1a2e 50%, #16213e 100%);
  --hero-fg: #f0f0f0;
}

/* ─── Base ────────────────────────────────────────────────── */

body {
  background: var(--bg) !important;
  color: var(--fg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--fg-heading) !important;
  font-weight: 700;
}

h1 { letter-spacing: -0.5px; }

/* ─── Links ───────────────────────────────────────────────── */

.md-typeset a {
  color: var(--md-typeset-a-color) !important;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.md-typeset a:hover {
  border-bottom-color: var(--neon-orange);
}

/* ─── Header ──────────────────────────────────────────────── */

.md-header {
  background: var(--md-primary-bg-color) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: none !important;
}

.md-header__title {
  font-weight: 700;
  letter-spacing: 1px;
}

/* ─── Navigation ──────────────────────────────────────────── */

.md-nav__link {
  color: var(--fg-muted) !important;
  font-size: 0.82rem;
  transition: color var(--transition);
}
.md-nav__link:hover { color: var(--fg-heading) !important; }
.md-nav__link--active,
.md-nav__item--active > .md-nav__link {
  color: var(--neon-orange) !important;
  font-weight: 600;
}

/* ─── Code Blocks — Glass Cards ──────────────────────────── */

.md-typeset pre {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius);
  overflow: hidden;
}

.md-typeset code {
  background: var(--bg-surface) !important;
  color: var(--md-code-fg-color) !important;
  border-radius: var(--radius-sm);
  font-size: 0.84em;
  padding: 0.1em 0.4em;
}

/* ─── Admonitions ─────────────────────────────────────────── */

.md-typeset .admonition,
.md-typeset details {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius);
  box-shadow: none !important;
  overflow: hidden;
}

/* ─── Tables ──────────────────────────────────────────────── */

.md-typeset table:not([class]) {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
}

.md-typeset table:not([class]) th {
  background: var(--bg-elevated);
  color: var(--fg-heading);
  font-weight: 600;
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.md-typeset table:not([class]) td {
  border-top: 1px solid var(--glass-border);
}

/* ─── Mermaid Diagrams ────────────────────────────────────── */

.mermaid {
  margin: 1.5em 0;
}

/* ─── Tabs ────────────────────────────────────────────────── */

.md-typeset .tabbed-set > input:checked + label {
  color: var(--neon-orange) !important;
  border-color: var(--neon-orange) !important;
}

/* ─── Grid Cards ──────────────────────────────────────────── */

.md-typeset .grid.cards > ul > li,
.md-typeset .grid.cards > ol > li {
  background: var(--glass-bg) !important;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border) !important;
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.md-typeset .grid.cards > ul > li:hover,
.md-typeset .grid.cards > ol > li:hover {
  border-color: rgba(255, 109, 0, 0.3) !important;
  box-shadow: var(--neon-glow-sm);
}

/* ─── Hero Section (index page) ──────────────────────────── */

.neon-hero {
  background: var(--hero-bg);
  color: var(--hero-fg);
  padding: 3rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin: -0.5rem -0.6rem 2rem;
  position: relative;
  overflow: hidden;
}

.neon-hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at 30% 50%, rgba(255, 109, 0, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.neon-hero h1 {
  color: #fff !important;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 4px;
  margin-bottom: 0.3rem;
  text-shadow: var(--neon-glow);
}

.neon-hero p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin: 0.3rem 0;
}

.neon-hero .neon-subtitle {
  color: var(--neon-orange);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.neon-hero img {
  max-width: 160px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(255, 109, 0, 0.4));
}

/* ─── Badges row ──────────────────────────────────────────── */

.neon-badges {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.neon-badges img {
  filter: none;
  max-width: unset;
  margin: 0;
}

/* ─── Feature Cards ───────────────────────────────────────── */

.neon-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.neon-feature {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.neon-feature:hover {
  border-color: rgba(255, 109, 0, 0.3);
  box-shadow: var(--neon-glow-sm);
}

.neon-feature h3 {
  font-size: 1rem;
  margin-top: 0;
}

.neon-feature p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  margin-bottom: 0.5rem;
}

/* ─── Stat Chips ──────────────────────────────────────────── */

.neon-stats {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.5rem 0;
}

.neon-stat {
  background: var(--bg-elevated);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--fg-heading);
  white-space: nowrap;
}

.neon-stat .accent {
  color: var(--neon-orange);
}

/* ─── Footer hidden ───────────────────────────────────────── */

.md-footer { display: none !important; }

/* ─── Scrollbar (dark mode) ───────────────────────────────── */

[data-md-color-scheme="slate"] ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
[data-md-color-scheme="slate"] ::-webkit-scrollbar-track {
  background: transparent;
}
[data-md-color-scheme="slate"] ::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

/* ─── Print ───────────────────────────────────────────────── */

@media print {
  .neon-hero { background: #1a1a2e !important; }
  .md-header, .md-sidebar { display: none !important; }
}
