/**
 * ==========================================================================
 * ELLA IMÓVEIS - DESIGN SYSTEM FOUNDATION (tokens.css)
 * ==========================================================================
 * Arquivo central de tokens de design: paleta semântica, escala de 
 * espaçamentos, tipografia, raios de borda, sombras e transições.
 */

:root {
    /* ------------------------------------------------------------------------
     1. PALETA DE CORES INSTITUCIONAL & SEMÂNTICA
     ------------------------------------------------------------------------ */
    /* Paleta Vinho (Brand Primary) */
    --primary-50: #FAF4F5;
    --primary-100: #F5E8EA;
    --primary-200: #ECD3D7;
    --primary-300: #DFB3BA;
    --primary-400: #CA8692;
    --primary-500: #8E3F4E;
    --primary-600: #6E2C38;
    --primary: #541b21;
    /* Vinho Nobre Institucional */
    --primary-dark: #38131B;
    /* Vinho Profundo */
    --primary-deep: #240910;
    /* Vinho Quase Preto */
    --primary-header: #2B0A12;
    --primary-card: #300B14;
    --primary-dropdown: #330B15;

    /* Paleta Dourada (Brand Accent / Secondary) */
    --secondary-light: #E2BD86;
    --secondary: #C99757;
    /* Dourado Clássico */
    --secondary-hover: #DBA867;
    --secondary-dark: #8F6327;
    /* Dourado com alto contraste para texto em fundos claros */
    --secondary-badge: #D4A359;
    --secondary-accent: #FFD88A;

    /* Cores de Feedback do Sistema */
    --accent: #C99757;
    --success: #059669;
    --warning: #D97706;
    --danger: #DC2626;
    --dark: #1A050B;
    --info: #3B82F6;

    /* Badges de Propriedades (Cores Fixas Oficiais) */
    --badge-purpose-bg: #DC2626;
    /* Vermelho Danger */
    --badge-purpose-text: #FFFFFF;

    --badge-venda-bg: #DC2626;
    /* Danger */
    --badge-venda-text: #FFFFFF;
    --badge-venda-border: rgba(255, 255, 255, 0.2);

    --badge-aluguel-bg: #000000;
    /* Black */
    --badge-aluguel-text: #FFFFFF;
    --badge-aluguel-border: rgba(255, 255, 255, 0.15);

    --badge-destaque-bg: #D97706;
    /* Warning */
    --badge-destaque-text: #FFFFFF;
    /* Texto White */
    --badge-destaque-border: rgba(255, 255, 255, 0.3);
    --badge-destaque-shadow: 0 2px 10px rgba(217, 119, 6, 0.35);

    --badge-temporada-bg: #C25E19;
    /* Terracota / Âmbar */
    --badge-temporada-text: #FFFFFF;
    --badge-temporada-border: rgba(255, 255, 255, 0.2);

    --badge-lancamento-bg: #1A4B8A;
    /* Azul Safira Nobre */
    --badge-lancamento-text: #FFFFFF;
    --badge-lancamento-border: rgba(255, 255, 255, 0.2);

    --badge-oportunidade-bg: #6E2C38;
    /* Vinho Rosé / Rubi Nobre */
    --badge-oportunidade-text: #FFFFFF;
    --badge-oportunidade-border: rgba(255, 255, 255, 0.2);

    --badge-exclusivo-bg: #059669;
    /* Success */
    --badge-exclusivo-text: #FFFFFF;
    --badge-exclusivo-border: rgba(255, 255, 255, 0.2);
    --badge-exclusivo-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);

    /* Badges de Categoria, Código e Utilitários */
    --badge-pill-light-bg: #F6EAEB;
    --badge-pill-light-text: #541B21;
    --badge-pill-light-border: #DFB3BA;

    --card-code-bg: transparent;
    --card-code-text: #a8a29e;
    --card-code-border: transparent;

    --badge-gold-soft-bg: #F7EFE4;
    --badge-gold-soft-text: #240910;
    --badge-gold-soft-border: rgba(201, 151, 87, 0.50);

    --badge-emerald-soft-bg: #E8F7F0;
    --badge-emerald-soft-text: #065F46;
    --badge-emerald-soft-border: #B8E4CE;

    --badge-navy-soft-bg: #EBF2FA;
    --badge-navy-soft-text: #1A4B8A;
    --badge-navy-soft-border: #C4D7ED;

    /* Aliases de compatibilidade para tokens de cor legados */
    --color-gold: #C99757;
    --color-gold-hover: #DBA867;
    --color-gold-dark: #8F6327;
    --color-wine-deep: #240910;
    --color-wine-card: #300B14;
    --color-wine-btn: #541B21;
    --color-wine-btn-hover: #38131B;
    --color-sand-bg: #FAF7F5;

    /* Superfícies e Fundos */
    --bg-page: #FAF6F2;
    /* Sand Canvas */
    --bg-surface-page: #FAF6F2;
    --bg-surface: #FFFFFF;
    --bg-surface-alt: #F4ECE3;
    --bg-card: #FFFFFF;
    --bg-dark: #1A050B;

    /* Bordas e Linhas Divisórias */
    --border-subtle: rgba(36, 9, 16, 0.08);
    --border-gold: rgba(201, 151, 87, 0.35);
    --border-light: #EDE4DC;
    --border-glass: rgba(255, 255, 255, 0.12);
    --gradient-border-gold: linear-gradient(90deg, transparent 0%, rgba(195, 150, 79, 0.35) 12%, var(--secondary) 28%, var(--secondary-accent) 50%, var(--secondary) 72%, rgba(195, 150, 79, 0.35) 88%, transparent 100%);

    /* Cores de Texto */
    --text-primary: #1A050B;
    --text-secondary: #574F4A;
    --text-muted: #8C827A;
    --text-inverse: #FFFFFF;
    --text-inverse-muted: rgba(255, 255, 255, 0.7);
    --text-gold: #C99757;
    --text-gold-readable: #8F6327;

    /* ------------------------------------------------------------------------
     2. TIPOGRAFIA & ESCALA TIPOGRÁFICA
     ------------------------------------------------------------------------ */
    --font-family-base: 'Poppins', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-family-poppins: 'Poppins', sans-serif;
    --font-family-jakarta: 'Plus Jakarta Sans', sans-serif;

    --font-size-2xs: 0.6875rem;
    /* 11px */
    --font-size-xs: 0.75rem;
    /* 12px */
    --font-size-sm: 0.875rem;
    /* 14px */
    --font-size-base: 1rem;
    /* 16px */
    --font-size-md: 1.0625rem;
    /* 17px */
    --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 */

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

    --line-height-none: 1;
    --line-height-tight: 1.15;
    --line-height-snug: 1.3;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.625;
    --line-height-loose: 1.75;

    /* ------------------------------------------------------------------------
     3. ESCALA DE ESPAÇAMENTO CONSISTENTE (Múltiplos de 4px / 8px)
     ------------------------------------------------------------------------ */
    --space-0-5: 0.125rem;
    /* 2px */
    --space-1: 0.25rem;
    /* 4px */
    --space-1-5: 0.375rem;
    /* 6px */
    --space-2: 0.5rem;
    /* 8px */
    --space-2-5: 0.625rem;
    /* 10px */
    --space-3: 0.75rem;
    /* 12px */
    --space-3-5: 0.875rem;
    /* 14px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-7: 1.75rem;
    /* 28px */
    --space-8: 2rem;
    /* 32px */
    --space-9: 2.25rem;
    /* 36px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-14: 3.5rem;
    /* 56px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */

    /* ------------------------------------------------------------------------
     4. BORDER RADIUS (Arredondamentos)
     ------------------------------------------------------------------------ */
    --radius-xs: 0.125rem;
    /* 2px */
    --radius-sm: 0.25rem;
    /* 4px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */
    --radius-2xl: 1.5rem;
    /* 24px */
    --radius-3xl: 2rem;
    /* 32px */
    --radius-full: 9999px;

    /* Tokens Semânticos de Componentes */
    --radius-btn: 9999px;
    --radius-card: 1rem;

    /* ------------------------------------------------------------------------
     5. SOMBRAS EM CAMADAS & ELEVAÇÃO (Elevation Tokens)
     ------------------------------------------------------------------------ */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 6px rgba(36, 9, 16, 0.04);
    --shadow-md: 0 8px 20px -4px rgba(36, 9, 16, 0.08);
    --shadow-lg: 0 16px 32px -8px rgba(36, 9, 16, 0.12);
    --shadow-xl: 0 24px 48px -12px rgba(36, 9, 16, 0.18);
    --shadow-2xl: 0 32px 64px -16px rgba(18, 4, 8, 0.35);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);

    /* Sombras Especializadas do Tema */
    --shadow-gold-sm: 0 2px 8px rgba(201, 151, 87, 0.25);
    --shadow-gold-md: 0 4px 16px rgba(201, 151, 87, 0.35);
    --shadow-gold-lg: 0 8px 24px rgba(201, 151, 87, 0.45);
    --shadow-dropdown: 0 20px 40px -5px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.12);

    /* ------------------------------------------------------------------------
     6. TRANSIÇÕES & CURVAS DE ANIMAÇÃO
     ------------------------------------------------------------------------ */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 350ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ------------------------------------------------------------------------
     7. Z-INDEX SYSTEM
     ------------------------------------------------------------------------ */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-header: 500;
    --z-modal: 1000;
    --z-tooltip: 1100;
}