/* Feed FlipX — estilo minimalista e legível */

:root {
  --bg: #0e1014;
  --bg-2: #161922;
  --bg-3: #1f2330;
  --line: #262b3a;
  --line-soft: #1a1e2a;
  --text: #e9ecf2;
  --text-soft: #9aa3b8;
  --text-fade: #5e667a;
  --accent: #ff7e2d;          /* laranja FlipX */
  --accent-soft: #ff7e2d22;
  --accent-line: #ff7e2d44;
  --vert-ia: #6aa3ff;
  --vert-marketing: #ffb84d;
  --vert-mundo: #a18bff;
  --vert-local: #58d6a8;
  --tag-oport: #58d6a8;
  --tag-risco: #ff6b6b;
  --tag-plat:  #6aa3ff;
  --tag-aplic: #ffb84d;
  --tag-custo: #c184ff;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ---------- Header ---------- */
.topo {
  background: linear-gradient(180deg, #131722 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}
.topo-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 36px; height: 36px;
  background: var(--accent);
  color: #000;
  font-weight: 800;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  letter-spacing: -1px;
}
.brand-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.2px;
}
.brand-sub {
  font-size: 12px;
  color: var(--text-soft);
}
.top-stats {
  font-size: 12px;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}
.top-stats #stat-destaques { color: var(--accent); font-weight: 600; }
.stat-sep { color: var(--text-fade); margin: 0 6px; }

/* ---------- Filtros ---------- */
.filtros {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 65px;
  z-index: 10;
}
.filtros-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}
.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chip {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all .12s ease;
}
.chip:hover {
  background: var(--bg-3);
  color: var(--text);
}
.chip.ativo {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}
.chip.pequeno { padding: 4px 10px; font-size: 12px; }
.chips-secundario .chip.ativo { background: var(--bg-3); color: var(--text); border-color: var(--text-soft); }

.toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
  user-select: none;
  cursor: pointer;
}
.toggle input { accent-color: var(--accent); }

.busca {
  margin-left: auto;
  flex: 1;
  min-width: 180px;
  max-width: 300px;
}
.busca input {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 12px;
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.busca input:focus { border-color: var(--accent); }

/* ---------- Lista ---------- */
.lista {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.divisor-dia {
  font-size: 12px;
  color: var(--text-fade);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 18px 0 4px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: -8px;
}

/* ---------- Card destaque ---------- */
.card.destaque {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  position: relative;
}
.card.destaque::before {
  content: "";
  position: absolute;
  left: -1px; top: -1px; bottom: -1px;
  width: 3px;
  background: var(--accent);
  border-radius: 3px 0 0 3px;
}
.card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.tag.oportunidade        { background: var(--tag-oport); color: #042b1e; }
.tag.risco               { background: var(--tag-risco); color: #2b0606; }
.tag.plataforma          { background: var(--tag-plat); color: #051529; }
.tag.aplicacao_pratica   { background: var(--tag-aplic); color: #2a1c00; }
.tag.custo               { background: var(--tag-custo); color: #1c0830; }
.vertical-pill {
  font-weight: 600;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}
.vertical-pill.ia        { color: var(--vert-ia); border: 1px solid var(--vert-ia); }
.vertical-pill.marketing { color: var(--vert-marketing); border: 1px solid var(--vert-marketing); }
.vertical-pill.mundo     { color: var(--vert-mundo); border: 1px solid var(--vert-mundo); }
.vertical-pill.local     { color: var(--vert-local); border: 1px solid var(--vert-local); }
.fonte { color: var(--text-soft); text-transform: none; letter-spacing: 0; }
.separador { color: var(--text-fade); }
.data { color: var(--text-fade); }

.headline {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 10px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.resumo {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.6;
}
.sub-itens {
  background: var(--bg-3);
  border-radius: 8px;
  padding: 8px 14px;
  margin: 0 0 14px;
  border: 1px solid var(--line-soft);
}
.sub-itens summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--text-soft);
  padding: 4px 0;
  user-select: none;
  font-weight: 500;
  list-style: none;
}
.sub-itens summary::-webkit-details-marker { display: none; }
.sub-itens summary::before {
  content: "▸ ";
  display: inline-block;
  margin-right: 4px;
  transition: transform .15s ease;
}
.sub-itens[open] summary::before { transform: rotate(90deg); }
.sub-itens ul {
  margin: 8px 0 0;
  padding: 0 0 4px 20px;
  font-size: 13px;
  color: var(--text-soft);
}
.sub-itens li {
  padding: 3px 0;
  list-style: disc;
}
.card-acoes {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}
.btn-link {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
.btn-link:hover { text-decoration: underline; }

/* ---------- Card raw ---------- */
.card.raw {
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px 16px;
  transition: background .12s ease;
}
.card.raw:hover {
  background: var(--bg-2);
  border-color: var(--line);
}
.card-meta-compacto {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11px;
  color: var(--text-soft);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tipo-icone {
  font-size: 10px;
  background: var(--bg-3);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--text-fade);
}
.titulo-raw {
  display: block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin: 4px 0;
  line-height: 1.4;
}
.titulo-raw:hover { color: var(--accent); }
.snippet {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Vazio / rodapé ---------- */
.vazio {
  max-width: 920px;
  margin: 60px auto;
  text-align: center;
  color: var(--text-soft);
  padding: 40px;
}
.vazio.oculto { display: none; }
.link {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: 14px;
  padding: 8px;
  text-decoration: underline;
}
.rodape {
  text-align: center;
  font-size: 11px;
  color: var(--text-fade);
  padding: 24px 12px 40px;
  border-top: 1px solid var(--line-soft);
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .topo-inner { padding: 12px 14px; }
  .filtros-inner { padding: 10px 14px; }
  .lista { padding: 16px 14px 60px; }
  .card.destaque { padding: 16px 18px; }
  .headline { font-size: 17px; }
  .filtros { top: 65px; }
  .busca { margin-left: 0; max-width: 100%; }
  .top-stats { font-size: 11px; }
}
