/**
 * File: css/theme-dark.css
 * Location: /css/theme-dark.css
 * Version: 2.1.0
 * Last updated: 2026-08-07
 *
 * Ústecký Hladáč – DARK theme token sheet of the split design system.
 * Loaded after css/theme-light.css. Scoped to body.theme-dark; provides
 * the authoritative dark palette. css/style.css keeps a matching fallback
 * so the app renders correctly even if this file fails to load.
 */

body.theme-dark {
  color-scheme: dark;

  /* Base surfaces */
  --bg: #060a16;
  --bg-gradient-1: rgba(37, 99, 235, 0.20);
  --bg-gradient-2: rgba(96, 165, 250, 0.12);
  --bg-gradient-3: rgba(217, 119, 6, 0.08);

  --surface: rgba(17, 24, 42, 0.80);
  --surface-strong: rgba(20, 28, 48, 0.92);
  --surface-muted: rgba(15, 21, 38, 0.6);
  --surface-sunken: rgba(0, 0, 0, 0.22);

  --text: #e7ecf6;
  --text-strong: #ffffff;
  --muted: #94a3b8;
  --muted-soft: #6b7994;

  --border-rgb: 148, 163, 184;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.22);

  /* Neumorphic shadow pair (light source: top-left) */
  --neu-light: rgba(255, 255, 255, 0.04);
  --neu-dark: rgba(0, 0, 0, 0.55);
  --neu-raised: 8px 8px 16px var(--neu-dark), -8px -8px 16px var(--neu-light);
  --neu-inset: inset 5px 5px 12px var(--neu-dark), inset -5px -5px 12px var(--neu-light);
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.38), 0 2px 6px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 26px 65px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.25);
  --inset-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.35), inset 0 -1px 1px rgba(255, 255, 255, 0.04);

  /* Brand + semantic colors */
  --primary: #5b9bfa;
  --primary-strong: #7fb0ff;
  --primary-soft: rgba(91, 155, 250, 0.18);
  --accent: #fbbf24;

  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.16);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.16);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.16);
  --info: #22d3ee;
  --info-soft: rgba(34, 211, 238, 0.16);

  /* Extended v2.1.0 tokens (a11y + effects) */
  --focus-ring: rgba(127, 176, 255, 0.4);
  --focus-ring-offset: 2px;
  --touch-target: 44px;

  --surface-elevated: rgba(20, 28, 48, 0.92);
  --surface-zebra: rgba(255, 255, 255, 0.03);

  --danger-fg: #fda4af;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --success-fg: #6ee7b7;
  --success-bg: rgba(52, 211, 153, 0.12);
  --warning-fg: #fcd34d;
  --warning-bg: rgba(251, 191, 36, 0.12);
  --info-fg: #67e8f9;
  --info-bg: rgba(34, 211, 238, 0.12);

  --code-bg: #0b1020;
  --code-text: #dbe4f0;
  --code-tag: #7fb0ff;
  --code-attr: #9cdcfe;
  --code-value: #ce9178;
  --code-comment: #6a9955;

  --aurora-1: rgba(37, 99, 235, 0.22);
  --aurora-2: rgba(96, 165, 250, 0.14);
  --aurora-3: rgba(217, 119, 6, 0.08);
}