/**
 * Variáveis CSS do Feed Jurídico
 * Centraliza todas as cores, tamanhos e configurações visuais
 */

:root {
    /* === CORES PRINCIPAIS === */
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --primary-light: #ebf3fd;
    
    --secondary-color: #2ecc71;
    --secondary-hover: #27ae60;
    --secondary-light: #e8f8f0;
    
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #3498db;
    
    /* === CORES DE FUNDO === */
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --surface-hover: #f8f9fa;
    --overlay-color: rgba(0, 0, 0, 0.5);
    
    /* === CORES DE TEXTO === */
    --text-color: #2c3e50;
    --text-muted: #6c757d;
    --text-light: #95a5a6;
    --text-white: #ffffff;
    
    /* === CORES DE BORDA === */
    --border-color: #dee2e6;
    --border-light: #e9ecef;
    --border-dark: #adb5bd;
    
    /* === TIPOGRAFIA === */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    
    --font-weight-light: 300;
    --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 === */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* === BORDAS E RAIOS === */
    --border-radius-sm: 0.375rem;
    --border-radius: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-full: 9999px;
    
    --border-width: 1px;
    --border-width-thick: 2px;
    
    /* === SOMBRAS === */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 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);
    
    /* === TRANSIÇÕES === */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* === Z-INDEX === */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
    
    /* === BREAKPOINTS (para uso em JS) === */
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --breakpoint-xxl: 1400px;
    
    /* === CORES ESPECÍFICAS DO FEED JURÍDICO === */
    --law-color: #6c757d;
    --article-color: #3498db;
    --question-color: #27ae60;
    --jurisprudence-color: #17a2b8;
    
    /* === SIDEBAR === */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 60px;
    
    /* === HEADER === */
    --header-height: 70px;
    
    /* === CARDS === */
    --card-padding: var(--spacing-lg);
    --card-border-radius: var(--border-radius-lg);
    --card-shadow: var(--shadow-md);
    
    /* === BUTTONS === */
    --btn-padding-y: 0.5rem;
    --btn-padding-x: 1rem;
    --btn-border-radius: var(--border-radius);
    
    /* === FORMS === */
    --input-padding-y: 0.75rem;
    --input-padding-x: 1rem;
    --input-border-radius: var(--border-radius);
    --input-border-color: var(--border-color);
    --input-focus-border-color: var(--primary-color);
    
    /* === ANIMAÇÕES === */
    --animation-fade-in: fadeIn 0.3s ease-in-out;
    --animation-slide-up: slideUp 0.3s ease-out;
    --animation-bounce: bounce 0.6s ease-in-out;
}

/* === TEMA ESCURO === */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1a1a;
        --surface-color: #2d2d2d;
        --surface-hover: #3d3d3d;
        --text-color: #ffffff;
        --text-muted: #b0b0b0;
        --text-light: #888888;
        --border-color: #404040;
        --border-light: #505050;
        --overlay-color: rgba(255, 255, 255, 0.1);
    }
}

/* === ANIMAÇÕES === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0, 0, 0);
    }
    40%, 43% {
        transform: translate3d(0, -10px, 0);
    }
    70% {
        transform: translate3d(0, -5px, 0);
    }
    90% {
        transform: translate3d(0, -2px, 0);
    }
}