/* ============================================
   VARIÁVEIS GLOBAIS DO SISTEMA
   Cores, espaçamentos, tipografia e transições
   ============================================ */

:root {
    /* ===== CORES PRINCIPAIS ===== */
    --primary: #0d6efd;
    --primary-light: #e7f1ff;
    --primary-dark: #0056b3;
    --primary-darker: #003d82;
    
    --secondary: #6c757d;
    --secondary-light: #e9ecef;
    --secondary-dark: #495057;
    
    /* ===== CORES DE ESTADO ===== */
    --success: #198754;
    --success-light: #d1fadf;
    --success-dark: #027a48;
    
    --danger: #dc3545;
    --danger-light: #fee4e2;
    --danger-dark: #b42318;
    
    --warning: #ffc107;
    --warning-light: #fef0c7;
    --warning-dark: #b54708;
    
    --info: #0dcaf0;
    --info-light: #d1e9ff;
    --info-dark: #026aa2;
    
    /* ===== CORES NEUTRAS (Design System) ===== */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d0d5dd;
    --gray-400: #98a2b3;
    --gray-500: #667085;
    --gray-600: #475467;
    --gray-700: #344054;
    --gray-800: #1f2937;
    --gray-900: #101828;
    --black: #000000;
    
    /* ===== CORES DE TEXTO ===== */
    --text-primary: #1f2937;
    --text-secondary: #667085;
    --text-muted: #98a2b3;
    --text-disabled: #d0d5dd;
    
    /* ===== BACKGROUNDS ===== */
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    
    /* ===== BORDERS ===== */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-dark: #d0d5dd;
    
    /* ===== TIPOGRAFIA ===== */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-family-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    
    --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-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    
    /* ===== ESPAÇAMENTO ===== */
    --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 */
    
    /* ===== BORDER RADIUS ===== */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;       /* 16px */
    --radius-2xl: 1.5rem;    /* 24px */
    --radius-full: 9999px;
    
    /* ===== SOMBRAS ===== */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* ===== TRANSIÇÕES ===== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ===== Z-INDEX ===== */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ===== TEMAS POR TIPO DE USUÁRIO ===== */
/* Mantém retrocompatibilidade mas padroniza para azul */
:root {
    /* Tema padrão (azul) */
    --theme-default: var(--primary);
    
    /* Admin - Azul escuro profissional */
    --theme-admin: #1e40af;
    --theme-admin-light: #dbeafe;
    --theme-admin-dark: #1e3a8a;
    
    /* Empregador - Azul corporativo */
    --theme-employer: var(--primary);
    --theme-employer-light: var(--primary-light);
    --theme-employer-dark: var(--primary-dark);
    
    /* Candidato - Azul vibrante */
    --theme-candidate: #2563eb;
    --theme-candidate-light: #dbeafe;
    --theme-candidate-dark: #1d4ed8;
    
    /* Anunciante - Azul suave */
    --theme-advertiser: #0ea5e9;
    --theme-advertiser-light: #e0f2fe;
    --theme-advertiser-dark: #0284c7;
}
.theme-candidate {
    --primary-color: var(--theme-candidate);
    --primary-light: var(--theme-candidate-light);
    --primary-dark: var(--theme-candidate-dark);
}

/* Tema Anunciante */
[data-theme="advertiser"],
.theme-advertiser {
    --primary-color: var(--theme-advertiser);
    --primary-light: var(--theme-advertiser-light);
    --primary-dark: var(--theme-advertiser-dark);
}
