/* ==========================================================================
   EQUAÇÃO DA LIBERDADE & EQ 360° — DESIGN SYSTEM TOKENS
   Identidade: Azul-marinho profundo, Dourado executivo, Branco e Esmeralda
   ========================================================================== */

:root {
  /* Core Brand Palette */
  --navy-950: #06101f;
  --navy-900: #0a192f;
  --navy-850: #0f223d;
  --navy-800: #132c4f;
  --navy-700: #1c3d6b;
  --navy-600: #28518a;

  --gold-600: #9a7424;
  --gold-500: #b88c32;
  --gold-400: #cba14a;
  --gold-300: #e0be72;
  --gold-200: #f0dba6;
  --gold-100: #faf3e1;

  --emerald-700: #0b4a3f;
  --emerald-600: #0f5c4e;
  --emerald-500: #157a67;
  --emerald-100: #e6f4f0;

  /* Neutrals */
  --white: #ffffff;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Semantic Status */
  --success: #15803d;
  --success-bg: #dcfce7;
  --warning: #b45309;
  --warning-bg: #fef3c7;
  --danger: #b91c1c;
  --danger-bg: #fee2e2;
  --info: #1d4ed8;
  --info-bg: #dbeafe;

  /* Category Colors (Equação 50/20/10/10/10) */
  --cat-dp: #0f294a;
  --cat-cf: #0f5c4e;
  --cat-ip: #1e8a70;
  --cat-ia: #c89d3e;
  --cat-lu: #8cc9b6;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Elevation & Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(10, 25, 47, 0.06), 0 1px 2px rgba(10, 25, 47, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 25, 47, 0.08);
  --shadow-lg: 0 20px 48px rgba(10, 25, 47, 0.14);
  --shadow-gold: 0 8px 28px rgba(184, 140, 50, 0.25);

  --border-light: 1px solid rgba(15, 34, 61, 0.09);
  --border-gold: 1px solid rgba(203, 161, 74, 0.35);

  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
  --container-max: 1200px;
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-800);
  background-color: var(--slate-50);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reusable Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 100%);
  color: var(--navy-950);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--gold-300) 0%, var(--gold-400) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(184, 140, 50, 0.34);
}

.btn-navy {
  background: var(--navy-900);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-navy:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gold-300);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy-900);
  border-color: rgba(15, 34, 61, 0.22);
}

.btn-outline-navy:hover {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.btn-emerald {
  background: var(--emerald-600);
  color: var(--white);
}

.btn-emerald:hover {
  background: var(--emerald-700);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-600);
}

.btn-ghost:hover {
  background: var(--slate-100);
  color: var(--navy-900);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Badges & Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(203, 161, 74, 0.16);
  color: var(--gold-300);
  border: 1px solid rgba(203, 161, 74, 0.35);
}

.badge-gold-solid {
  background: var(--gold-100);
  color: var(--gold-600);
  border: 1px solid rgba(184, 140, 50, 0.3);
}

.badge-navy {
  background: rgba(15, 34, 61, 0.08);
  color: var(--navy-800);
}

.badge-emerald {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.badge-warning {
  background: var(--warning-bg);
  color: var(--warning);
}

.badge-danger {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 380px;
}

.toast {
  background: var(--navy-900);
  color: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold-400);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  animation: toastIn 0.25s ease-out;
}

.toast.toast-success {
  border-left-color: var(--emerald-500);
}

.toast.toast-error {
  border-left-color: #ef4444;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
