/**
 * Design System MyContentGPT - Tokens Globais
 * Baseado no Design System da Landing Page
 * Aplicado em todo o sistema (Landing, Dashboards, Admin)
 */

:root {
    /* ============================================
       CORES PRIMÁRIAS
       ============================================ */
    
    /* Azul Tecnológico Principal */
    --ds-primary: #0066FF;
    --ds-primary-rgb: 0, 102, 255;
    --ds-primary-dark: #0052CC;
    --ds-primary-light: #3385FF;
    --ds-primary-lighter: #66A3FF;
    
    /* Roxo Profundo */
    --ds-purple: #6B2E9A;
    --ds-purple-rgb: 107, 46, 154;
    --ds-purple-dark: #552578;
    --ds-purple-light: #8552B3;
    
    /* Branco */
    --ds-white: #FFFFFF;
    --ds-white-rgb: 255, 255, 255;
    
    /* ============================================
       CORES SECUNDÁRIAS E ACENTOS
       ============================================ */
    
    /* Verde IA */
    --ds-green: #00D9A3;
    --ds-green-rgb: 0, 217, 163;
    --ds-green-dark: #00B087;
    --ds-green-light: #33E1B8;
    
    /* Ciano Elétrico */
    --ds-cyan: #00C2FF;
    --ds-cyan-rgb: 0, 194, 255;
    --ds-cyan-dark: #009BCC;
    --ds-cyan-light: #33CEFF;
    
    /* Rosa Vibrante */
    --ds-pink: #FF3D71;
    --ds-pink-rgb: 255, 61, 113;
    --ds-pink-dark: #CC2F5A;
    --ds-pink-light: #FF6694;
    
    /* Laranja Energia */
    --ds-orange: #FF6B35;
    --ds-orange-rgb: 255, 107, 53;
    --ds-orange-dark: #CC552A;
    --ds-orange-light: #FF8C66;
    
    /* Amarelo Insight */
    --ds-yellow: #FFD93D;
    --ds-yellow-rgb: 255, 217, 61;
    --ds-yellow-dark: #CCAD30;
    --ds-yellow-light: #FFE266;
    
    /* ============================================
       CORES DE BACKGROUND
       ============================================ */
    
    --ds-bg-gray: #F8F9FA;
    --ds-bg-blue: #F0F7FF;
    --ds-bg-purple: #F5F0FF;
    --ds-bg-green: #E6FFF9;
    
    /* ============================================
       CORES DE TEXTO
       ============================================ */
    
    --ds-text-primary: #1A1A1A;
    --ds-text-secondary: #6B7280;
    --ds-text-tertiary: #9CA3AF;
    
    /* ============================================
       CORES DE STATUS (Para Dashboards)
       ============================================ */
    
    /* Success */
    --ds-status-success: var(--ds-green);
    --ds-status-success-bg: rgba(0, 217, 163, 0.1);
    
    /* Info */
    --ds-status-info: var(--ds-cyan);
    --ds-status-info-bg: rgba(0, 194, 255, 0.1);
    
    /* Warning */
    --ds-status-warning: var(--ds-yellow);
    --ds-status-warning-bg: rgba(255, 217, 61, 0.1);
    
    /* Error/Danger */
    --ds-status-error: var(--ds-pink);
    --ds-status-error-bg: rgba(255, 61, 113, 0.1);
    
    /* Neutral */
    --ds-status-neutral: var(--ds-text-secondary);
    --ds-status-neutral-bg: rgba(107, 114, 128, 0.1);
    
    /* ============================================
       TIPOGRAFIA
       ============================================ */
    
    --ds-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ds-font-family-alt: 'Poppins', sans-serif;
    
    /* Pesos */
    --ds-font-weight-normal: 400;
    --ds-font-weight-medium: 500;
    --ds-font-weight-semibold: 600;
    --ds-font-weight-bold: 700;
    --ds-font-weight-extrabold: 800;
    
    /* Tamanhos - Display */
    --ds-font-size-display: 64px;
    --ds-font-size-display-mobile: 40px;
    
    /* Tamanhos - Headings */
    --ds-font-size-h1: 48px;
    --ds-font-size-h1-mobile: 32px;
    --ds-font-size-h2: 36px;
    --ds-font-size-h2-mobile: 28px;
    --ds-font-size-h3: 28px;
    --ds-font-size-h3-mobile: 24px;
    --ds-font-size-h4: 24px;
    --ds-font-size-h5: 20px;
    
    /* Tamanhos - Body */
    --ds-font-size-body-large: 18px;
    --ds-font-size-body: 16px;
    --ds-font-size-body-small: 14px;
    --ds-font-size-caption: 12px;
    
    /* Line Heights */
    --ds-line-height-tight: 1.1;
    --ds-line-height-normal: 1.2;
    --ds-line-height-relaxed: 1.3;
    --ds-line-height-loose: 1.4;
    --ds-line-height-body: 1.6;
    
    /* ============================================
       ESPAÇAMENTO
       ============================================ */
    
    --ds-space-1: 4px;
    --ds-space-2: 8px;
    --ds-space-3: 12px;
    --ds-space-4: 16px;
    --ds-space-5: 20px;
    --ds-space-6: 24px;
    --ds-space-8: 32px;
    --ds-space-10: 40px;
    --ds-space-12: 48px;
    --ds-space-16: 64px;
    --ds-space-20: 80px;
    --ds-space-24: 96px;
    --ds-space-32: 128px;
    
    /* ============================================
       BORDER RADIUS
       ============================================ */
    
    --ds-radius-sm: 4px;
    --ds-radius-md: 8px;
    --ds-radius-lg: 12px;
    --ds-radius-xl: 16px;
    --ds-radius-2xl: 24px;
    --ds-radius-full: 9999px;
    
    /* ============================================
       SOMBRAS
       ============================================ */
    
    --ds-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --ds-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --ds-shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --ds-shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
    --ds-shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25);
    
    /* ============================================
       TRANSIÇÕES
       ============================================ */
    
    --ds-transition-fast: 150ms;
    --ds-transition-base: 300ms;
    --ds-transition-slow: 500ms;
    --ds-transition-easing: ease-in-out;
    --ds-transition-easing-out: ease-out;
    --ds-transition-easing-in: ease-in;
    --ds-transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* ============================================
       Z-INDEX
       ============================================ */
    
    --ds-z-dropdown: 1000;
    --ds-z-sticky: 1020;
    --ds-z-fixed: 1030;
    --ds-z-modal-backdrop: 1040;
    --ds-z-modal: 1050;
    --ds-z-popover: 1060;
    --ds-z-tooltip: 1070;
    
    /* ============================================
       BREAKPOINTS (para referência em JS)
       ============================================ */
    
    --ds-breakpoint-xs: 480px;
    --ds-breakpoint-sm: 767px;
    --ds-breakpoint-md: 1023px;
    --ds-breakpoint-lg: 1279px;
    --ds-breakpoint-xl: 1535px;
}

/* ============================================
   TIPOGRAFIA BASE GLOBAL
   ============================================ */

body {
    font-family: var(--ds-font-family);
    color: var(--ds-text-primary);
    line-height: var(--ds-line-height-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Headings */
h1, .h1 {
    font-size: var(--ds-font-size-h1);
    font-weight: var(--ds-font-weight-bold);
    line-height: var(--ds-line-height-normal);
    color: var(--ds-text-primary);
}

h2, .h2 {
    font-size: var(--ds-font-size-h2);
    font-weight: var(--ds-font-weight-bold);
    line-height: var(--ds-line-height-relaxed);
    color: var(--ds-text-primary);
}

h3, .h3 {
    font-size: var(--ds-font-size-h3);
    font-weight: var(--ds-font-weight-semibold);
    line-height: var(--ds-line-height-loose);
    color: var(--ds-text-primary);
}

h4, .h4 {
    font-size: var(--ds-font-size-h4);
    font-weight: var(--ds-font-weight-semibold);
    line-height: var(--ds-line-height-loose);
    color: var(--ds-text-primary);
}

h5, .h5 {
    font-size: var(--ds-font-size-h5);
    font-weight: var(--ds-font-weight-semibold);
    line-height: var(--ds-line-height-loose);
    color: var(--ds-text-primary);
}

/* Body text */
p, .body {
    font-size: var(--ds-font-size-body);
    line-height: var(--ds-line-height-body);
    color: var(--ds-text-primary);
}

/* Responsividade tipográfica */
@media (max-width: 768px) {
    h1, .h1 {
        font-size: var(--ds-font-size-h1-mobile);
    }
    
    h2, .h2 {
        font-size: var(--ds-font-size-h2-mobile);
    }
    
    h3, .h3 {
        font-size: var(--ds-font-size-h3-mobile);
    }
}

/* ============================================
   COMPATIBILIDADE COM SISTEMA EXISTENTE
   ============================================ */

/* Mapear variáveis antigas para novas (manter compatibilidade) */
:root {
    /* Cores principais antigas */
    --co-primary: var(--ds-primary);
    --co-support: var(--ds-purple);
    
    /* Status colors */
    --ds-success: var(--ds-green);
    --ds-error: var(--ds-pink);
    --ds-warning: var(--ds-yellow);
    --ds-info: var(--ds-cyan);
}

