/* ============================================
   PORTFOLIO BUILDER - CSS VARIABLES
   Design system powered by custom properties
   ============================================ */

:root {
  /* ===== FONTS ===== */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ===== COLORS - DARK THEME (DEFAULT) ===== */
  --bg-primary: #0a0a0b;
  --bg-secondary: #111113;
  --bg-tertiary: #18181b;
  --bg-elevated: #232328;
  --bg-card: rgba(24, 24, 27, 0.8);

  /* Text */
  --text-primary: #f5f5f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-inverse: #0a0a0b;

  /* Accent color system */
  --accent: #DC143C;
  --accent-hover: #b8102f;
  --accent-light: #e8365a;
  --accent-glow: rgba(220, 20, 60, 0.3);
  --accent-subtle: rgba(220, 20, 60, 0.12);

  /* Hero overlay */
  --hero-overlay: rgba(0, 0, 0, 0.65);

  /* Borders */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(220, 20, 60, 0.3);

  /* ===== TYPOGRAPHY ===== */
  --weight-light: 300;
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;
  --text-7xl: 4.5rem;

  --leading-none: 1;
  --leading-tight: 1.15;
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 1.85;

  --tracking-tight: -0.025em;
  --tracking-normal: 0em;
  --tracking-wide: 0.025em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.1em;

  /* ===== SPACING ===== */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* ===== SIZING ===== */
  --max-width-content: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;

  /* ===== BORDERS ===== */
  --radius-sm: 0.375rem;
  --radius-base: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* ===== SHADOWS ===== */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-base: 0 4px 8px rgba(0, 0, 0, 0.5);
  --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.7);
  --shadow-glow-sm: 0 0 12px var(--accent-glow);
  --shadow-glow: 0 0 24px var(--accent-glow);

  /* ===== TRANSITIONS ===== */
  --transition-fast: 200ms;
  --transition-base: 300ms;
  --transition-slow: 500ms;

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ===== Z-INDEX ===== */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 800;
  --z-max: 9999;

  /* ===== COMPONENT VARS ===== */
  --header-height: 72px;
  --header-bg: transparent;
  --header-bg-scrolled: rgba(10, 10, 11, 0.9);

  --input-bg: rgba(24, 24, 27, 0.6);
  --input-border: var(--border-color);
  --input-border-focus: var(--accent);
  --input-text: var(--text-primary);
  --input-placeholder: var(--text-muted);

  --card-bg: var(--bg-card);
  --card-border: var(--border-color);
  --card-padding: var(--space-8);
  --card-radius: var(--radius-lg);
}

/* Accent colors are now applied via JS hex-direct (theme.js applyAccentColor).
   The :root defaults above serve as fallback. */
