/* =====================================================================
   OASIS — componentes das telas
   =====================================================================
   O `oasis.css` é o sistema visual: tokens, botões, cartões, a barra de
   abas. Aqui ficam os componentes de tela — busca, perfil, conversa,
   notificações, composição.

   A divisão é para não perder a base: token misturado com exceção de tela
   vira uma folha de 900 linhas onde ninguém sabe mais o que é fundação e
   o que é remendo.

   Larguras: o aparelho de referência é 440px (iPhone 16 Pro Max). Os
   pontos de quebra abaixo estão calibrados nele, e não em 420 — 420 não
   pega o aparelho de referência, o que já deu trabalho aqui antes.
   ===================================================================== */

/* ── Badge de contagem ───────────────────────────────────── */
/* Fica no sino e na aba de mensagens. Número, não bolinha: "3" resolve se
   vale abrir agora; um ponto só diz que existe algo. */
.oa-topo__acao { position: relative; }

.oa-badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: var(--oa-pill);
  background: var(--oa-vermelho); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 1;
  border: 2px solid var(--oa-surface);
}

.oa-aba { position: relative; }

.oa-aba__ponto {
  position: absolute; top: 8px; left: 50%; margin-left: 6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: grid; place-items: center;
  border-radius: var(--oa-pill);
  background: var(--oa-vermelho); color: #fff;
  font-size: 9.5px; font-weight: 800; line-height: 1;
}

/* ── Cabeçalho de tela interna ───────────────────────────── */
.oa-cab { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }

.oa-cab__voltar {
  display: grid; place-items: center;
  width: 36px; height: 36px; flex: 0 0 auto;
  border-radius: 10px; border: 1px solid var(--oa-line);
  background: var(--oa-surface); color: var(--oa-ink-2);
}

.oa-cab__corpo { flex: 1; min-width: 0; }
.oa-cab h1 { font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.oa-cab p  { font-size: 13.5px; color: var(--oa-ink-3); margin-top: 2px; }

/* ── Abas de conteúdo (pílulas) ──────────────────────────── */
/* Rolagem horizontal sem barra visível: em 440px cinco pílulas não cabem,
   e cortar a quinta é pior do que deixar arrastar. */
.oa-pills {
  display: flex; gap: 8px; margin-bottom: 16px;
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.oa-pills::-webkit-scrollbar { display: none; }

.oa-pill-b {
  flex: 0 0 auto;
  padding: 8px 15px; border-radius: var(--oa-pill);
  border: 1px solid var(--oa-line); background: var(--oa-surface);
  font-size: 13.5px; font-weight: 700; color: var(--oa-ink-3);
  cursor: pointer;
}
.oa-pill-b.is-on {
  background: var(--oa-azul); border-color: var(--oa-azul); color: #fff;
}

/* ── Campo de busca ──────────────────────────────────────── */
.oa-busca { position: relative; margin-bottom: 16px; }

.oa-busca svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--oa-ink-4); pointer-events: none;
}

.oa-busca input {
  width: 100%; padding: 13px 15px 13px 42px;
  border: 1px solid var(--oa-line); border-radius: var(--oa-pill);
  background: var(--oa-surface);
  font-family: inherit; font-size: 15px; color: var(--oa-ink);
}
.oa-busca input:focus {
  outline: none; border-color: var(--oa-azul);
  box-shadow: 0 0 0 3px var(--oa-azul-50);
}

.oa-busca__limpar {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; display: grid; place-items: center;
  border: none; background: none; color: var(--oa-ink-4); cursor: pointer;
}

/* ── Linha de pessoa / estabelecimento ───────────────────── */
.oa-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--oa-surface); border: 1px solid var(--oa-line);
  border-radius: var(--oa-r); padding: 12px 14px; margin-bottom: 9px;
}

.oa-item__corpo { flex: 1; min-width: 0; }

.oa-item__t {
  display: block; font-size: 14.5px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.oa-item__s {
  display: block; font-size: 12.5px; color: var(--oa-ink-4); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.oa-item__acao { flex: 0 0 auto; }

/* ── Perfil ──────────────────────────────────────────────── */
.pf-capa {
  height: 108px; margin: -16px -16px 0;
  background: linear-gradient(120deg, var(--oa-azul) 0%, #7C3AED 100%);
  background-size: cover; background-position: center;
}

.pf-cab { padding: 0 2px; margin-top: -38px; }

.pf-foto {
  width: 76px; height: 76px; border-radius: 50%;
  border: 3px solid var(--oa-surface);
  object-fit: cover;
  display: grid; place-items: center;
  background: var(--oa-azul-100); color: var(--oa-azul);
  font-size: 25px; font-weight: 800;
}

.pf-nome { font-size: 20px; font-weight: 800; letter-spacing: -.4px; margin-top: 11px; }
.pf-apelido { font-size: 13.5px; color: var(--oa-ink-4); font-weight: 600; }
.pf-bio { font-size: 14px; color: var(--oa-ink-2); line-height: 1.55; margin-top: 9px; }

.pf-meta {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--oa-ink-4); margin-top: 7px;
}

.pf-nums {
  display: flex; gap: 22px; margin: 16px 0 18px;
  padding: 14px 0; border-top: 1px solid var(--oa-line-soft);
  border-bottom: 1px solid var(--oa-line-soft);
}
.pf-num b    { display: block; font-size: 17px; font-weight: 800; }
.pf-num span { font-size: 12px; color: var(--oa-ink-4); }

.pf-acoes { display: flex; gap: 9px; margin-bottom: 22px; }

/* ── Menu de linhas ──────────────────────────────────────── */
.oa-menu {
  background: var(--oa-surface); border: 1px solid var(--oa-line);
  border-radius: var(--oa-r-lg); overflow: hidden; margin-bottom: 14px;
}

.oa-menu__i {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border-bottom: 1px solid var(--oa-line-soft);
  font-size: 14.5px; font-weight: 600;
}
.oa-menu__i:last-child { border-bottom: 0; }
.oa-menu__i:hover { background: var(--oa-line-soft); }

.oa-menu__ic {
  width: 34px; height: 34px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 10px;
  background: var(--oa-azul-50); color: var(--oa-azul);
}

.oa-menu__i span { flex: 1; min-width: 0; }

.oa-menu__qtd {
  flex: 0 0 auto; min-width: 20px; height: 20px; padding: 0 6px;
  display: grid; place-items: center; border-radius: var(--oa-pill);
  background: var(--oa-vermelho); color: #fff;
  font-size: 11px; font-weight: 800;
}

.oa-menu__i--sair .oa-menu__ic { background: var(--oa-vermelho-50); color: var(--oa-vermelho); }
.oa-menu__i--sair { color: var(--oa-vermelho); }

/* ── Grade de publicações ────────────────────────────────── */
.pf-grade {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}

.pf-grade a {
  position: relative; aspect-ratio: 1; overflow: hidden;
  background: var(--oa-line-soft); border-radius: 6px;
}
.pf-grade img { width: 100%; height: 100%; object-fit: cover; }

.pf-grade__txt {
  padding: 9px; font-size: 11.5px; line-height: 1.45;
  color: var(--oa-ink-3); overflow: hidden;
}

/* ── Notificações ────────────────────────────────────────── */
.nt-i {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; margin-bottom: 8px;
  background: var(--oa-surface); border: 1px solid var(--oa-line);
  border-radius: var(--oa-r);
}
.nt-i--nova { background: var(--oa-azul-50); border-color: var(--oa-azul-100); }

.nt-i__ic {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: grid; place-items: center; border-radius: 11px;
}

.nt-i__t { font-size: 14px; font-weight: 700; }
.nt-i__c { font-size: 13px; color: var(--oa-ink-3); line-height: 1.5; margin-top: 2px; }
.nt-i__q { font-size: 11.5px; color: var(--oa-ink-4); margin-top: 4px; }

/* ── Conversa ────────────────────────────────────────────── */
/* 1.03.72 — a conversa foi refeita pelo mockup de Mensagens e o desenho
   dela mora em `assets/vf/mensagens.css` (carregada só nas telas de
   mensagens). Aqui ficou só o campo de escrever com o botão redondo, que
   o comentário da publicação (`pages/publicacao.php`) também usa. */
.cv-escrever {
  display: flex; align-items: flex-end; gap: 9px;
  padding-top: 11px; border-top: 1px solid var(--oa-line);
}

.cv-escrever textarea {
  flex: 1; min-width: 0; max-height: 110px; min-height: 44px;
  padding: 12px 15px; border: 1px solid var(--oa-line);
  border-radius: 22px; background: var(--oa-surface);
  font-family: inherit; font-size: 15px; resize: none;
}
.cv-escrever textarea:focus {
  outline: none; border-color: var(--oa-azul);
  box-shadow: 0 0 0 3px var(--oa-azul-50);
}

.cv-enviar {
  width: 44px; height: 44px; flex: 0 0 auto;
  display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: var(--oa-azul); color: #fff; cursor: pointer;
}
.cv-enviar:disabled { background: var(--oa-line); color: var(--oa-ink-4); cursor: default; }

/* ── Composição ──────────────────────────────────────────── */
.pb-quem { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.pb-quem__n { font-size: 15px; font-weight: 700; }

.pb-texto {
  width: 100%; min-height: 150px; padding: 0;
  border: none; background: none; resize: none;
  font-family: inherit; font-size: 17px; line-height: 1.6; color: var(--oa-ink);
}
.pb-texto:focus { outline: none; }
.pb-texto::placeholder { color: var(--oa-ink-4); }

.pb-previa {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px;
  margin: 14px 0;
}
.pb-previa figure {
  position: relative; margin: 0; aspect-ratio: 1;
  border-radius: var(--oa-r); overflow: hidden; background: var(--oa-line-soft);
}
.pb-previa img { width: 100%; height: 100%; object-fit: cover; }

.pb-previa button {
  position: absolute; top: 5px; right: 5px;
  width: 24px; height: 24px; display: grid; place-items: center;
  border: none; border-radius: 50%;
  background: rgba(15, 23, 42, .72); color: #fff;
  font-size: 15px; line-height: 1; cursor: pointer;
}

.pb-barra {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 0; border-top: 1px solid var(--oa-line);
  border-bottom: 1px solid var(--oa-line); margin-bottom: 16px;
}

.pb-anexo {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: var(--oa-pill);
  border: 1px solid var(--oa-line); background: var(--oa-surface);
  font-size: 13.5px; font-weight: 700; color: var(--oa-ink-2); cursor: pointer;
}

.pb-conta { margin-left: auto; font-size: 12.5px; color: var(--oa-ink-4); font-weight: 600; }
.pb-conta.is-perto { color: var(--oa-vermelho); }

/* ── Aviso em tela ───────────────────────────────────────── */
.oa-aviso {
  padding: 12px 15px; border-radius: var(--oa-r);
  font-size: 13.5px; line-height: 1.5; margin-bottom: 14px;
}
.oa-aviso--erro  { background: var(--oa-vermelho-50); color: #B91C1C; border: 1px solid #FECACA; }
.oa-aviso--ok    { background: var(--oa-verde-50);    color: #15803D; border: 1px solid #BBF7D0; }
.oa-aviso--info  { background: var(--oa-azul-50);     color: var(--oa-azul); border: 1px solid var(--oa-azul-100); }

/* ── Cartão de atalho para as plataformas ────────────────── */
.oa-plat {
  display: flex; align-items: center; gap: 13px;
  padding: 15px; margin-bottom: 10px;
  background: var(--oa-surface); border: 1px solid var(--oa-line);
  border-radius: var(--oa-r-lg);
}
.oa-plat img, .oa-plat .fr-ico { border-radius: 13px; flex: 0 0 auto; }
.oa-plat__t { font-size: 15px; font-weight: 700; }
.oa-plat__s { font-size: 12.5px; color: var(--oa-ink-4); margin-top: 1px; }


