/**
 * SUISSETALENT CSS VARIABLES - UNIFIED SYSTEM
 * Single source of truth for all CSS variables
 * Loaded FIRST to ensure availability across all components
 */

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

  /* ===== TYPOGRAPHY SYSTEM ===== */
  --st-font-family-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --st-font-size-xs: 0.75rem;     /* 12px */
  --st-font-size-sm: 0.875rem;    /* 14px */
  --st-font-size-base: 1rem;      /* 16px */
  --st-font-size-lg: 1.125rem;    /* 18px */
  --st-font-size-xl: 1.25rem;     /* 20px */
  --st-font-size-2xl: 1.5rem;     /* 24px */
  --st-font-size-3xl: 1.875rem;   /* 30px */
  --st-font-size-4xl: 2.25rem;    /* 36px */
  --st-font-size-5xl: 3rem;       /* 48px */
  
  --st-font-weight-normal: 400;
  --st-font-weight-medium: 500;
  --st-font-weight-semibold: 600;
  --st-font-weight-bold: 700;
  
  --st-line-height-tight: 1.25;
  --st-line-height-normal: 1.5;
  --st-line-height-relaxed: 1.625;

  /* ===== COLOR SYSTEM ===== */
  /* Brand Colors */
  --st-brand-primary: #ea8f7f;
  --st-brand-primary-light: #f4b5a9;
  --st-brand-primary-dark: #d76655;
  
  /* Gray Scale */
  --st-gray-50: #f8fafc;
  --st-gray-100: #f1f5f9;
  --st-gray-200: #e2e8f0;
  --st-gray-300: #cbd5e1;
  --st-gray-400: #94a3b8;
  --st-gray-500: #64748b;
  --st-gray-600: #475569;
  --st-gray-700: #334155;
  --st-gray-800: #1e293b;
  --st-gray-900: #0f172a;
  
  /* Semantic Colors */
  --st-success: #22c55e;
  --st-warning: #f59e0b;
  --st-danger: #ef4444;
  --st-info: #3b82f6;
  
  /* Legacy Compatibility Colors */
  --color-primary: var(--st-brand-primary);
  --color-primary-dark: var(--st-brand-primary-dark);
  --color-primary-light: var(--st-brand-primary-light);
  --color-gray-50: var(--st-gray-50);
  --color-gray-100: var(--st-gray-100);
  --color-gray-200: var(--st-gray-200);
  --color-gray-300: var(--st-gray-300);
  --color-gray-400: #bdbdbd;
  --color-gray-500: #9e9e9e;
  --color-gray-600: var(--st-gray-600);
  --color-gray-700: var(--st-gray-700);
  --color-gray-800: var(--st-gray-800);
  --color-gray-900: var(--st-gray-900);

  /* ===== LAYOUT SYSTEM ===== */
  --container-max-width: 1400px;
  --st-container-padding: var(--st-space-4);
  
  /* ===== BORDER RADIUS ===== */
  --st-border-radius: 0.375rem;      /* 6px */
  --st-border-radius-lg: 0.5rem;     /* 8px */
  --st-border-radius-xl: 0.75rem;    /* 12px */
  --st-border-radius-2xl: 1rem;      /* 16px */
  --st-border-radius-full: 9999px;
  
  /* Legacy compatibility */
  --radius: var(--st-border-radius);
  --radius-sm: 0.25rem;
  --radius-md: var(--st-border-radius-lg);
  --radius-lg: var(--st-border-radius-xl);
  --radius-xl: var(--st-border-radius-2xl);
  --radius-full: var(--st-border-radius-full);

  /* ===== SHADOWS ===== */
  --st-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --st-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --st-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --st-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  
  /* Legacy compatibility */
  --shadow-sm: var(--st-shadow-sm);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: var(--st-shadow-md);
  --shadow-lg: var(--st-shadow-lg);

  /* ===== TRANSITIONS ===== */
  --st-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --st-transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --st-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Legacy compatibility */
  --transition: var(--st-transition-normal);
  --transition-fast: var(--st-transition-fast);
  --transition-slow: var(--st-transition-slow);

  /* ===== RESPONSIVE BREAKPOINTS (for reference) ===== */
  /* These are used in media queries, not as CSS variables */
  /* sm: 640px, md: 768px, lg: 1024px, xl: 1280px, 2xl: 1536px */

  /* ===== LEGACY SPACE ALIASES ===== */
  --space-1: var(--st-space-1);
  --space-2: var(--st-space-2);
  --space-3: var(--st-space-3);
  --space-4: var(--st-space-4);
  --space-5: var(--st-space-5);
  --space-6: var(--st-space-6);
  --space-8: var(--st-space-8);
  --space-10: var(--st-space-10);
  --space-12: var(--st-space-12);
  --space-16: var(--st-space-16);
  --space-20: var(--st-space-20);

  /* ===== FONT FAMILY ALIASES ===== */
  --font-family: "Roboto Regular", var(--st-font-family-primary);
  --font-family-light: "Roboto Light", var(--st-font-family-primary);
  --font-family-thin: "Roboto Thin", var(--st-font-family-primary);
  
  /* ===== MOBILE VIEWPORT ===== */
  --vh: 1vh;
}

/* ===== RESPONSIVE CONTAINER SYSTEM ===== */
.st-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding-left: var(--st-container-padding);
  padding-right: var(--st-container-padding);
}

@media (min-width: 640px) {
  .st-container {
    padding-left: var(--st-space-6);
    padding-right: var(--st-space-6);
  }
}

@media (min-width: 1024px) {
  .st-container {
    padding-left: var(--st-space-8);
    padding-right: var(--st-space-8);
  }
}

@media (min-width: 1440px) {
  .st-container {
    max-width: 70vw;
    min-width: 1200px;
  }
}