/* ==========================================================================
   Talkio Design Tokens – Dark Mode (výchozí) & Light Mode
   ========================================================================== */

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

  /* Pozadí */
  --bg-primary: #0b0f1a;
  --bg-secondary: #11182b;
  --bg-elevated: #172038;

  /* Glassmorphism povrchy */
  --glass-bg: rgba(20, 29, 51, 0.68);
  --glass-bg-strong: rgba(17, 24, 43, 0.86);
  --glass-bg-hover: rgba(30, 42, 74, 0.78);
  --glass-border: rgba(148, 163, 184, 0.16);
  --glass-border-strong: rgba(148, 163, 184, 0.28);
  --glass-shadow: 0 14px 40px rgba(2, 6, 23, 0.45);
  --glass-shadow-sm: 0 6px 20px rgba(2, 6, 23, 0.32);
  --glass-blur: 18px;

  /* Typografie */
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-inverse: #0b0f1a;

  /* Akcenty a gradienty */
  --accent-primary: #6366f1;
  --accent-primary-hover: #818cf8;
  --accent-secondary: #22d3ee;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 52%, #22d3ee 100%);
  --accent-soft: rgba(99, 102, 241, 0.16);
  --accent-glow: 0 0 28px rgba(99, 102, 241, 0.38);

  /* Sémantické barvy */
  --color-success: #34d399;
  --color-success-bg: rgba(52, 211, 153, 0.14);
  --color-warning: #fbbf24;
  --color-warning-bg: rgba(251, 191, 36, 0.14);
  --color-danger: #f87171;
  --color-danger-bg: rgba(248, 113, 113, 0.14);
  --color-info: #38bdf8;
  --color-info-bg: rgba(56, 189, 248, 0.14);

  /* Inputy a ovládací prvky */
  --input-bg: rgba(11, 15, 26, 0.62);
  --input-border: rgba(148, 163, 184, 0.22);
  --input-focus-ring: rgba(99, 102, 241, 0.32);

  /* Zaoblení */
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  /* Rozestupy */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;

  /* Rozměry rozvržení */
  --nav-height-mobile: 4.5rem;
  --sidebar-width-desktop: 16.5rem;
  --topbar-height: 4rem;
  --content-max-width: 72rem;

  /* Písma */
  --font-sans: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Animace & vrstvy */
  --transition-fast: 150ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-base: 240ms cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 380ms cubic-bezier(0.22, 1, 0.36, 1);
  --z-nav: 30;
  --z-topbar: 25;
  --z-modal: 60;
  --z-toast: 80;
}

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

  /* Pozadí */
  --bg-primary: #f4f7fb;
  --bg-secondary: #eaf0f8;
  --bg-elevated: #ffffff;

  /* Glassmorphism povrchy */
  --glass-bg: rgba(255, 255, 255, 0.78);
  --glass-bg-strong: rgba(255, 255, 255, 0.92);
  --glass-bg-hover: rgba(255, 255, 255, 0.96);
  --glass-border: rgba(15, 23, 42, 0.10);
  --glass-border-strong: rgba(15, 23, 42, 0.18);
  --glass-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  --glass-shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
  --glass-blur: 18px;

  /* Typografie */
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Akcenty a gradienty */
  --accent-primary: #4f46e5;
  --accent-primary-hover: #4338ca;
  --accent-secondary: #0891b2;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 52%, #06b6d4 100%);
  --accent-soft: rgba(79, 70, 229, 0.10);
  --accent-glow: 0 8px 26px rgba(79, 70, 229, 0.28);

  /* Sémantické barvy */
  --color-success: #059669;
  --color-success-bg: rgba(5, 150, 105, 0.12);
  --color-warning: #d97706;
  --color-warning-bg: rgba(217, 119, 6, 0.12);
  --color-danger: #dc2626;
  --color-danger-bg: rgba(220, 38, 38, 0.12);
  --color-info: #0284c7;
  --color-info-bg: rgba(2, 132, 199, 0.12);

  /* Inputy a ovládací prvky */
  --input-bg: rgba(248, 250, 252, 0.92);
  --input-border: rgba(15, 23, 42, 0.16);
  --input-focus-ring: rgba(79, 70, 229, 0.22);
}
