/* CSS Custom Properties */
:root {
  /* Colors - Dark theme by default */
  --color-background: #0a0a0a;
  --color-surface: #1a1a1a;
  --color-card: #2a2a2a;
  --color-border: #3a3a3a;

  --color-primary: #8b5cf6;
  --color-primary-hover: #7c3aed;
  --color-primary-light: rgba(139, 92, 246, 0.1);

  --color-success: #10b981;
  --color-success-light: rgba(16, 185, 129, 0.1);

  --color-destructive: #ef4444;
  --color-destructive-hover: #dc2626;

  --color-foreground: #ffffff;
  --color-muted: #6b7280;

  /* Typography */
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  --font-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;

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

  /* Border Radius */
  --radius-sm: 0.375rem;   /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(139, 92, 246, 0.3);

  /* 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);

  /* Z-index */
  --z-bottom-nav: 100;
  --z-modal: 200;
  --z-toast: 300;
  --z-loading: 400;

  /* Safe Areas (for notched devices) */
  --safe-top: env(safe-area-inset-top);
  --safe-bottom: env(safe-area-inset-bottom);
  --safe-left: env(safe-area-inset-left);
  --safe-right: env(safe-area-inset-right);
}

/* Light theme (optional, can be toggled later) */
@media (prefers-color-scheme: light) {
  :root.light-theme {
    --color-background: #ffffff;
    --color-surface: #f9fafb;
    --color-card: #ffffff;
    --color-border: #e5e7eb;
    --color-foreground: #111827;
    --color-muted: #6b7280;
  }
}
