/* ============================================
   CSS CUSTOM PROPERTIES (VARIABLES)
   Apple-Inspired Design System
   ============================================

   This file contains all CSS custom properties (variables) used
   throughout the application, including typography, colors,
   spacing, border radius, shadows, and transitions.
   ============================================ */

:root {
  /* Typography Scale - SF Pro inspired */
  --font-display: 'Urbanist', -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;

  --font-size-display: 56px;
  --font-size-h1: 48px;
  --font-size-h2: 32px;
  --font-size-h3: 24px;
  --font-size-h4: 21px;
  --font-size-body: 17px;
  --font-size-body-small: 14px;
  --font-size-caption: 12px;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Color System - Dark Mode */
  --color-bg-gradient-start: #0f172a;
  --color-bg-gradient-end: #1e3a8a;

  --color-surface-0: rgba(17, 24, 39, 0.7);
  --color-surface-1: rgba(24, 33, 46, 0.8);
  --color-surface-2: rgba(30, 41, 59, 0.88);
  --color-surface-3: rgba(45, 55, 72, 0.95);

  --color-border: rgba(148, 163, 184, 0.35);
  --color-border-strong: rgba(148, 163, 184, 0.55);

  --color-text-high: #f8fafc;
  --color-text-medium: #cbd5f5;
  --color-text-muted: #94a3b8;

  --color-accent-primary: #60a5fa;
  --color-accent-hover: #7dd3fc;
  --color-accent-pressed: #2563eb;
  --color-accent-glow: rgba(96, 165, 250, 0.35);

  --color-success: #34d399;
  --color-warning: #facc15;
  --color-error: #f87171;


  /* Legacy neutral aliases mapped to dark theme */
  --color-neutral-0: rgba(17, 24, 39, 0.85);
  --color-neutral-50: rgba(24, 33, 45, 0.75);
  --color-neutral-100: rgba(30, 41, 59, 0.7);
  --color-neutral-200: rgba(51, 65, 85, 0.65);
  --color-neutral-300: rgba(71, 85, 105, 0.6);
  --color-neutral-400: rgba(148, 163, 184, 0.6);
  --color-neutral-500: rgba(148, 163, 184, 0.8);
  --color-neutral-600: rgba(203, 213, 225, 0.9);
  --color-neutral-700: rgba(226, 232, 240, 0.95);
  --color-neutral-900: rgba(248, 250, 252, 0.98);

  /* Glow and Shadow */
  --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 10px 30px rgba(37, 99, 235, 0.25);

  /* Spacing System - 8pt Grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Border Radius - Consistent System */
  --radius-small: 8px;
  --radius-medium: 12px;
  --radius-large: 16px;
  --radius-xlarge: 24px;
  --radius-full: 980px;

  /* Shadows - Subtle Depth */
  --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.04), 0 2px 4px rgba(0, 0, 0, 0.02);
  --shadow-large: 0 10px 15px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.03);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.08);

  /* Z-Index System */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 1000;
  --z-modal-backdrop: 2000;
  --z-modal: 2010;
  --z-tooltip: 3000;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ============================================
     FINDER VIEW - Slate Palette
     macOS Finder-inspired theme
     ============================================ */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-750: #293548;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;

  /* Finder accent colors */
  --finder-blue-500: #3b82f6;
  --finder-blue-600: #2563eb;
  --finder-blue-500-10: rgba(59, 130, 246, 0.1);
  --finder-blue-500-20: rgba(59, 130, 246, 0.2);

  --finder-emerald-500: #10b981;
  --finder-emerald-600: #059669;
  --finder-emerald-500-10: rgba(16, 185, 129, 0.1);

  --finder-red-500: #ef4444;
  --finder-red-500-10: rgba(239, 68, 68, 0.1);

  --finder-orange-500: #f97316;

  /* Finder typography - loaded via Google Fonts in index.html */
  --font-finder-display: 'Urbanist', var(--font-display);
  --font-finder-body: 'Inter', var(--font-body);
}
