/* ==========================================
   SPONSOR DASHBOARD DESIGN TOKENS
   Version: 1.0.0
   Last Updated: October 3, 2025
   
   This file contains all design variables for the
   sponsor dashboard. Change values here to update
   the entire design system.
   ========================================== */

:root {
  /* ==========================================
     PRIMARY COLORS - Navy Blue
     Used for: Structure, headers, borders
     ========================================== */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;

  /* ==========================================
     SUCCESS COLORS - Green
     Used for: CTAs, positive actions, growth
     ========================================== */
  --color-success-50: #ecfdf5;
  --color-success-100: #d1fae5;
  --color-success-200: #a7f3d0;
  --color-success-300: #6ee7b7;
  --color-success-400: #34d399;
  --color-success-500: #10b981;
  --color-success-600: #059669;
  --color-success-700: #047857;
  --color-success-800: #065f46;
  --color-success-900: #064e3b;

  /* ==========================================
     NEUTRAL COLORS - Grays
     Used for: Text, borders, 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;

  /* ==========================================
     SEMANTIC COLORS
     Used for: Warnings, errors, info states
     ========================================== */
  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-500: #f59e0b;
  --color-warning-600: #d97706;
  --color-warning-700: #b45309;
  --color-warning-800: #92400e;

  --color-error-50: #fef2f2;
  --color-error-100: #fee2e2;
  --color-error-500: #ef4444;
  --color-error-600: #dc2626;
  --color-error-700: #b91c1c;

  --color-info-50: #eff6ff;
  --color-info-100: #dbeafe;
  --color-info-500: #0ea5e9;
  --color-info-600: #0284c7;
  --color-info-700: #0369a1;

  /* ==========================================
     SEMANTIC ASSIGNMENTS
     Map colors to purposes
     ========================================== */
  --color-text-primary: var(--color-gray-900);
  --color-text-secondary: var(--color-gray-700);
  --color-text-muted: var(--color-gray-500);
  /* Hints / placeholders only — lighter than body text so it reads as “not committed input yet” */
  --color-text-placeholder: var(--color-gray-400);
  --color-text-inverse: #ffffff;
  
  --color-background: #ffffff;
  --color-background-muted: var(--color-gray-50);
  --color-background-subtle: var(--color-gray-100);
  /* Page shell (dashboard + results shared look) */
  --color-background-page: #f8fafc;

  --color-border: var(--color-gray-200);
  --color-border-strong: var(--color-gray-300);

  /* ==========================================
     GRADIENTS
     Used for: Headers, buttons, accents
     ========================================== */
  --gradient-header: linear-gradient(135deg, var(--color-primary-700) 0%, var(--color-primary-500) 100%);
  --gradient-header-webkit: -webkit-linear-gradient(135deg, var(--color-primary-700) 0%, var(--color-primary-500) 100%);
  --gradient-header-moz: -moz-linear-gradient(135deg, var(--color-primary-700) 0%, var(--color-primary-500) 100%);
  
  --gradient-cta: linear-gradient(135deg, var(--color-success-500) 0%, var(--color-success-600) 100%);
  --gradient-cta-webkit: -webkit-linear-gradient(135deg, var(--color-success-500) 0%, var(--color-success-600) 100%);
  --gradient-cta-moz: -moz-linear-gradient(135deg, var(--color-success-500) 0%, var(--color-success-600) 100%);
  
  --gradient-cta-hover: linear-gradient(135deg, var(--color-success-600) 0%, var(--color-success-700) 100%);
  --gradient-cta-hover-webkit: -webkit-linear-gradient(135deg, var(--color-success-600) 0%, var(--color-success-700) 100%);
  
  --gradient-card-accent: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-400) 100%);
  
  --gradient-text: linear-gradient(135deg, var(--color-primary-700) 0%, var(--color-primary-500) 100%);

  /* ==========================================
     SPACING SCALE
     Used for: Margins, padding, gaps
     ========================================== */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  
  /* Semantic spacing names */
  --space-xs: var(--space-2);
  --space-sm: var(--space-3);
  --space-md: var(--space-4);
  --space-lg: var(--space-6);
  --space-xl: var(--space-8);
  --space-2xl: var(--space-12);

  /* ==========================================
     TYPOGRAPHY SCALE
     Used for: Font sizes, weights, line heights
     ========================================== */
  --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 */
  /* Page title (dashboard + results shared) */
  --font-size-page-title: 2.5rem;

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

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

  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.025em;

  /* ==========================================
     BORDER RADIUS
     Used for: Rounded corners
     ========================================== */
  --radius-none: 0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ==========================================
     SHADOWS
     Used for: Elevation, depth
     ========================================== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 32px rgba(0, 0, 0, 0.15);
  
  /* Colored shadows for specific elements */
  --shadow-primary: 0 4px 20px rgba(29, 78, 216, 0.15);
  --shadow-primary-lg: 0 8px 32px rgba(29, 78, 216, 0.2);
  --shadow-success: 0 4px 14px rgba(16, 185, 129, 0.3);
  --shadow-success-lg: 0 6px 20px rgba(16, 185, 129, 0.4);

  /* ==========================================
     TRANSITIONS
     Used for: Animations, hover effects
     ========================================== */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;
  --transition-slower: 500ms ease;

  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* ==========================================
     Z-INDEX SCALE
     Used for: Layering elements
     ========================================== */
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1100;
  --z-fixed: 1200;
  --z-modal-backdrop: 1300;
  --z-modal: 1400;
  --z-popover: 1500;
  --z-tooltip: 1600;

  /* ==========================================
     LAYOUT
     Used for: Container widths, breakpoints
     ========================================== */
  --container-max-width: 1200px;
  --container-padding: var(--space-lg);
  
  /* Breakpoints (for reference in media queries) */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;

  /* Wide container (campaign results + campaign dashboard alignment) */
  --container-wide: 1400px;

  /* Enterprise UX — hierarchy & surfaces (shared results / dashboard) */
  --ux-border-hairline: 1px solid var(--color-gray-100);
  --ux-section-gap: var(--space-8);
  --ux-stack-gap: var(--space-5);
  --ux-tier-1: var(--font-size-lg);
  --ux-tier-2: var(--font-size-sm);
  --ux-surface-0: #ffffff;
  --ux-surface-muted: var(--color-background-muted);
}

/* ==========================================
   RESPONSIVE ADJUSTMENTS
   Reduce spacing on smaller screens
   ========================================== */

@media (max-width: 768px) {
  :root {
    --space-lg: var(--space-4);  /* 24px -> 16px */
    --space-xl: var(--space-6);  /* 32px -> 24px */
    --space-2xl: var(--space-8); /* 48px -> 32px */
    
    --font-size-3xl: 1.5rem;     /* 30px -> 24px */
    --font-size-4xl: 1.875rem;   /* 36px -> 30px */
    
    --container-padding: var(--space-4);
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: var(--space-3);  /* 16px -> 12px */
    --space-lg: var(--space-3);  /* 16px -> 12px */
    --space-xl: var(--space-5);  /* 24px -> 20px */
    
    --font-size-2xl: 1.25rem;    /* 24px -> 20px */
    --font-size-3xl: 1.5rem;     /* 24px -> 24px */
  }
}

/* ==========================================
   ACCESSIBILITY
   Support for user preferences
   ========================================== */

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  :root {
    --transition-fast: 0.01ms;
    --transition-base: 0.01ms;
    --transition-slow: 0.01ms;
    --transition-slower: 0.01ms;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --color-border: var(--color-gray-900);
    --color-border-strong: var(--color-gray-900);
    --color-text-placeholder: var(--color-gray-600);
  }
}

/* ==========================================
   DARK MODE (Future Enhancement)
   Uncomment when ready to implement
   ========================================== */

/*
@media (prefers-color-scheme: dark) {
  :root {
    --color-text-primary: #f9fafb;
    --color-text-secondary: #e5e7eb;
    --color-text-muted: #9ca3af;
    
    --color-background: #111827;
    --color-background-muted: #1f2937;
    --color-background-subtle: #374151;
    
    --color-border: #374151;
    --color-border-strong: #4b5563;
    
    --color-primary-700: #60a5fa;
    --color-primary-500: #93c5fd;
    
    --gradient-header: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
  }
}
*/


