/* MonitorIA — design tokens & overrides
   Telejornal, não fintech. */

:root {
  --bg-deep: #0b0d10;
  --bg-graphite: #14171c;
  --bg-card: #1a1e25;
  --bg-cream: #f3ede0;

  --ink-bright: #f5f1e8;
  --ink-mute: #a8a496;
  --ink-faint: #6b6a64;
  --ink-dark: #14171c;

  --tijolo: #a82b1e;
  --tijolo-soft: #7a2317;
  --amber: #c98a2b;
  --calm: #5a7d8c;
  --green-go: #4f8a5f;

  --rule: #2a2f38;
}

html, body {
  background: var(--bg-deep);
  color: var(--ink-bright);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-feature-settings: "tnum" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
}

.font-serif-news { font-family: 'IBM Plex Serif', Georgia, serif; }
.font-mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; }

.text-tijolo { color: var(--tijolo); }
.bg-tijolo { background: var(--tijolo); }
.border-tijolo { border-color: var(--tijolo); }

.text-cream { color: var(--bg-cream); }
.bg-cream { background: var(--bg-cream); color: var(--ink-dark); }

.text-mute { color: var(--ink-mute); }
.text-faint { color: var(--ink-faint); }

.bg-graphite { background: var(--bg-graphite); }
.bg-card { background: var(--bg-card); }
.border-rule { border-color: var(--rule); }

/* Live tag — thin red bar above headers, "AO VIVO" feel */
.live-bar {
  position: relative;
}
.live-bar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--tijolo);
}

/* Pulsing dot for critical alerts — slow, not strobe */
.pulse-tijolo {
  animation: pulseTijolo 2.8s ease-in-out infinite;
}
@keyframes pulseTijolo {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Approval trail dots */
.trail-dot {
  width: 22px; height: 22px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
}
.trail-dot.done { background: var(--green-go); color: #fff; }
.trail-dot.active { background: var(--amber); color: #1a1208; }
.trail-dot.pending { background: var(--bg-card); color: var(--ink-faint); border: 1px solid var(--rule); }

/* Action card severities */
.sev-urgent { border-left: 3px solid var(--tijolo); }
.sev-tatica { border-left: 3px solid var(--amber); }
.sev-estrat { border-left: 3px solid var(--calm); }

/* Constellation nodes */
.node {
  border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  border: 1.5px solid var(--rule);
  background: var(--bg-card);
  transition: transform .2s ease;
}
.node:hover { transform: scale(1.08); }
.node.calm { border-color: var(--green-go); }
.node.attn { border-color: var(--amber); }
.node.crisis { border-color: var(--tijolo); box-shadow: 0 0 0 2px rgba(168,43,30,0.18); }
.node.oppt { border-color: var(--calm); }

/* Subtle gridlines — bloomberg-ish density without the grossness */
.bg-grid {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Wireframe mode — for low-fi screens */
.wireframe {
  background: #f7f6f2;
  color: #1a1e25;
}
.wireframe .wire-box {
  border: 1.5px dashed #7a7670;
  background: #fff;
}
.wireframe .wire-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: #7a7670;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Headline kerning — tighter for news weight */
h1.headline, h2.headline {
  font-family: 'IBM Plex Serif', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.05;
}

/* Mono labels — small caps feel */
.label-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Top bar shared by all screens */
.top-bar {
  border-bottom: 1px solid var(--rule);
  background: var(--bg-graphite);
}

/* Compliance footer ribbon */
.compliance-ribbon {
  background: var(--bg-graphite);
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  letter-spacing: 0.05em;
}
