/* ==========================================================================
   DESIGN SYSTEM - CSS Custom Properties
   VisiO Tech - AI Automatizace
   Dark theme, mobile-first design tokens
   ========================================================================== */

:root {
  /* ==========================================================================
     COLOR SYSTEM
     ========================================================================== */

  /* Primary colors - Indigo cobalt palette (matches VisiO Tech Design System foundation: colors_and_type.css).
     Token NAMES kept (--color-primary-*) for backwards compatibility with main.css / components.css / blog.css. */
  --color-primary-50:  #eef2ff;
  --color-primary-100: #e0e7ff;
  --color-primary-200: #c7d2fe;
  --color-primary-300: #a5b4fc;
  --color-primary-400: #818cf8;
  --color-primary-500: #6366f1;
  --color-primary-600: #4f46e5;
  --color-primary-700: #4338ca;
  --color-primary-800: #3730a3;
  --color-primary-900: #312e81;

  /* Neutral colors - warm slate (matches colors_and_type.css neutral ramp) */
  --color-neutral-50:  #f8f8fa;
  --color-neutral-100: #f0f0f5;
  --color-neutral-200: #e2e2ec;
  --color-neutral-300: #c9c9d6;
  --color-neutral-400: #9696a8;
  --color-neutral-500: #6a6a7c;
  --color-neutral-600: #4a4a5c;
  --color-neutral-700: #34344a;
  --color-neutral-800: #1f1f33;
  --color-neutral-900: #15152a;
  --color-neutral-950: #0b0c1e;

  /* Success colors */
  --color-success-50: #f0fdf4;
  --color-success-100: #dcfce7;
  --color-success-200: #bbf7d0;
  --color-success-300: #86efac;
  --color-success-400: #4ade80;
  --color-success-500: #22c55e;
  --color-success-600: #16a34a;
  --color-success-700: #15803d;
  --color-success-800: #166534;
  --color-success-900: #14532d;

  /* Signal lime - the "AI moment" accent from colors_and_type.css */
  --color-signal-400: #bef264;
  --color-signal-500: #a3e635;
  --color-accent-600: #4338ca; /* deep indigo for gradients paired with --color-primary-600 */

  /* Semantic surfaces - midnight indigo dark theme (mirrors --bg-1..--bg-elevated tokens in colors_and_type.css) */
  --bg-primary: #0e1027;
  --bg-secondary: #15183a;
  --bg-tertiary: #1b1e44;
  --bg-elevated: #21244f;

  --text-primary: #f5f5fa;
  --text-secondary: #c9c9d6;
  --text-muted: #8a8aa0;
  --text-inverse: #0b0c1e;

  --border-primary: #2e3160;
  --border-secondary: #444777;
  --border-focus: var(--color-primary-500);

  /* Status colors */
  --color-success: var(--color-success-500);
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: var(--color-primary-400);

  /* ==========================================================================
     SPACING SCALE
     4px base unit for mathematical consistency
     ========================================================================== */

  --space-0: 0;
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */

  /* ==========================================================================
     TYPOGRAPHY SYSTEM
     ========================================================================== */

  /* Font families - Manrope primary (matches colors_and_type.css; loaded via Google Fonts). JetBrains Mono for tabular numerals (ROI tables, code). */
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Font sizes using rem for accessibility */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  --text-6xl: 3.75rem;    /* 60px */

  /* Font weights */
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Line heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Letter spacing */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.025em;

  /* ==========================================================================
     VISUAL EFFECTS
     ========================================================================== */

  /* Border radius */
  --radius-sm: 0.25rem;   /* 4px */
  --radius-md: 0.375rem;  /* 6px */
  --radius-lg: 0.5rem;    /* 8px */
  --radius-xl: 0.75rem;   /* 12px */
  --radius-2xl: 1rem;     /* 16px */
  --radius-full: 9999px;

  /* Shadows - Subtle for dark mode */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.4);
  --shadow-glow: 0 0 24px rgb(99 102 241 / 0.35);
  --shadow-glow-ai: 0 0 24px rgb(163 230 53 / 0.35); /* signal lime "AI moment" halo */

  /* Transitions */
  --transition-base: 150ms ease-in-out;
  --transition-slow: 300ms ease-in-out;
  --transition-fast: 75ms ease-in-out;

  /* ==========================================================================
     LAYOUT
     ========================================================================== */

  --container-max: 1200px;
  --container-narrow: 800px;
  --container-wide: 1400px;

  /* Z-index scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-tooltip: 400;
}
