/* ═══════════════════════════════════════════════════
   Conflito Irã 2026 — CSS Compartilhado
   Usado por todas as páginas em /pages/
   ═══════════════════════════════════════════════════ */

:root {
  --bg:           #0a0c10;
  --surface:      #111318;
  --surface2:     #181c24;
  --border:       #2a2f3a;
  --text:         #e9ecf1;
  --muted:        #acb1bb;
  --accent-us:    #4a90d9;
  --accent-il:    #c8a84b;
  --accent-ir:    #c0392b;
  --accent-green: #2ecc71;
  --accent-orange:#e67e22;
  --accent-neutral:#5a7a6a;
  --mono: 'Space Mono', monospace;
  --sans: 'Sora', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── NAV ──────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,12,16,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 1.5rem;
  display: flex; align-items: center;
  gap: 0.4rem; flex-wrap: wrap;
  min-height: 52px;
}
nav .brand {
  font-family: var(--mono); font-size: 0.7rem;
  color: var(--muted); letter-spacing: 0.15em;
  text-transform: uppercase; margin-right: auto;
  white-space: nowrap; text-decoration: none;
}
nav a {
  color: var(--muted); text-decoration: none;
  font-size: 0.68rem; font-family: var(--mono);
  letter-spacing: 0.04em; padding: 0.3rem 0.65rem;
  border-radius: 3px; transition: all 0.2s;
  white-space: nowrap; border: 1px solid transparent;
}
nav a:hover { color: var(--text); background: var(--surface2); }
nav a.active {
  color: var(--text); background: var(--surface2);
  border-color: var(--border);
}
nav a.live {
  color: var(--accent-ir);
  border-color: rgba(192,57,43,0.3);
  background: rgba(192,57,43,0.07);
}

/* ── PAGE HEADER ─────────────────────────────────── */
.page-header {
  padding: 2.5rem 2rem 2rem;
  border-bottom: 1px solid var(--border);
  max-width: 1200px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 90% 50%,
    rgba(192,57,43,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.page-label {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.5rem;
}
.page-header h1 {
  font-family: var(--mono);
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 0.8rem;
}
.page-header h1 em { font-style: normal; color: var(--accent-ir); }
.page-subtitle {
  font-size: 0.82rem; color: var(--muted); max-width: 620px;
}

/* ── SECTION ─────────────────────────────────────── */
.section {
  padding: 2.5rem 2rem;
  border-bottom: 1px solid var(--border);
  max-width: 1200px; margin: 0 auto;
}
.section-label {
  font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 0.4rem;
}
h2 {
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 700; margin-bottom: 1.8rem; line-height: 1.2;
}
h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.7rem; }

/* ── TAGS ────────────────────────────────────────── */
.tag {
  font-family: var(--mono); font-size: 0.6rem;
  padding: 0.18rem 0.48rem; border-radius: 3px;
  letter-spacing: 0.05em; text-transform: uppercase;
  display: inline-block;
}
.tag-us      { background:rgba(74,144,217,0.15); color:var(--accent-us);    border:1px solid rgba(74,144,217,0.3); }
.tag-il      { background:rgba(200,168,75,0.15);  color:var(--accent-il);    border:1px solid rgba(200,168,75,0.3); }
.tag-ir      { background:rgba(192,57,43,0.15);   color:var(--accent-ir);    border:1px solid rgba(192,57,43,0.3); }
.tag-neutral { background:rgba(90,122,106,0.15);  color:#7ab89e;             border:1px solid rgba(90,122,106,0.3); }
.tag-orange  { background:rgba(230,126,34,0.15);  color:var(--accent-orange);border:1px solid rgba(230,126,34,0.3); }
.tl-tags { display:flex; flex-wrap:wrap; gap:0.4rem; margin-top:0.7rem; }

/* ── CARDS ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px; padding: 1.2rem 1.4rem;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover { border-color: var(--accent-ir); background: var(--surface2); }

/* ── TIMELINE ────────────────────────────────────── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-ir), var(--accent-us), var(--accent-il));
}
.tl-item { position: relative; margin-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute;
  left: -2.4rem; top: 1.1rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--muted);
  transition: border-color 0.2s;
}
.tl-item:hover::before { border-color: var(--accent-ir); }
.tl-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 1.2rem 1.4rem;
  margin-bottom: 1rem; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.tl-card:hover { border-color: var(--accent-ir); background: var(--surface2); }
.tl-date {
  font-family: var(--mono); font-size: 0.65rem;
  color: var(--muted); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 0.3rem;
}
.tl-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem; }
.tl-body  { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ── EXPAND (CSS-only checkbox trick) ────────────── */
input.detail-toggle { display: none; }
.expandable-body {
  display: none; margin-top: 0.7rem; padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text); line-height: 1.7;
}
input.detail-toggle:checked + label + .expandable-body { display: block; }
label.expand-btn {
  cursor: pointer; font-family: var(--mono); font-size: 0.62rem;
  color: var(--accent-us); letter-spacing: 0.05em;
  display: inline-block; margin-top: 0.5rem;
}
label.expand-btn:hover { text-decoration: underline; }

/* ── GRIDS ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
@media (max-width: 700px) {
  .grid-2 { grid-template-columns: 1fr; }
}

/* ── BAR CHART ───────────────────────────────────── */
.bar-compare { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:1.5rem; }
.bar-row { display:flex; align-items:center; gap:0.8rem; margin-bottom:0.9rem; }
.bar-label { font-size:0.75rem; min-width:160px; line-height:1.3; }
.bar-track { flex:1; height:22px; background:var(--surface2); border-radius:3px; overflow:hidden; }
.bar-fill {
  height:100%; border-radius:3px; display:flex; align-items:center;
  padding-left:0.5rem; font-family:var(--mono); font-size:0.62rem;
  font-weight:700; color:rgba(255,255,255,0.9); white-space:nowrap;
}
.bar-val { font-family:var(--mono); font-size:0.72rem; min-width:90px; text-align:right; color:var(--muted); }

/* ── ALLY BLOCKS ─────────────────────────────────── */
.ally-list { list-style:none; display:flex; flex-direction:column; gap:0.5rem; }
.ally-item { display:flex; align-items:flex-start; gap:0.6rem; font-size:0.8rem; }
.ally-flag { font-size:1.1rem; line-height:1; flex-shrink:0; }
.ally-name { font-weight:600; font-size:0.82rem; }
.ally-role { color:var(--muted); font-size:0.75rem; }
.ally-level {
  margin-left:auto; font-family:var(--mono); font-size:0.6rem;
  padding:0.15rem 0.4rem; border-radius:3px; white-space:nowrap; flex-shrink:0;
}
.level-active  { background:rgba(46,204,113,0.15);  color:#2ecc71;             border:1px solid rgba(46,204,113,0.3); }
.level-passive { background:rgba(107,114,128,0.15); color:var(--muted);        border:1px solid var(--border); }
.level-hostile { background:rgba(192,57,43,0.15);   color:var(--accent-ir);    border:1px solid rgba(192,57,43,0.3); }
.level-neutral { background:rgba(90,122,106,0.15);  color:#7ab89e;             border:1px solid rgba(90,122,106,0.3); }
.level-warning { background:rgba(230,126,34,0.15);  color:var(--accent-orange);border:1px solid rgba(230,126,34,0.3); }

/* ── STAT CARDS ──────────────────────────────────── */
.stat-card { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:1.3rem; text-align:center; }
.stat-flag  { font-size:2rem; margin-bottom:0.5rem; }
.stat-country { font-family:var(--mono); font-size:0.65rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--muted); margin-bottom:0.8rem; }
.stat-number  { font-family:var(--mono); font-size:2rem; font-weight:700; margin-bottom:0.2rem; }
.stat-label   { font-size:0.72rem; color:var(--muted); margin-bottom:0.8rem; }

/* ── INCURSION LIST ──────────────────────────────── */
.incursion-item {
  background:var(--surface); border:1px solid var(--border);
  border-left:3px solid var(--border); border-radius:0 6px 6px 0;
  padding:1rem 1.2rem; display:grid;
  grid-template-columns:auto 1fr; gap:0 1rem; align-items:start;
  margin-bottom:0.8rem;
}
.incursion-item.us-inc { border-left-color:var(--accent-us); }
.incursion-item.il-inc { border-left-color:var(--accent-il); }
.incursion-item.ir-inc { border-left-color:var(--accent-ir); }
.inc-date { font-family:var(--mono); font-size:0.65rem; color:var(--muted); white-space:nowrap; padding-top:0.1rem; }
.inc-title { font-weight:600; font-size:0.88rem; margin-bottom:0.3rem; }
.inc-body  { font-size:0.78rem; color:var(--muted); line-height:1.5; }

/* ── COST CARDS ──────────────────────────────────── */
.cost-card { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:1.2rem; position:relative; overflow:hidden; }
.cost-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; }
.cost-card.ir::before { background:var(--accent-ir); }
.cost-card.us::before { background:var(--accent-us); }
.cost-card.il::before { background:var(--accent-il); }
.cost-icon  { font-size:1.6rem; margin-bottom:0.6rem; }
.cost-name  { font-weight:600; font-size:0.9rem; margin-bottom:0.3rem; }
.cost-price { font-family:var(--mono); font-size:1.1rem; font-weight:700; margin-bottom:0.5rem; }
.cost-card.ir .cost-price { color:var(--accent-ir); }
.cost-card.us .cost-price { color:var(--accent-us); }
.cost-card.il .cost-price { color:var(--accent-il); }
.cost-desc  { font-size:0.75rem; color:var(--muted); line-height:1.5; }

/* ── TARGET CARDS ────────────────────────────────── */
.target-card { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:1rem; transition:border-color 0.2s; }
.target-card:hover { border-color:var(--accent-ir); }
.target-country { font-family:var(--mono); font-size:0.6rem; letter-spacing:0.15em; text-transform:uppercase; color:var(--muted); margin-bottom:0.2rem; }
.target-name    { font-weight:600; font-size:0.88rem; margin-bottom:0.5rem; }
.target-hits    { display:flex; gap:0.5rem; flex-wrap:wrap; margin-bottom:0.5rem; }
.hit-badge      { font-family:var(--mono); font-size:0.62rem; padding:0.15rem 0.45rem; border-radius:3px; }
.hit-missiles   { background:rgba(192,57,43,0.2);  color:#e05c4b; }
.hit-drones     { background:rgba(230,126,34,0.2); color:var(--accent-orange); }
.hit-dead       { background:rgba(107,114,128,0.15);color:var(--muted); }
.target-note    { font-size:0.75rem; color:var(--muted); line-height:1.4; }

/* ── STRATEGY BLOCKS ─────────────────────────────── */
.strategy-block { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:1.3rem; }
.strategy-header { display:flex; align-items:center; gap:0.7rem; margin-bottom:1rem; padding-bottom:0.8rem; border-bottom:1px solid var(--border); }
.strategy-icon  { font-size:1.4rem; }
.strategy-title { font-family:var(--mono); font-size:0.75rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; }
.strategy-list  { list-style:none; display:flex; flex-direction:column; gap:0.7rem; }
.strategy-item  { display:flex; gap:0.6rem; font-size:0.82rem; line-height:1.5; }
.strategy-bullet { width:5px; height:5px; border-radius:50%; background:var(--muted); flex-shrink:0; margin-top:0.5rem; }
.us-bullet { background:var(--accent-us); }
.il-bullet { background:var(--accent-il); }
.ir-bullet { background:var(--accent-ir); }

/* ── AUTO-UPDATE BLOCK ───────────────────────────── */
.update-badge {
  font-family:var(--mono); font-size:0.65rem;
  background:rgba(74,144,217,0.15); color:var(--accent-us);
  border:1px solid rgba(74,144,217,0.3);
  padding:0.2rem 0.6rem; border-radius:3px;
  margin-left:0.8rem; vertical-align:middle; font-weight:400;
}
.source-link {
  font-size:0.7rem; color:var(--accent-us); text-decoration:none;
  margin-top:0.4rem; display:inline-block;
}
.source-link:hover { text-decoration:underline; }

/* ── MISC ────────────────────────────────────────── */
.note    { font-size:0.75rem; color:var(--muted); font-style:italic; margin-top:0.5rem; }
.divider { border:none; border-top:1px solid var(--border); margin:2rem 0; }
.live-dot {
  display:inline-block; width:7px; height:7px;
  background:var(--accent-ir); border-radius:50%;
  margin-right:0.4rem; animation:pulse-dot 1.4s infinite; vertical-align:middle;
}
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }
@keyframes fadeup { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }

.attrition-box { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:1.5rem; margin-top:2rem; }
.attrition-equation {
  display:flex; align-items:center; justify-content:center;
  flex-wrap:wrap; gap:1rem; margin-bottom:1.5rem;
  padding:1.5rem; background:var(--surface2); border-radius:6px;
}
.eq-part { text-align:center; }
.eq-top  { font-family:var(--mono); font-size:1.4rem; font-weight:700; line-height:1; }
.eq-label{ font-size:0.65rem; color:var(--muted); text-transform:uppercase; letter-spacing:0.08em; }
.eq-op   { font-family:var(--mono); font-size:1.6rem; color:var(--muted); font-weight:300; }
.eq-result { text-align:center; background:rgba(192,57,43,0.1); border:1px solid rgba(192,57,43,0.3); border-radius:6px; padding:0.8rem 1.5rem; }
.eq-result .eq-top { color:var(--accent-ir); }

.ctx-card  { background:var(--surface); border:1px solid var(--border); border-radius:6px; padding:1.2rem; }
.ctx-icon  { font-size:1.5rem; margin-bottom:0.6rem; }
.ctx-title { font-weight:600; font-size:0.88rem; margin-bottom:0.5rem; }
.ctx-text  { font-size:0.78rem; color:var(--muted); line-height:1.6; }

.disclaimer { max-width:1200px; margin:0 auto; padding:2rem; border-top:1px solid var(--border); }
.disclaimer p { font-size:0.72rem; color:var(--muted); line-height:1.7; max-width:700px; }

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width:600px) {
  nav { gap:0.2rem; }
  nav a { font-size:0.62rem; padding:0.25rem 0.45rem; }
  .page-header, .section { padding:1.5rem 1rem; }
  .bar-label { min-width:100px; font-size:0.68rem; }
}
