/* ═══════════════════════════════════════
   СпортКалендарь — Design Tokens
   shadcn/ui inspired system
   ═══════════════════════════════════════ */

:root {
  /* ── Core Palette ── */
  --background: #f8fafc;
  --foreground: #0f172a;

  --card: #ffffff;
  --card-foreground: #0f172a;

  --popover: #ffffff;
  --popover-foreground: #0f172a;

  --primary: #7c3aed;
  --primary-hover: #6d28d9;
  --primary-foreground: #faf5ff;
  --primary-bg: rgba(124,58,237,.07);
  --primary-bg-solid: #f5f3ff;

  --secondary: #f1f5f9;
  --secondary-hover: #e2e8f0;
  --secondary-foreground: #1e293b;

  --muted: #f1f5f9;
  --muted-foreground: #64748b;

  --accent: #f1f5f9;
  --accent-hover: #e2e8f0;
  --accent-foreground: #1e293b;

  --destructive: #ef4444;
  --destructive-hover: #dc2626;
  --destructive-foreground: #fefefe;

  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #7c3aed;

  /* ── Violet Scale ── */
  --violet-50: #f5f3ff;
  --violet-100: #ede9fe;
  --violet-200: #ddd6fe;
  --violet-300: #c4b5fd;
  --violet-400: #a78bfa;
  --violet-500: #8b5cf6;
  --violet-600: #7c3aed;
  --violet-700: #6d28d9;

  /* ── Semantic Colors ── */
  --success: #10b981;
  --success-bg: rgba(16,185,129,.08);
  --success-fg: #065f46;

  --warning: #f59e0b;
  --warning-bg: rgba(245,158,11,.08);
  --warning-fg: #92400e;

  --danger: #ef4444;
  --danger-bg: rgba(239,68,68,.08);
  --danger-fg: #991b1b;

  --info: #0ea5e9;
  --info-bg: rgba(14,165,233,.08);
  --info-fg: #0c4a6e;

  /* ── Event Colors (Calendar) ── */
  --ev-blue: #3b82f6;
  --ev-green: #22c55e;
  --ev-purple: #a855f7;
  --ev-orange: #f97316;
  --ev-pink: #ec4899;
  --ev-red: #ef4444;
  --ev-sky: #0ea5e9;
  --ev-slate: #94a3b8;

  /* ── Typography ── */
  --font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-xs: .6875rem;
  --font-sm: .8125rem;
  --font-base: .875rem;
  --font-md: 1rem;
  --font-lg: 1.125rem;
  --font-xl: 1.375rem;
  --font-2xl: 1.75rem;
  --font-3xl: 2.25rem;

  /* ── Radius ── */
  --radius: .5rem;
  --radius-sm: calc(var(--radius) - 2px);
  --radius-md: var(--radius);
  --radius-lg: calc(var(--radius) + 4px);
  --radius-xl: 1rem;
  --radius-2xl: 1.25rem;
  --radius-full: 9999px;

  /* ── Shadows ── */
  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08),0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07),0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08),0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.06);
  --shadow-ring: 0 0 0 3px rgba(124,58,237,.12);

  /* ── Transitions ── */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur-fast: 150ms;
  --dur-base: 200ms;
  --dur-slow: 300ms;

  /* ── Layout ── */
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 72px;
  --content-max: 1400px;

  /* ── Z-Index ── */
  --z-dropdown: 50;
  --z-sticky: 100;
  --z-modal: 200;
  --z-toast: 300;
}
