/**
 * ┌─────────────────────────────────────────────────────────────────────┐
 * │  🌞 SUNDAY APP FRAMEWORK — DESIGN TOKENS                           │
 * │  Core CSS variables that define the visual language                │
 * ├─────────────────────────────────────────────────────────────────────┤
 * │  Usage:                                                             │
 * │    color: var(--sunday-text);                                       │
 * │    background: var(--sunday-card);                                  │
 * │    padding: var(--sunday-space-4);                                  │
 * │                                                                     │
 * │  Semantic aliases (shorthand):                                      │
 * │    --ink, --muted, --card, --bg, --line, --brand                   │
 * ├─────────────────────────────────────────────────────────────────────┤
 * │  Version: 1.1.0                                                     │
 * │  Updated: Friday Dec 12, 2025                                       │
 * └─────────────────────────────────────────────────────────────────────┘
 */

:root {
  /* ===== Colors - Dark Theme (Default) ===== */
  --sunday-bg: #0b0c10;
  --sunday-surface: #0f131c;
  --sunday-card: #141820;
  --sunday-text: #e9f3ff;
  --sunday-text-muted: #9bb1c7;
  --sunday-line: #1e2636;
  
  /* Accent Colors */
  --sunday-accent: #7ce3ff;
  --sunday-accent-alt: #60ffa8;
  --sunday-brand: #8b5cf6;
  
  /* Semantic Colors */
  --sunday-success: #10b981;
  --sunday-success-light: rgba(16, 185, 129, 0.15);
  --sunday-error: #ef4444;
  --sunday-error-light: rgba(239, 68, 68, 0.15);
  --sunday-warning: #f59e0b;
  --sunday-warning-light: rgba(245, 158, 11, 0.15);
  --sunday-info: #3b82f6;
  --sunday-info-light: rgba(59, 130, 246, 0.15);
  
  /* ===== Spacing ===== */
  --sunday-space-0: 0;
  --sunday-space-1: 4px;
  --sunday-space-2: 8px;
  --sunday-space-3: 12px;
  --sunday-space-4: 16px;
  --sunday-space-5: 20px;
  --sunday-space-6: 24px;
  --sunday-space-8: 32px;
  --sunday-space-10: 40px;
  --sunday-space-12: 48px;
  --sunday-space-16: 64px;
  
  /* ===== Border Radius ===== */
  --sunday-radius-sm: 6px;
  --sunday-radius-md: 10px;
  --sunday-radius-lg: 14px;
  --sunday-radius-xl: 18px;
  --sunday-radius-2xl: 24px;
  --sunday-radius-full: 9999px;
  
  /* ===== Typography ===== */
  --sunday-font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, Arial, sans-serif;
  --sunday-font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  /* Font Sizes */
  --sunday-text-xs: 11px;
  --sunday-text-sm: 13px;
  --sunday-text-base: 14px;
  --sunday-text-lg: 16px;
  --sunday-text-xl: 18px;
  --sunday-text-2xl: 22px;
  --sunday-text-3xl: 28px;
  --sunday-text-4xl: 36px;
  
  /* Font Weights */
  --sunday-font-normal: 400;
  --sunday-font-medium: 500;
  --sunday-font-semibold: 600;
  --sunday-font-bold: 700;
  --sunday-font-black: 900;
  
  /* Line Heights */
  --sunday-leading-tight: 1.25;
  --sunday-leading-normal: 1.5;
  --sunday-leading-relaxed: 1.75;
  
  /* ===== Shadows ===== */
  --sunday-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --sunday-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --sunday-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  --sunday-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.25);
  
  /* ===== Transitions ===== */
  --sunday-transition-fast: 0.15s ease;
  --sunday-transition-normal: 0.25s ease;
  --sunday-transition-slow: 0.4s ease;
  
  /* ===== Z-Index Scale ===== */
  --sunday-z-dropdown: 100;
  --sunday-z-sticky: 200;
  --sunday-z-modal: 1000;
  --sunday-z-overlay: 1500;
  --sunday-z-toast: 2000;
  
  /* ===== Layout ===== */
  --sunday-container-max: 1400px;
  --sunday-header-height: 60px;
  --sunday-sidebar-width: 260px;
}

/* ===== Light Theme ===== */
[data-theme="light"] {
  --sunday-bg: #ffffff;
  --sunday-surface: #f8fafc;
  --sunday-card: #ffffff;
  --sunday-text: #0f172a;
  --sunday-text-muted: #64748b;
  --sunday-line: #e2e8f0;
  
  /* Accent adjustments for light mode */
  --sunday-accent: #0ea5e9;
  --sunday-accent-alt: #10b981;
  
  /* Shadows - lighter for light mode */
  --sunday-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.05);
  --sunday-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --sunday-shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.1);
  --sunday-shadow-xl: 0 16px 48px rgba(15, 23, 42, 0.12);
}

/* ===== Semantic Aliases (for app use) ===== */
:root {
  --bg: var(--sunday-bg);
  --card: var(--sunday-card);
  --ink: var(--sunday-text);
  --muted: var(--sunday-text-muted);
  --line: var(--sunday-line);
  --brand: var(--sunday-brand);
  --brand2: var(--sunday-accent-alt);
  --accent: var(--sunday-accent);
}

