/* ===========================================
   Mike Stafford Virtual Resume - Design Tokens
   =========================================== */

:root {
  /* ===================
     COLOR SYSTEM - LIGHT THEME
     =================== */

  /* Backgrounds & Surfaces */
  --color-background: #fafbfc;       /* Page background (off-white) */
  --color-surface: #ffffff;          /* Card/section backgrounds */
  --color-surface-elevated: #f8f9fa; /* Alt sections */

  /* Text Colors */
  --color-text: #1a1d23;             /* Primary text (deep charcoal) */
  --color-text-muted: #4b5563;       /* Secondary text (WCAG AAA 7.5:1 contrast) */

  /* Borders */
  --color-border: #e5e7eb;           /* Subtle borders */
  --color-border-subtle: #f3f4f6;    /* Very subtle borders */

  /* ===================
     ACCENT COLORS (Hierarchical, Semantic)
     =================== */
  /* Primary Accent - Vibrant Blue */
  --color-accent: #2563eb;           /* Primary CTAs, hero accent, key metrics */
  --color-accent-hover: #1d4ed8;     /* Darker blue for hover */

  /* Warm Accent - Vibrant Orange (secondary CTAs, warmth) */
  --color-warm: #f97316;
  --color-warm-hover: #ea580c;

  /* Rich Navy - Section headers, professional gravitas */
  --color-navy: #1e3a8a;
  --color-navy-light: #2563eb;

  /* Muted Emerald - Best Fit, trust signals, positive indicators */
  --color-emerald: #047857;
  --color-success: #047857;
  --color-success-light: #059669;

  /* Soft Cyan - Credentials, secondary callouts */
  --color-cyan: #0891b2;
  --color-cyan-light: #06b6d4;

  /* Warm Rust - Not Best Fit, caution indicators */
  --color-rust: #b45309;
  --color-amber: #b45309;

  /* Legacy mappings for compatibility */
  --color-primary: #1e3a8a;
  --color-secondary: #f8f9fa;
  --color-primary-400: #3b82f6;
  --color-primary-500: #1e3a8a;
  --color-primary-600: #1e40af;
  --color-electric-blue: #2563eb;
  --color-coral: #f97316;
  --color-violet: #1e3a8a;
  --color-highlight: #2563eb;
  --color-error: #dc2626;

  /* ===================
     GRADIENT COLORS (Subtle for light theme)
     =================== */
  --gradient-blue: rgba(30, 58, 138, 0.05);
  --gradient-purple: rgba(30, 58, 138, 0.03);
  --gradient-emerald: rgba(4, 120, 87, 0.03);

  /* ===================
     BACKGROUND TEXTURES
     =================== */
  --noise-texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --noise-opacity: 0.025;

  /* ===================
     SHADOWS (Replace glows)
     =================== */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 2px 4px rgba(0, 0, 0, 0.04), 0 4px 8px rgba(0, 0, 0, 0.04);

  --shadow-layered: var(--shadow-card);
  --shadow-layered-hover: var(--shadow-md);

  /* ===================
     TYPOGRAPHY
     =================== */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Fluid type scale using clamp() */
  --font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --font-size-3xl: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  --font-size-4xl: clamp(2.5rem, 2rem + 2.5vw, 3.5rem);

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

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

  /* ===================
     SPACING SCALE
     =================== */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* ===================
     LAYOUT
     =================== */
  --max-width: 1200px;
  --max-width-narrow: 800px;
  --content-padding: var(--space-4);
  --section-padding: var(--space-16);
  --card-padding: var(--space-6);
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --border-radius-full: 50%;

  /* ===================
     TRANSITIONS
     =================== */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* ===================
     LEGACY SHADOW VARS (kept for compatibility)
     =================== */

  /* ===================
     Z-INDEX SCALE
     =================== */
  --z-base: 0;
  --z-above: 10;
  --z-nav: 100;
  --z-modal: 1000;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  :root {
    --content-padding: var(--space-6);
    --section-padding: var(--space-20);
  }
}

@media (min-width: 1024px) {
  :root {
    --content-padding: var(--space-8);
    --section-padding: var(--space-24);
  }
}
