/*
 * Design System Variables
 *
 * This file defines CSS custom properties for the entire MaiaCoach application.
 * These variables ensure consistent colors, spacing, shadows, and other design tokens
 * across all components and views.
 */

:root {
  /* ========================================================================
     BRAND COLORS - LinkedIn
     ======================================================================== */
  --color-linkedin-primary: #0077b5;
  --color-linkedin-secondary: #00a0dc;
  --color-linkedin-dark: #005885;
  --gradient-linkedin: linear-gradient(135deg, #0077b5, #00a0dc);
  --gradient-linkedin-hover: linear-gradient(135deg, #005885, #0077b5);
  --shadow-linkedin: 0 4px 12px rgba(0, 119, 181, 0.3);

  /* ========================================================================
     BRAND COLORS - CV/Red
     ======================================================================== */
  --color-cv-primary: #dc2626;
  --color-cv-secondary: #ef4444;
  --color-cv-dark: #b91c1c;
  --gradient-cv: linear-gradient(135deg, #dc2626, #ef4444);
  --gradient-cv-hover: linear-gradient(135deg, #b91c1c, #dc2626);
  --shadow-cv: 0 4px 12px rgba(220, 38, 38, 0.3);

  /* ========================================================================
     SEMANTIC COLORS
     ======================================================================== */

  /* Success */
  --color-success: #10b981;
  --color-success-light: #34d399;
  --color-success-dark: #059669;
  --gradient-success: linear-gradient(135deg, #10b981, #059669);
  --shadow-success: 0 4px 12px rgba(16, 185, 129, 0.3);

  /* Premium */
  --color-premium: #8b5cf6;
  --color-premium-light: #a78bfa;
  --color-premium-dark: #7c3aed;
  --color-premium-darker: #6d28d9;
  --gradient-premium: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --shadow-premium: 0 4px 12px rgba(139, 92, 246, 0.3);

  /* Warning/Optimization */
  --color-warning: #f59e0b;
  --color-warning-light: #fbbf24;
  --color-warning-dark: #d97706;
  --gradient-warning: linear-gradient(135deg, #f59e0b, #d97706);
  --shadow-warning: 0 4px 12px rgba(245, 158, 11, 0.3);

  /* Primary Blue */
  --color-primary: #3b82f6;
  --color-primary-light: #60a5fa;
  --color-primary-dark: #1d4ed8;
  --gradient-primary: linear-gradient(135deg, #3b82f6, #1d4ed8);

  /* Danger/Error */
  --color-danger: #dc2626;
  --color-danger-light: #ef4444;
  --color-danger-dark: #b91c1c;

  /* Info */
  --color-info: #0ea5e9;
  --color-info-light: #38bdf8;
  --color-info-dark: #0284c7;

  /* ========================================================================
     NEUTRAL COLORS
     ======================================================================== */
  --color-text: #0f172a;           /* slate-900 - Primary text */
  --color-text-muted: #64748b;     /* slate-500 - Muted text */
  --color-text-light: #94a3b8;     /* slate-400 - Very light text */

  --color-border: #e2e8f0;         /* slate-200 - Borders */
  --color-border-light: #f1f5f9;   /* slate-100 - Light borders */

  --color-bg-white: #ffffff;       /* White backgrounds */
  --color-bg-light: #f8fafc;       /* slate-50 - Light backgrounds */
  --color-bg-gray: #f1f5f9;        /* slate-100 - Gray backgrounds */
  --color-bg-hover: #f1f5f9;       /* Hover backgrounds */

  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;

  /* ========================================================================
     SPACING SCALE
     Base: 4px unit
     ======================================================================== */
  --spacing-0: 0;
  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-5: 20px;
  --spacing-6: 24px;
  --spacing-7: 28px;
  --spacing-8: 32px;

  /* Named spacing (legacy compatibility) */
  --spacing-xs: 8px;
  --spacing-sm: 12px;
  --spacing-md: 16px;
  --spacing-lg: 20px;
  --spacing-xl: 25px;
  --spacing-2xl: 30px;
  --spacing-3xl: 40px;

  /* ========================================================================
     BORDER RADIUS
     ======================================================================== */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-full: 9999px;

  /* ========================================================================
     SHADOWS
     ======================================================================== */
  --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 30px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 20px 40px rgba(0, 0, 0, 0.2);

  /* Colored shadows for emphasis */
  --shadow-primary: 0 4px 12px rgba(59, 130, 246, 0.3);
  --shadow-danger: 0 4px 12px rgba(220, 38, 38, 0.3);

  /* ========================================================================
     TYPOGRAPHY
     ======================================================================== */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
                       'Helvetica Neue', Arial, sans-serif;
  --font-family-system: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
                         Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Font Sizes */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.85rem;    /* 13.6px */
  --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 Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  --line-height-loose: 2;

  /* ========================================================================
     TRANSITIONS & ANIMATIONS
     ======================================================================== */
  --transition-fast: 0.15s ease;
  --transition-base: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.4s ease;

  --transition-all: all 0.3s ease;
  --transition-colors: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  --transition-transform: transform 0.2s ease;
  --transition-opacity: opacity 0.2s ease;

  /* ========================================================================
     Z-INDEX SCALE
     ======================================================================== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;

  /* ========================================================================
     LAYOUT
     ======================================================================== */
  --container-max-width: 1200px;
  --container-padding: 20px;

  /* Breakpoints (for reference in media queries) */
  --breakpoint-mobile: 480px;
  --breakpoint-tablet: 768px;
  --breakpoint-desktop: 1024px;
  --breakpoint-wide: 1280px;

  /* ========================================================================
     COMPONENT-SPECIFIC
     ======================================================================== */

  /* Buttons */
  --btn-padding-y: 10px;
  --btn-padding-x: 20px;
  --btn-padding-y-sm: 6px;
  --btn-padding-x-sm: 12px;
  --btn-padding-y-lg: 14px;
  --btn-padding-x-lg: 28px;

  /* Cards */
  --card-padding: 25px;
  --card-padding-sm: 16px;
  --card-padding-lg: 30px;
  --card-border-width: 1px;

  /* Forms */
  --input-padding-y: 10px;
  --input-padding-x: 15px;
  --input-border-width: 1px;
  --input-focus-ring: 0 0 0 3px rgba(59, 130, 246, 0.1);

  /* Navigation */
  --nav-height: 70px;
  --nav-padding: 15px;
}

/* ========================================================================
   DARK MODE SUPPORT (Future enhancement)
   ======================================================================== */
@media (prefers-color-scheme: dark) {
  /* Dark mode variables can be defined here when needed */
}
