/* ===================================================================
   VYA GLOBAL — reports.css
   Estilos exclusivos da pagina "Fluxo Global de Vistos" (reports.html).
   Reaproveita as variaveis e classes base de styles.css.
   =================================================================== */

.main-nav > a.active { color: var(--amber); }

/* -------------------------- Flow hero -------------------------- */
.flow-hero { padding-top: clamp(140px, 16vw, 190px); }
.flow-stats { display: flex; justify-content: center; gap: clamp(28px, 5vw, 64px); margin-top: clamp(36px, 5vw, 56px); flex-wrap: wrap; }
.flow-stat { text-align: center; }
.flow-stat-value { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.flow-stat-label { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }

/* -------------------------- Search -------------------------- */
.flow-explorer-section { padding-top: clamp(20px, 3vw, 30px); }
.flow-search-wrap { position: relative; max-width: 440px; margin: 0 auto clamp(28px, 3.6vw, 38px); }
.flow-search { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border-2); border-radius: 999px; padding: 13px 20px; background: rgba(255, 255, 255, 0.02); transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.flow-search:focus-within { border-color: var(--amber); box-shadow: 0 0 0 3px rgba(247, 162, 59, 0.14); }
.flow-search svg { width: 18px; height: 18px; color: var(--muted-2); flex: none; }
.flow-search-input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: var(--cream); font-family: var(--font-body); font-size: 15px; }
.flow-search-input::placeholder { color: var(--muted-2); }

.flow-search-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; border: 1px solid var(--border-2); border-radius: 16px; background: var(--surface); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7); overflow: hidden; max-height: 320px; overflow-y: auto; }
.flow-search-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 12px 18px; background: none; border: none; border-bottom: 1px solid var(--border); color: var(--cream); font-family: var(--font-body); font-size: 14.5px; text-align: left; cursor: pointer; transition: background 0.2s; }
.flow-search-item:last-child { border-bottom: none; }
.flow-search-item:hover { background: rgba(255, 255, 255, 0.04); }
.flow-search-item-total { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.flow-search-empty { padding: 16px 18px; color: var(--muted-2); font-size: 14px; }

/* -------------------------- Globe -------------------------- */
.flow-globe-wrap { position: relative; width: min(100%, 640px); aspect-ratio: 1 / 1; margin: 0 auto; border-radius: 50%; }
.flow-globe-wrap::before { content: ""; position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(247, 162, 59, 0.16), rgba(249, 77, 154, 0.06) 60%, transparent 75%); pointer-events: none; opacity: 0; transition: opacity 0.8s var(--ease); }
.flow-globe-wrap.ready::before { opacity: 1; }
.flow-globe-wrap canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.flow-globe-hint { position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%); font-size: 10.5px; letter-spacing: 0.14em; color: var(--muted-2); white-space: nowrap; opacity: 0; transition: opacity 0.6s var(--ease) 0.3s; }
.flow-globe-wrap.ready .flow-globe-hint { opacity: 1; }
.flow-globe-wrap.flow-globe-error canvas { display: none; }
.flow-globe-wrap.flow-globe-error::after { content: "—"; }

/* -------------------------- Methodology -------------------------- */
.flow-methodology { padding-top: 0; }
.flow-method-card { max-width: 760px; margin: 0 auto; border: 1px solid var(--border-2); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px) clamp(24px, 3.4vw, 34px); background: rgba(255, 255, 255, 0.015); }
.flow-method-kicker { display: block; color: var(--amber); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.flow-method-text { color: var(--muted); font-size: 13.5px; line-height: 1.7; }

/* -------------------------- Country panel -------------------------- */
.flow-panel-dialog { width: min(520px, 100%); }
.flow-panel-country { font-family: var(--font-display); font-size: clamp(26px, 4vw, 34px); color: var(--cream); }
.flow-panel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 10px; }
.flow-panel-stat { border: 1px solid var(--border-2); border-radius: 14px; padding: 14px 16px; background: rgba(255, 255, 255, 0.02); }
.fps-label { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2); text-transform: uppercase; margin-bottom: 7px; }
.fps-value { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: var(--cream); }
.flow-panel-top-why { font-size: 12.5px; line-height: 1.55; color: var(--muted); margin: 0 2px 22px; }

.flow-panel-breakdown { margin-bottom: 22px; }
.flow-panel-section-label { display: block; font-size: 10px; letter-spacing: 0.12em; color: var(--muted-2); text-transform: uppercase; margin-bottom: 14px; }
.flow-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.flow-bar-code { width: 54px; flex: none; font-family: var(--font-mono); font-size: 12px; color: var(--cream); }
.flow-bar-track { flex: 1; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.flow-bar-fill { display: block; height: 100%; border-radius: 999px; background: var(--grad); width: 0; transition: width 0.6s var(--ease); }
.flow-bar-pct { width: 42px; flex: none; text-align: right; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

.flow-panel-benchmark { font-size: 12.5px; color: var(--muted-2); line-height: 1.55; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 22px; background: rgba(255, 255, 255, 0.015); }
.flow-panel-benchmark strong { color: var(--muted); font-weight: 500; }

.flow-panel-note {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 24px;
  background: linear-gradient(122deg, rgba(247, 162, 59, 0.16), rgba(249, 77, 154, 0.05) 65%, transparent 100%);
  border: 1px solid rgba(247, 162, 59, 0.24);
}
.flow-note-mark { position: absolute; right: -6px; bottom: -14px; width: 92px; height: 84px; color: var(--amber); opacity: 0.14; pointer-events: none; }
.flow-note-kicker { display: block; font-size: 10px; letter-spacing: 0.14em; color: var(--amber); text-transform: uppercase; margin-bottom: 8px; }
.flow-note-text { position: relative; font-size: 14.5px; line-height: 1.6; color: var(--cream); font-style: italic; max-width: 88%; }

.flow-panel-cta { width: 100%; }

@media (max-width: 720px) {
  .flow-panel-stats { grid-template-columns: 1fr 1fr; }
  .flow-globe-wrap { margin-bottom: 40px; }
}

/* ------------- Faixa de paises (visto lider por pais, dados reais) -------------
   Duas fileiras deslizando em sentidos opostos, no espirito dos marquees de
   bandeiras dos heros de referencia. Conteudo duplicado no DOM: o loop anda
   50% e recomeca sem emenda. Pausa no hover; vira estatico com reduced-motion. */
.flow-ticker { margin: clamp(30px, 4vw, 46px) 0 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.flow-ticker + .flow-ticker { margin-top: 12px; }
.flow-ticker-track { display: inline-flex; gap: 12px; padding-right: 12px; width: max-content; animation: flowTickerL 46s linear infinite; }
.flow-ticker-rev .flow-ticker-track { animation-name: flowTickerR; animation-duration: 54s; }
.flow-ticker:hover .flow-ticker-track { animation-play-state: paused; }
@keyframes flowTickerL { to { transform: translateX(-50%); } }
@keyframes flowTickerR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.flow-pill { display: inline-flex; align-items: center; gap: 9px; flex: none; padding: 8px 14px 8px 9px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); }
.flow-pill svg { width: 19px; height: 19px; border-radius: 50%; flex: none; }
.flow-pill-name { font-size: 13.5px; color: var(--text); white-space: nowrap; }
.flow-pill-code { font-family: var(--font-mono); font-size: 11px; color: var(--amber); border: 1px solid rgba(247, 162, 59, 0.35); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .flow-ticker-track { animation: none; } }
