/* =====================================================================
   ECE Theme — Design tokens do Redesign (doc 12 §4 + handoffs)
   ---------------------------------------------------------------------
   Arquivo ÚNICO compartilhado entre os 2 apps (portal + ece-eve).
   Contém apenas @font-face (Manrope self-host) + variáveis CSS.
   NÃO aplica estilo a nenhum seletor de página → incluir este arquivo
   não muda nada visualmente até uma página usar as variáveis.

   Regra de ouro: DOURADO apenas na logo (nunca como cor funcional).
   ===================================================================== */

/* ── Fonte Manrope (self-host, variável 400–800) ────────────────────── */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;              /* variável: cobre todos os pesos */
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  /* Tipografia */
  --ece-font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ece-font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular',
                   'Consolas', monospace;

  /* Fundo da página + brilhos ambientais */
  --ece-bg: linear-gradient(180deg, #0a131f 0%, #0a1522 55%, #0c1d33 100%);
  --ece-bg-solid: #0a131f;
  --ece-glow-bottom: radial-gradient(circle, rgba(46,102,168,0.28), transparent 62%);
  --ece-glow-topright: radial-gradient(circle, rgba(46,102,168,0.14), transparent 65%);

  /* Azul primário (botões / itens ativos) */
  --ece-blue: #3f83c9;
  --ece-blue-2: #2f6bb0;
  --ece-blue-hover: #4a90d6;
  --ece-blue-hover-2: #3576bd;
  --ece-blue-grad: linear-gradient(180deg, #3f83c9, #2f6bb0);
  --ece-blue-grad-hover: linear-gradient(180deg, #4a90d6, #3576bd);

  /* Azuis de destaque (eyebrow, links, ícones) */
  --ece-accent: #5aa0e6;      /* eyebrow / links */
  --ece-accent-2: #7db6f0;    /* ícones / hover de link */
  --ece-accent-3: #4d94e0;    /* ponto do contador */

  /* Texto */
  --ece-text-title: #f4f7fb;
  --ece-text-title-2: #f2f6fb;
  --ece-text-body: #8296ae;
  --ece-text-label: #8fa2ba;
  --ece-text-muted: #66768d;
  --ece-text-muted-2: #7f93ad;
  --ece-text-input: #eaf1fa;
  --ece-text-onblue: #ffffff;
  --ece-placeholder: #5c6f89;

  /* Superfície: card ativo */
  --ece-card: linear-gradient(180deg, rgba(24,44,72,0.6), rgba(15,29,49,0.6));
  --ece-card-login: linear-gradient(180deg, rgba(24,44,72,0.6), rgba(15,29,49,0.62));
  --ece-card-border: rgba(120,170,225,0.22);

  /* Superfície: card bloqueado ("Sem acesso") */
  --ece-card-locked: rgba(14,26,43,0.55);
  --ece-card-locked-border: rgba(120,160,210,0.1);
  --ece-card-locked-hover: rgba(18,33,53,0.6);
  --ece-card-locked-border-hover: rgba(120,170,225,0.35);

  /* Faixa decorativa superior (2px) dos cards */
  --ece-topstrip: linear-gradient(90deg, transparent, rgba(77,148,224,0.8), transparent);

  /* Inputs */
  --ece-input-bg: rgba(255,255,255,0.03);
  --ece-input-border: rgba(120,160,210,0.18);
  --ece-input-border-focus: rgba(120,170,225,0.7);
  --ece-input-focus-ring: 0 0 0 4px rgba(63,131,201,0.14);

  /* Header fixo */
  --ece-header-bg: linear-gradient(180deg, rgba(13,28,50,0.9), rgba(10,20,34,0.6));
  --ece-header-border: rgba(120,160,210,0.12);
  --ece-divider: rgba(120,160,210,0.18);

  /* Navegação (pílulas) */
  --ece-nav-idle: #b8c6da;
  --ece-nav-border: rgba(120,160,210,0.22);
  --ece-nav-border-hover: rgba(120,170,225,0.55);
  --ece-nav-hover-text: #eaf1fa;
  --ece-nav-sair: #8296ae;
  --ece-nav-sair-border: rgba(120,160,210,0.16);

  /* Pílula de status "Ativo" */
  --ece-pill-bg: rgba(63,131,201,0.14);
  --ece-pill-border: rgba(120,170,225,0.34);
  --ece-pill-text: #a9cdf2;

  /* Pílula de status "Sem acesso" */
  --ece-pill-locked-bg: rgba(255,255,255,0.035);
  --ece-pill-locked-border: rgba(120,160,210,0.12);
  --ece-pill-locked-text: #93a3ba;

  /* Pílula contador (X de Y módulos) */
  --ece-counter-bg: rgba(63,131,201,0.1);
  --ece-counter-border: rgba(120,170,225,0.28);
  --ece-counter-text: #cadcf0;

  /* Tile de ícone (card ativo) */
  --ece-tile-bg: rgba(63,131,201,0.16);
  --ece-tile-border: rgba(120,170,225,0.3);
  --ece-tile-icon: #7db6f0;
  /* Tile de ícone (card bloqueado) */
  --ece-tile-locked-bg: rgba(255,255,255,0.035);
  --ece-tile-locked-border: rgba(120,160,210,0.1);
  --ece-tile-locked-icon: #5f7391;

  /* Feedback (mantém compatibilidade com main.css atual) */
  --ece-success: #6dd897;
  --ece-success-bg: rgba(109,216,151,0.12);
  --ece-success-border: rgba(109,216,151,0.25);
  --ece-danger: #ff9a9a;
  --ece-danger-bg: rgba(255,80,80,0.1);
  --ece-danger-border: rgba(255,80,80,0.3);
  --ece-warning: #f59e0b;
  --ece-warning-bg: rgba(245,158,11,0.12);
  --ece-warning-border: rgba(245,158,11,0.2);

  /* Dourado ECE — APENAS na logo (documentado; NUNCA usar como cor funcional) */
  --ece-gold: #d4a544;

  /* Raios */
  --ece-r-card: 20px;       /* cards de módulo */
  --ece-r-card-lg: 22px;    /* card de login */
  --ece-r-btn: 12px;
  --ece-r-input: 12px;
  --ece-r-nav: 10px;
  --ece-r-tile: 13px;
  --ece-r-pill: 999px;

  /* Sombras */
  --ece-shadow-card: 0 24px 60px -34px rgba(0,0,0,0.9);
  --ece-shadow-card-login: 0 30px 70px -34px rgba(0,0,0,0.9);
  --ece-shadow-btn: 0 8px 20px -10px rgba(47,107,176,0.8);
  --ece-shadow-btn-lg: 0 10px 24px -12px rgba(47,107,176,0.9);
  --ece-shadow-nav-active: 0 6px 18px -6px rgba(47,107,176,0.7);

  /* Layout */
  --ece-container-max: 1320px;
}
