/* =========================================================
   DESIGN TOKENS - FLAT DESIGN & CORES NEUTRAS PROFISSIONAIS
   ========================================================= */

:root {
  /* Paleta Neutra Principal (Slate / Grafite / Titânio) */
  --color-slate-950: #020617;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-600: #475569;
  --color-slate-500: #64748b;
  --color-slate-400: #94a3b8;
  --color-slate-300: #cbd5e1;
  --color-slate-200: #e2e8f0;
  --color-slate-100: #f1f5f9;
  --color-slate-50:  #f8fafc;
  --color-white:     #ffffff;

  /* Semântica Neutra do Flat Design */
  --bg-app:          var(--color-slate-50);
  --bg-surface:      var(--color-white);
  --bg-surface-subtle: var(--color-slate-100);
  --bg-surface-hover: #eef2f6;

  --text-main:       var(--color-slate-900);
  --text-muted:      var(--color-slate-600);
  --text-light:      var(--color-slate-400);
  --text-inverse:    var(--color-white);

  --border-subtle:   var(--color-slate-200);
  --border-strong:   var(--color-slate-300);
  --border-active:   var(--color-slate-800);

  /* Acentos Funcionais e Corporativos Sutis */
  --color-brand:         #0f172a; /* Slate Black nobre */
  --color-brand-hover:   #1e293b;
  --color-accent-blue:   #2563eb;
  --color-accent-blue-bg:#eff6ff;
  --color-success:       #0d9488; /* Verde esmeralda neutro */
  --color-success-bg:    #f0fdf4;
  --color-warning:       #d97706;
  --color-warning-bg:    #fffbeb;

  /* Tipografia */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Tamanhos e Escalas */
  --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 */

  /* Espaçamentos Flat */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Raio de Borda (Geometria Flat com cantos levemente suavizados) */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Sombras Flat Estilo Clean (sutis e precisas) */
  --shadow-flat-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-flat-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-flat-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-mockup: 0 25px 50px -12px rgba(15, 23, 42, 0.15);

  /* Transições Suaves */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Temas Neutros Pré-configurados para o Cartão */
[data-card-theme="slate"] {
  --ct-bg-top: #0f172a;
  --ct-bg-card: #ffffff;
  --ct-text-title: #0f172a;
  --ct-text-subtitle: #475569;
  --ct-btn-primary-bg: #0f172a;
  --ct-btn-primary-text: #ffffff;
  --ct-btn-secondary-bg: #f1f5f9;
  --ct-btn-secondary-text: #1e293b;
  --ct-border: #e2e8f0;
}

[data-card-theme="minimal-light"] {
  --ct-bg-top: #f8fafc;
  --ct-bg-card: #ffffff;
  --ct-text-title: #18181b;
  --ct-text-subtitle: #71717a;
  --ct-btn-primary-bg: #18181b;
  --ct-btn-primary-text: #ffffff;
  --ct-btn-secondary-bg: #f4f4f5;
  --ct-btn-secondary-text: #27272a;
  --ct-border: #e4e4e7;
}

[data-card-theme="obsidian-dark"] {
  --ct-bg-top: #09090b;
  --ct-bg-card: #18181b;
  --ct-text-title: #fafafa;
  --ct-text-subtitle: #a1a1aa;
  --ct-btn-primary-bg: #fafafa;
  --ct-btn-primary-text: #09090b;
  --ct-btn-secondary-bg: #27272a;
  --ct-btn-secondary-text: #f4f4f5;
  --ct-border: #27272a;
}

[data-card-theme="titanium"] {
  --ct-bg-top: #334155;
  --ct-bg-card: #ffffff;
  --ct-text-title: #1e293b;
  --ct-text-subtitle: #64748b;
  --ct-btn-primary-bg: #334155;
  --ct-btn-primary-text: #ffffff;
  --ct-btn-secondary-bg: #f1f5f9;
  --ct-btn-secondary-text: #334155;
  --ct-border: #cbd5e1;
}
