/* ===================================
   etisone Design System
   CSS Custom Properties (Variables)
   Apple-Inspired Light Theme
   =================================== */

/* ===== Custom Fonts ===== */

@font-face {
  font-family: 'ElementalEnd';
  src: url('../assets/fonts/ElementalEnd.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ===== Color Palette ===== */

  /* Surface Colors - Clean White */
  --color-bg: #ffffff;
  --color-bg-light: #f5f5f7;
  --color-bg-alt: #f5f5f7;
  --color-bg-dark: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-surface-card: #f5f5f7;

  /* Text Colors - Apple Near-Black */
  --color-text: #1d1d1f;
  --color-text-light: #6e6e73;
  --color-text-muted: #86868b;
  --color-text-dim: #d2d2d7;

  /* Brand - Apple Blue */
  --color-primary: #0066cc;
  --color-primary-dark: #004499;
  --color-primary-light: #0077ed;
  --color-accent: #0066cc;
  --color-accent-dark: #004499;

  /* Links */
  --color-link: #0066cc;
  --color-link-hover: #004499;

  /* Borders & Dividers */
  --color-border: #d2d2d7;
  --color-border-light: #e8e8ed;
  --color-divider: #d2d2d7;

  /* Gray Scale (Light-First) */
  --color-gray-50: #f5f5f7;
  --color-gray-100: #e8e8ed;
  --color-gray-200: #d2d2d7;
  --color-gray-300: #aeaeb2;
  --color-gray-400: #86868b;
  --color-gray-500: #6e6e73;
  --color-gray-600: #48484a;
  --color-gray-700: #3a3a3c;
  --color-gray-800: #1d1d1f;
  --color-gray-900: #000000;

  /* Semantic Colors */
  --color-success: #34c759;
  --color-warning: #ff9f0a;
  --color-error: #ff3b30;
  --color-info: #007aff;

  /* ===== Typography ===== */

  /* Font Families */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-family-heading: 'Inter', -apple-system, 'SF Pro Display', system-ui, sans-serif;
  --font-family-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --font-family-brand: 'ElementalEnd', 'Inter', sans-serif;

  /* Font Sizes */
  --font-size-xs: 0.75rem;      /* 12px */
  --font-size-sm: 0.875rem;     /* 14px */
  --font-size-base: 1rem;       /* 16px */
  --font-size-lg: 1.125rem;     /* 18px */
  --font-size-xl: 1.25rem;      /* 20px */
  --font-size-2xl: 1.5rem;      /* 24px */
  --font-size-3xl: 1.875rem;    /* 30px */
  --font-size-4xl: 2.25rem;     /* 36px */
  --font-size-5xl: 3rem;        /* 48px */
  --font-size-6xl: 3.75rem;     /* 60px */

  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Wordmark-Specific */
  --font-weight-wordmark: 600;
  --font-weight-heading-hero: 600;

  /* Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.05em;
  --letter-spacing-wider: 0.12em;
  --letter-spacing-wordmark: 0.08em;

  /* Line Heights */
  --line-height-tight: 1.1;
  --line-height-snug: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 1.8;

  /* ===== Spacing Scale (8px base) ===== */

  --spacing-xs: 0.5rem;         /* 8px */
  --spacing-sm: 1rem;           /* 16px */
  --spacing-md: 1.5rem;         /* 24px */
  --spacing-lg: 2rem;           /* 32px */
  --spacing-xl: 3rem;           /* 48px */
  --spacing-2xl: 4rem;          /* 64px */
  --spacing-3xl: 6rem;          /* 96px */
  --spacing-4xl: 8rem;          /* 128px */

  /* ===== Layout ===== */

  /* Container Widths */
  --container-max: 1200px;
  --container-sm: 768px;
  --container-md: 1024px;
  --container-lg: 1280px;

  /* ===== Effects & Transitions ===== */

  /* Border Radius */
  --radius-sm: 0.5rem;          /* 8px */
  --radius-md: 0.75rem;         /* 12px */
  --radius-lg: 1rem;            /* 16px */
  --radius-xl: 1.125rem;        /* 18px - Apple style */
  --radius-2xl: 1.5rem;         /* 24px */
  --radius-full: 9999px;

  /* Shadows - Subtle, Warm */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.08);

  /* Transitions - Snappier (Apple-style) */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  --transition-cinematic: 800ms cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* ===== Component-Specific ===== */

  /* Header */
  --header-height: 48px;
  --header-height-mobile: 48px;

  /* Card */
  --card-padding: var(--spacing-lg);
  --card-border-radius: var(--radius-xl);
}

/* ===== Accessibility: Reduced Motion ===== */

@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0ms;
    --transition-base: 0ms;
    --transition-slow: 0ms;
    --transition-cinematic: 0ms;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
