/* 
   Card Vacinas & Victory Systems Design System - v7.20.0
   Centralização de tokens de design para duplo tema dinâmico (Victory B2B & Cardvacinas B2C).
   Direção visual: Teal Current — azul + teal + âmbar.
*/

:root {
    /* ==========================================================================
       PRIMITIVES — Paleta Base (compartilhada entre temas)
       ========================================================================== */

    /* Blue (Primary — confiança/saúde) */
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #2563eb; /* Azul Pathos (Cardvacinas) */
    --blue-700: #1d4ed8;
    --blue-800: #1e40af; /* Azul Ethos (Victory Systems) */
    --blue-900: #1e3a8a;

    /* Cyan (Calm Cyan — B2C primary / Saúde) — NOVO v7.55.0 */
    --cyan-50: #ecfeff;
    --cyan-100: #cffafe;
    --cyan-200: #a5f3fc;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --cyan-700: #0e7490;
    --cyan-800: #155e75;
    --cyan-950: #083344;

    /* Teal (Secondary accent — tecnologia/vitalidade) — NOVO v7.20.0 */
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-200: #99f6e4;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488; /* Primary teal */
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-900: #134e4a;

    /* Amber (Warm accent — ação/destaque) — NOVO v7.20.0 */
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;

    /* Green (Success/Compliance) */
    --green-500: #22c55e;
    --green-600: #16a34a;

    /* Red (Danger/Error) — expandido v7.20.0 */
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-500: #ef4444;
    --red-600: #dc2626; /* brand-danger */
    --red-700: #b91c1c;
    --red-800: #991b1b;

    /* Purple (compatibilidade com gradiente legado) — NOVO v7.20.0 */
    --purple-50: #faf5ff;
    --purple-100: #f3e8ff;
    --purple-200: #e9d5ff;
    --purple-400: #a78bfa;
    --purple-500: #8b5cf6;
    --purple-600: #7c3aed;
    --purple-700: #6d28d9;

    /* Gray (Neutral) — completo v7.20.0 */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;

    --font-heading: 'Lexend', system-ui, -apple-system, sans-serif;
    --font-body: 'Source Sans 3', system-ui, -apple-system, sans-serif;
    --font-main: var(--font-body);
    --font-mono: ui-monospace, 'JetBrains Mono', monospace;

    /* ==========================================================================
       DEFAULT THEME CONFIGURATION (Cardvacinas - B2C / Pathos)
       ========================================================================== */
    --theme-primary: var(--blue-600);
    --theme-primary-hover: var(--blue-500);
    --theme-background: var(--white);
    --theme-surface: var(--gray-50);
    --theme-border-radius: 12px;
    --theme-font-weight-heading: 500; /* Medium */
    --theme-font-weight-body: 400;    /* Regular */
    --theme-shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);

    /* ==========================================================================
       SEMANTIC ACCENTS (v7.20.0 — Teal Current)
       ========================================================================== */

    /* Tech accent (teal) — secondary, tecnologia, vitalidade */
    --accent-tech: var(--teal-600);
    --accent-tech-hover: var(--teal-500);
    --accent-tech-bg: var(--teal-50);
    --accent-tech-border: var(--teal-200);
    --accent-tech-text: var(--teal-800);

    /* Warm accent (amber) — ação, destaque, alerta */
    --accent-warm: var(--amber-500);
    --accent-warm-hover: var(--amber-400);
    --accent-warm-bg: var(--amber-50);
    --accent-warm-border: var(--amber-200);
    --accent-warm-text: var(--amber-800);

    /* ==========================================================================
       ELEVATION SYSTEM (v7.20.0)
       ========================================================================== */
    --elevation-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --elevation-md: var(--theme-shadow-md);
    --elevation-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --elevation-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);

    /* ==========================================================================
       TYPOGRAPHY SCALE (v7.20.0)
       ========================================================================== */
    --text-xs: 0.75rem;   /* 12px */
    --text-sm: 0.875rem;  /* 14px */
    --text-base: 1rem;    /* 16px */
    --text-lg: 1.125rem;  /* 18px */
    --text-xl: 1.25rem;   /* 20px */
    --text-2xl: 1.5rem;   /* 24px */
    --text-3xl: 1.875rem; /* 30px */
    --text-4xl: 2.25rem;  /* 36px */
    --text-5xl: 3rem;     /* 48px */

    /* ==========================================================================
       SPACING SCALE (v7.20.0)
       ========================================================================== */
    --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 */
    --space-20: 5rem;     /* 80px */

    /* ==========================================================================
       LEGACY & SEMANTIC MAPPING (backwards compatibility)
       ========================================================================== */
    --brand-primary: var(--theme-primary);
    --brand-success: var(--green-600);
    --brand-warning: var(--amber-600);
    --brand-danger: var(--red-600);

    --ui-surface: var(--theme-surface);
    --ui-background: var(--theme-background);
    --ui-text-main: var(--gray-900);
    --ui-text-muted: var(--gray-500);
    --ui-border: var(--gray-200);

    --shadow-sm: var(--elevation-sm);
    --shadow-md: var(--elevation-md);

    --transition-fast: all 0.2s ease-in-out;
}

/* ==========================================================================
   VICTORY SYSTEMS THEME (B2B / Ethos / Logos)
   ========================================================================== */
/* CardVacinas Institutional (B2B). `.theme-victory` is a temporary legacy alias. */
.theme-cardvacinas-institutional,
.theme-victory {
    --theme-primary: var(--blue-800);
    --theme-primary-hover: var(--blue-900);
    --theme-background: var(--gray-50);
    --theme-surface: var(--white);
    --theme-border-radius: 4px;
    --theme-font-weight-heading: 700; /* Bold */
    --theme-font-weight-body: 500;    /* Medium */
    --theme-shadow-md: 0 2px 4px rgba(0, 0, 0, 0.05);

    /* Tech accent mais sério para B2B */
    --accent-tech: var(--teal-700);
    --accent-tech-hover: var(--teal-600);
}

/* ==========================================================================
   CARDVACINAS THEME (B2C / Pathos / Logos)
   ========================================================================== */
/* CardVacinas Consumer (B2C). `.theme-cardvacinas` is a temporary legacy alias. */
.theme-cardvacinas-consumer,
.theme-cardvacinas {
    --theme-primary: var(--cyan-600);
    --theme-primary-hover: var(--cyan-500);
    --theme-background: var(--white);
    --theme-surface: var(--cyan-50);
    --theme-border-radius: 12px;
    --theme-font-weight-heading: 500; /* Medium */
    --theme-font-weight-body: 400;    /* Regular */
    --theme-shadow-md: 0 10px 25px -5px rgba(8, 145, 178, 0.08);

    /* Tech accent mais vibrante para B2C */
    --accent-tech: var(--cyan-600);
    --accent-tech-hover: var(--cyan-500);
}

/* ==========================================================================
   ANIMATIONS & MICRO-INTERACTIONS
   Nota: Novas animações devem ser adicionadas em animations.css.
   As abaixo serão migradas na Fase 2 do Plano Teal Current.
   ========================================================================== */

/* Victory Systems (B2B): Animações técnicas e precisas */
@keyframes vsFadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes vsDataPulse {
  0% { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(30, 64, 175, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 64, 175, 0); }
}

.animate-vs-fade {
  animation: vsFadeInUp 0.6s ease-out forwards;
}

.animate-vs-pulse {
  animation: vsDataPulse 2s infinite;
}

/* Cardvacinas (B2C): Animações orgânicas e elásticas */
@keyframes cvBounceIn {
  0% { opacity: 0; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}

@keyframes cvFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

.animate-cv-bounce {
  animation: cvBounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.animate-cv-float {
  animation: cvFloat 4s ease-in-out infinite;
}
