/* pressao-plp299 — tema escuro, sem dependências */
:root {
  --bg: #0e1117;
  --bg-alt: #151a23;
  --card: #1a2130;
  --border: #2a3244;
  --text: #e8ebf2;
  --text-dim: #9aa4b8;
  --accent: #ff4d5a;
  --accent-2: #7c5cff;
  --ok: #3ddc84;
  --radius: 12px;
  --maxw: 1080px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent-2); }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 24px 48px;
  text-align: center;
}
.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub { max-width: 640px; margin: 0 auto 28px; color: var(--text-dim); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- botões ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.1s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-small { padding: 6px 12px; font-size: 0.82rem; }
.btn.sent { background: var(--ok); color: #052; border-color: transparent; }

/* ---------- seções ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 48px 24px; }
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section h2 { font-size: 1.5rem; margin-bottom: 16px; }
.hint { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 16px; max-width: 720px; }

/* ---------- fatos ---------- */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.fact {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.fact-num { display: block; font-size: 1.8rem; font-weight: 700; color: var(--accent); }
.fact-label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-top: 6px; }
.source { font-size: 0.85rem; color: var(--text-dim); }

/* ---------- vídeos ---------- */
.videos-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.video-card h3 { font-size: 1rem; margin: 12px 0 8px; }
.video-link { font-size: 0.78rem; font-weight: 400; margin-left: 8px; white-space: nowrap; }
.video-embed { aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: var(--card); }
.video-embed iframe { width: 100%; height: 100%; border: 0; }
.video-facade {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #000;
}
.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.video-facade:hover img { opacity: 1; }
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
}
.quotes { list-style: none; margin-top: 8px; }
.quotes li {
  font-size: 0.9rem;
  color: var(--text-dim);
  border-left: 3px solid var(--accent-2);
  padding: 6px 12px;
  margin-bottom: 8px;
  font-style: italic;
}
.quotes li a { font-style: normal; font-size: 0.78rem; }

/* ---------- seletor de UF ---------- */
.uf-box {
  display: flex;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.uf-box label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--text-dim); }
.uf-box select {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  min-width: 220px;
}
.uf-box select:focus { outline: 2px solid var(--accent-2); }
.uf-box .hint { margin-bottom: 0; }

/* ---------- editor ---------- */
.editor {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}
.editor label { display: grid; gap: 6px; font-size: 0.88rem; color: var(--text-dim); }
.editor input, .editor textarea, .editor select, .filtros input, .filtros select {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}
.editor input:focus, .editor textarea:focus, .editor select:focus, .filtros input:focus, .filtros select:focus {
  outline: 2px solid var(--accent-2);
}
.editor textarea { resize: vertical; }
.editor .campo-erro {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px rgba(255, 77, 90, 0.3);
}
.aviso-erro {
  background: rgba(255, 77, 90, 0.12);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 14px;
}
.editor-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.editor-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.placeholder-help { font-size: 0.8rem; color: var(--text-dim); }
.placeholder-help code { background: var(--bg); padding: 2px 6px; border-radius: 4px; }

/* ---------- lote ---------- */
.batch-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 32px;
}
.batch-controls { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.batch-controls label { font-size: 0.9rem; }
.progress-bar { height: 10px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
#progress-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent)); transition: width 0.3s ease; }
.progresso-texto { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 14px; }
.chunks { display: flex; flex-wrap: wrap; gap: 10px; }
.chunk-btn { display: inline-flex; flex-direction: column; gap: 2px; padding: 10px 16px; text-align: left; }
.chunk-btn small { font-weight: 400; opacity: 0.85; }

/* ---------- filtros e cards ---------- */
.filtros { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.sel-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--accent-2); filter: brightness(1.15); }
.chip-ghost { background: transparent; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124, 92, 255, 0.12);
  border: 1px solid var(--accent-2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-2);
}
.pill.pill-vazia { border-color: var(--border); color: var(--text-dim); background: transparent; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
  overflow: hidden;
}
.card:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.card:active { transform: translateY(0); }
.card.selecionado {
  border-color: var(--accent-2);
  background: rgba(124, 92, 255, 0.08);
  box-shadow: 0 0 0 1px var(--accent-2);
}
.card-check {
  position: absolute;
  top: 0;
  right: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--border);
  border-radius: 0 0 0 100%;
  transition: background 0.15s ease;
}
.card.selecionado .card-check { background: var(--accent-2); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-right: 24px; }
.card-nome { font-weight: 600; font-size: 0.95rem; }
.card-partido {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-2);
  white-space: nowrap;
}
.card-email { font-size: 0.78rem; color: var(--text-dim); word-break: break-all; }
.card-actions { display: flex; gap: 8px; }
.card-actions a, .card-actions button { flex: 1; text-align: center; }
.card-casa { font-size: 0.72rem; color: var(--text-dim); }

/* ---------- barra fixa de seleção ---------- */
body { padding-bottom: 76px; }
.barra-selecao {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(26, 33, 48, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--accent-2);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.45);
  animation: barra-sobe 0.25s ease;
}
.barra-selecao label.field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-dim);
}
@keyframes barra-sobe {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ---------- selects estilizados (Abrir com + filtros + barra) ---------- */
.batch-controls select, .filtros select, .barra-selecao select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: var(--bg);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aa4b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 38px 9px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.batch-controls select:hover, .filtros select:hover, .barra-selecao select:hover { border-color: var(--accent-2); }
.batch-controls select:focus, .filtros select:focus, .barra-selecao select:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.25);
}
.batch-controls select option, .filtros select option, .barra-selecao select option {
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 400;
}

/* ---------- share/footer ---------- */
.share-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  max-width: 720px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: border-color 0.15s ease, transform 0.1s ease, background 0.15s ease;
}
.share-btn:hover { border-color: var(--accent-2); background: rgba(124, 92, 255, 0.08); transform: translateY(-1px); }
.share-btn:active { transform: translateY(0); }
.share-btn-ghost { background: transparent; }
.share-icone { font-size: 1.1rem; }
footer { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px; color: var(--text-dim); font-size: 0.85rem; }

/* ---------- responsivo ---------- */
@media (max-width: 720px) {
  .facts { grid-template-columns: 1fr; }
  .videos-grid { grid-template-columns: 1fr; }
  .editor-row { grid-template-columns: 1fr; }
  .filtros { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}
