/* Horus Brand — logo-aligned design tokens */

:root,
[data-bs-theme="light"] {
  color-scheme: light;

  --horus-font-display: "Inter", "Segoe UI", system-ui, sans-serif;
  --horus-font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --horus-font-ltr-display: "Inter", "Segoe UI", system-ui, sans-serif;
  --horus-font-ltr-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --horus-font-rtl: "Readex Pro", "Segoe UI", "Tahoma", "Arial", sans-serif;

  /* Logo palette */
  --horus-brand-purple: #5b45f6;
  --horus-brand-purple-deep: #3a2aa8;
  --horus-brand-purple-light: #8e7dff;
  --horus-brand-blue: #57a8ff;
  --horus-brand-sky: #9dd9ff;
  --horus-brand-gold: #ffc84a;
  --horus-brand-orange: #ff9f1c;
  --horus-brand-pink: #ff8fb8;
  --horus-brand-dark: #1b1833;
  --horus-brand-light: #f6f9ff;
  --horus-brand-card: #ffffff;

  --horus-bg: #eef4ff;
  --horus-bg-elevated: #ffffff;
  --horus-surface: rgba(255, 255, 255, 0.86);
  --horus-surface-solid: #ffffff;
  --horus-surface-muted: #e8efff;
  --horus-surface-hover: #dde7ff;
  --horus-border: rgba(91, 69, 246, 0.1);
  --horus-border-strong: rgba(91, 69, 246, 0.2);
  --horus-text: #1b1833;
  --horus-text-secondary: #4a4568;
  --horus-text-muted: #7a7594;

  --horus-accent: var(--horus-brand-purple);
  --horus-accent-hover: #6f5cf8;
  --horus-accent-pressed: var(--horus-brand-purple-deep);
  --horus-accent-subtle: rgba(91, 69, 246, 0.12);
  --horus-accent-soft: rgba(91, 69, 246, 0.08);

  --horus-blue: var(--horus-brand-blue);
  --horus-blue-soft: rgba(87, 168, 255, 0.14);
  --horus-purple: var(--horus-brand-purple-light);
  --horus-purple-soft: rgba(142, 125, 255, 0.14);
  --horus-orange: var(--horus-brand-orange);
  --horus-orange-soft: rgba(255, 159, 28, 0.14);
  --horus-green: #34d399;
  --horus-green-soft: rgba(52, 211, 153, 0.14);
  --horus-pink: var(--horus-brand-pink);
  --horus-pink-soft: rgba(255, 143, 184, 0.16);
  --horus-yellow: var(--horus-brand-gold);
  --horus-yellow-soft: rgba(255, 200, 74, 0.18);
  --horus-gold: var(--horus-brand-gold);
  --horus-gold-soft: rgba(255, 200, 74, 0.18);
  --horus-sky: var(--horus-brand-sky);
  --horus-sky-soft: rgba(157, 217, 255, 0.22);

  --horus-danger: #ef4444;
  --horus-danger-soft: rgba(239, 68, 68, 0.14);
  --horus-warning: var(--horus-brand-orange);
  --horus-warning-soft: rgba(255, 159, 28, 0.16);
  --horus-success: #22c55e;
  --horus-success-soft: rgba(34, 197, 94, 0.14);
  --horus-info: var(--horus-brand-blue);
  --horus-info-soft: rgba(87, 168, 255, 0.14);
  --horus-draft: #94a3b8;
  --horus-draft-soft: rgba(148, 163, 184, 0.14);
  --horus-archived: #78716c;
  --horus-archived-soft: rgba(120, 113, 108, 0.14);

  --horus-sidebar-grad-1: #2a2680;
  --horus-sidebar-grad-2: #2f2a8f;
  --horus-sidebar-grad-3: #3530a0;
  --horus-sidebar-grad-4: #3a34ad;
  --horus-sidebar-bg: linear-gradient(180deg, var(--horus-sidebar-grad-1) 0%, var(--horus-sidebar-grad-2) 28%, var(--horus-sidebar-grad-3) 62%, var(--horus-sidebar-grad-4) 100%);
  --horus-sidebar-solid: #2f2a8f;
  --horus-sidebar-text: rgba(255, 255, 255, 0.88);
  --horus-sidebar-text-active: #ffffff;
  --horus-sidebar-hover: rgba(255, 255, 255, 0.1);
  --horus-sidebar-active: #ffffff;
  --horus-sidebar-border: rgba(255, 255, 255, 0.12);
  --horus-sidebar-accent: #8e7dff;
  --horus-sidebar-width: 18.5rem;

  --horus-navbar-bg: rgba(246, 249, 255, 0.82);
  --horus-card-shadow: 0 10px 28px rgba(91, 69, 246, 0.08), 0 2px 8px rgba(27, 24, 51, 0.04);
  --horus-card-shadow-hover: 0 20px 48px rgba(91, 69, 246, 0.14), 0 8px 20px rgba(27, 24, 51, 0.06);
  --horus-shadow-sm: 0 6px 18px rgba(91, 69, 246, 0.1);
  --horus-shadow-lg: 0 28px 64px rgba(27, 24, 51, 0.14);
  --horus-focus-ring: 0 0 0 4px rgba(91, 69, 246, 0.28);

  --horus-radius: 1.35rem;
  --horus-radius-sm: 1.125rem;
  --horus-radius-lg: 1.75rem;
  --horus-radius-xl: 2rem;
  --horus-control-h: 3.25rem;
  --horus-ease: 220ms cubic-bezier(0.22, 1, 0.36, 1);
  --horus-ease-fast: 160ms cubic-bezier(0.22, 1, 0.36, 1);
  --horus-bounce: 420ms cubic-bezier(0.34, 1.56, 0.64, 1);

  --horus-grad-purple: linear-gradient(135deg, #c4b5fd 0%, #8e7dff 45%, #5b45f6 100%);
  --horus-grad-blue: linear-gradient(135deg, #c8e7ff 0%, #9dd9ff 45%, #57a8ff 100%);
  --horus-grad-gold: linear-gradient(135deg, #ffe9a8 0%, #ffc84a 45%, #ff9f1c 100%);
  --horus-grad-pink: linear-gradient(135deg, #ffd1e4 0%, #ff8fb8 45%, #f472b6 100%);
  --horus-grad-teal: linear-gradient(135deg, #bbf7d0 0%, #6ee7b7 45%, #34d399 100%);
  --horus-grad-orange: linear-gradient(135deg, #ffe0b2 0%, #ffc84a 45%, #ff9f1c 100%);
  --horus-grad-green: linear-gradient(135deg, #bbf7d0 0%, #86efac 45%, #4ade80 100%);
  --horus-grad-primary: linear-gradient(135deg, #8e7dff 0%, #5b45f6 55%, #3a2aa8 100%);
  --horus-grad-card: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.92) 100%);
  --horus-grad-hero: linear-gradient(135deg, rgba(91, 69, 246, 0.14), rgba(87, 168, 255, 0.12), rgba(255, 200, 74, 0.1));

  --horus-chart-grid: rgba(91, 69, 246, 0.07);
  --horus-chart-text: #7a7594;
  --horus-chart-line: #5b45f6;
  --horus-chart-bar: #8e7dff;
  --horus-chart-bar-2: #57a8ff;
  --horus-chart-donut-1: #5b45f6;
  --horus-chart-donut-2: #57a8ff;
  --horus-chart-donut-3: #ffc84a;
  --horus-chart-donut-4: #ff8fb8;

  --bs-body-bg: var(--horus-bg);
  --bs-body-color: var(--horus-text);
  --bs-border-color: var(--horus-border);
  --bs-secondary-color: var(--horus-text-muted);
  --bs-tertiary-bg: var(--horus-surface-muted);
  --bs-primary: var(--horus-accent);
  --bs-primary-rgb: 91, 69, 246;
  --bs-link-color: var(--horus-brand-blue);
  --bs-link-hover-color: #3d8ef0;
  --bs-focus-ring-color: rgba(91, 69, 246, 0.28);
  --bs-border-radius: var(--horus-radius-sm);
  --bs-border-radius-lg: var(--horus-radius);
}

[data-bs-theme="dark"] {
  color-scheme: dark;

  --horus-bg: #0e0c1a;
  --horus-bg-elevated: #17142b;
  --horus-surface: rgba(28, 24, 52, 0.92);
  --horus-surface-solid: #1c1834;
  --horus-surface-muted: #2a2550;
  --horus-surface-hover: #322c5c;
  --horus-border: rgba(168, 155, 255, 0.18);
  --horus-border-strong: rgba(168, 155, 255, 0.3);
  --horus-text: #f7f5ff;
  --horus-text-secondary: #d8d4f0;
  --horus-text-muted: #b7b2d4;

  --horus-accent: #a89bff;
  --horus-accent-hover: #c4b5ff;
  --horus-accent-pressed: #8e7dff;
  --horus-accent-subtle: rgba(168, 155, 255, 0.2);
  --horus-accent-soft: rgba(168, 155, 255, 0.14);

  --horus-blue: #8ec5ff;
  --horus-blue-soft: rgba(142, 197, 255, 0.18);
  --horus-purple: #b8acff;
  --horus-purple-soft: rgba(184, 172, 255, 0.18);
  --horus-orange: #ffbd5c;
  --horus-orange-soft: rgba(255, 189, 92, 0.18);
  --horus-green: #5ee98a;
  --horus-green-soft: rgba(94, 233, 138, 0.18);
  --horus-pink: #ffb0d0;
  --horus-pink-soft: rgba(255, 176, 208, 0.18);
  --horus-yellow: #ffe08a;
  --horus-yellow-soft: rgba(255, 224, 138, 0.18);
  --horus-gold: #ffe08a;
  --horus-gold-soft: rgba(255, 224, 138, 0.18);
  --horus-sky: #c5eaff;
  --horus-sky-soft: rgba(197, 234, 255, 0.16);

  --horus-danger: #fb8a8a;
  --horus-danger-soft: rgba(251, 138, 138, 0.18);
  --horus-warning: #ffbd5c;
  --horus-warning-soft: rgba(255, 189, 92, 0.18);
  --horus-success: #5ee98a;
  --horus-success-soft: rgba(94, 233, 138, 0.18);
  --horus-info: #8ec5ff;
  --horus-info-soft: rgba(142, 197, 255, 0.18);
  --horus-draft: #a8b4c8;
  --horus-draft-soft: rgba(168, 180, 200, 0.18);
  --horus-archived: #b8b0a8;
  --horus-archived-soft: rgba(184, 176, 168, 0.18);

  --horus-sidebar-grad-1: #1f1b5c;
  --horus-sidebar-grad-2: #252070;
  --horus-sidebar-grad-3: #2a2682;
  --horus-sidebar-grad-4: #2f2a90;
  --horus-sidebar-bg: linear-gradient(180deg, var(--horus-sidebar-grad-1) 0%, var(--horus-sidebar-grad-2) 35%, var(--horus-sidebar-grad-4) 100%);
  --horus-sidebar-solid: #252070;
  --horus-sidebar-text: rgba(255, 255, 255, 0.92);
  --horus-sidebar-text-active: #ffffff;
  --horus-sidebar-hover: rgba(255, 255, 255, 0.12);
  --horus-sidebar-active: #ffffff;
  --horus-sidebar-border: rgba(255, 255, 255, 0.14);
  --horus-sidebar-accent: #b8acff;

  --horus-navbar-bg: rgba(14, 12, 26, 0.88);
  --horus-card-shadow: 0 12px 32px rgba(0, 0, 0, 0.42);
  --horus-card-shadow-hover: 0 22px 52px rgba(0, 0, 0, 0.52);
  --horus-shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.36);
  --horus-shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.58);
  --horus-focus-ring: 0 0 0 4px rgba(168, 155, 255, 0.34);

  --horus-grad-card: linear-gradient(165deg, rgba(32, 28, 58, 0.98) 0%, rgba(24, 20, 46, 0.94) 100%);
  --horus-grad-hero: linear-gradient(135deg, rgba(168, 155, 255, 0.2), rgba(142, 197, 255, 0.12), rgba(255, 224, 138, 0.08));

  --horus-chart-grid: rgba(247, 245, 255, 0.1);
  --horus-chart-text: #c9c4e4;
  --horus-chart-line: #a89bff;
  --horus-chart-bar: #a89bff;
  --horus-chart-bar-2: #8ec5ff;
  --horus-chart-donut-1: #a89bff;
  --horus-chart-donut-2: #8ec5ff;
  --horus-chart-donut-3: #ffe08a;
  --horus-chart-donut-4: #ffb0d0;

  --bs-body-bg: var(--horus-bg);
  --bs-body-color: var(--horus-text);
  --bs-border-color: var(--horus-border);
  --bs-secondary-color: var(--horus-text-muted);
  --bs-tertiary-bg: var(--horus-surface-muted);
  --bs-primary: var(--horus-accent);
  --bs-primary-rgb: 168, 155, 255;
  --bs-link-color: var(--horus-blue);
  --bs-link-hover-color: #b8e4ff;
  --bs-focus-ring-color: rgba(168, 155, 255, 0.34);
}
