/* prévia do feed. gomatheus · link do cliente · marca v4: preto e branco, Clash Display 600 e Switzer */

@font-face { font-family: "Clash Display"; src: url("fonts/ClashDisplay-Semibold.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Medium.ttf") format("truetype"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Switzer"; src: url("fonts/Switzer-Semibold.ttf") format("truetype"); font-weight: 600 700; font-style: normal; font-display: swap; }

:root {
  --tinta: #0B0B0B;
  --papel: #FBFBFB;
  --apoio: #5E5E5E;
  --branco: #FFFFFF;
  --suave: #EFEFEF;
  --linha: rgba(11, 11, 11, .13);
  --linha-media: rgba(11, 11, 11, .28);
  --erro: #C62828;
  --display: "Clash Display", "Arial Black", system-ui, sans-serif;
  --corpo: "Switzer", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --lado: 24px;
  /* cantos suaves (manual v4.2) em controles e caixas; a prévia das peças fica reta */
  --raio-p: 6px;
  --raio-m: 10px;
  --raio-g: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--papel); color: var(--tinta);
  font: 400 15px/1.5 var(--corpo); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
p { margin: 0; }
.vo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 2px; }

#app { max-width: 935px; margin: 0 auto; padding: 0 var(--lado) 40px; }
.titulo { margin: 0; font: 600 28px/1.05 var(--display); letter-spacing: -.01em; text-transform: lowercase; }
.titulo--m { font-size: 22px; }

/* ---------- topo e perfil ---------- */
.topo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 20px; border-bottom: 1px solid var(--linha-media); }
.topo-marca { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topo-go { width: 40px; height: auto; flex: none; }
.topo-para { color: var(--apoio); font-size: 13px; text-align: right; }

.perfil { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; padding: 24px 0; }
.perfil-foto { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--suave); box-shadow: 0 0 0 1px var(--linha); }
.perfil-foto--vazia { display: block; }
.perfil-usuario { font: 600 19px/1.2 var(--corpo); overflow-wrap: anywhere; }
.perfil-nums { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.perfil-nome { margin-top: 8px; font-weight: 600; font-size: 14px; }
.perfil-bio { margin-top: 2px; color: var(--apoio); font-size: 14px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.resumo {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin-bottom: 28px; padding: 14px 16px; border: 1px solid var(--linha-media); background: var(--branco); border-radius: var(--raio-m);
}
.resumo p { flex: 1 1 320px; font-size: 14.5px; line-height: 1.45; }
.resumo--pendente { border: 1.5px solid var(--tinta); border-left-width: 4px; }

/* ---------- grade ---------- */
.grade-cab { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding: 0; list-style: none; color: var(--apoio); font-size: 12.5px; }
.legenda li { display: inline-flex; align-items: center; gap: 6px; }
.amostra { width: 12px; height: 12px; border: 1.5px solid var(--tinta); border-radius: 3px; }
.amostra--para_aprovar { background: var(--tinta); }
.amostra--aprovado { background: var(--branco); }
.amostra--real { border-color: var(--linha-media); background: var(--suave); }
.grade-nota { margin: 6px 0 14px; color: var(--apoio); font-size: 13.5px; }
.grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.grade-vazia { margin: 0 0 14px; padding: 16px; border: 1px dashed var(--linha-media); color: var(--apoio); font-size: 14px; border-radius: var(--raio-m); }

.tile {
  position: relative; display: block; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; padding: 0; margin: 0;
  border: 0; background: var(--suave); cursor: pointer; text-decoration: none; color: inherit;
}
.tile-arte { position: absolute; inset: 0; overflow: hidden; background: var(--suave); }
.tile-arte img, .tile-arte video { width: 100%; height: 100%; object-fit: cover; }
.tile-arte iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: var(--branco); }
.tile-giro { position: absolute; inset: 0; display: grid; place-items: center; }
.tile-tipo { position: absolute; top: 8px; right: 8px; z-index: 1; display: grid; place-items: center; color: var(--branco); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .55)); }
.tile-tipo svg { width: 20px; height: 20px; }
.tile-pe { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.selo {
  display: inline-block; padding: 3px 7px; border: 1.5px solid var(--tinta); border-radius: var(--raio-p);
  background: var(--branco); color: var(--tinta); font: 600 11.5px/1.15 var(--corpo); white-space: nowrap;
}
.selo--para_aprovar { background: var(--tinta); color: var(--papel); }
.tile-data { padding: 3px 7px; border-radius: var(--raio-p); background: rgba(255, 255, 255, .92); font: 500 11.5px/1.15 var(--corpo); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile--para_aprovar { box-shadow: inset 0 0 0 3px var(--tinta); }
.tile--para_aprovar .tile-arte { inset: 3px; }
.tile:hover .tile-arte { opacity: .92; }
.tile--real .tile-arte { background: var(--suave); }

.rodape { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 40px; color: var(--apoio); font-size: 12.5px; }
.rodape img { height: 13px; width: auto; }

/* ---------- botões, campos e estados ---------- */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 1.5px solid var(--tinta); border-radius: var(--raio-m); background: var(--branco); color: var(--tinta);
  font: 600 14.5px/1 var(--corpo); cursor: pointer; text-decoration: none; white-space: nowrap;
}
.botao--primario { background: var(--tinta); color: var(--papel); }
.botao:disabled { opacity: .5; cursor: default; }
.botao-texto { padding: 0; border: 0; background: none; font: 600 14px/1.4 var(--corpo); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.botao-icone { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--linha-media); border-radius: var(--raio-m); background: var(--branco); cursor: pointer; }
.botao-icone:disabled { opacity: .35; cursor: default; }
.botao-icone svg { width: 20px; height: 20px; }
.campo { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--apoio); border-radius: var(--raio-m); background: var(--branco); font: 400 15px/1.45 var(--corpo); color: var(--tinta); resize: vertical; }
.estado { display: grid; justify-items: center; gap: 14px; padding: 80px 16px; text-align: center; }
.estado .titulo { font-size: 24px; }
.estado p { max-width: 460px; color: var(--apoio); }
.giro { width: 22px; height: 22px; border: 2px solid var(--linha-media); border-top-color: var(--tinta); border-radius: 50%; animation: gira .9s linear infinite; }
@keyframes gira { to { transform: rotate(360deg); } }

/* ---------- post aberto ---------- */
.post {
  width: min(980px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--raio-g);
  background: var(--papel); color: var(--tinta); box-shadow: 0 24px 80px rgba(0, 0, 0, .28); overflow: hidden;
}
.post::backdrop { background: rgba(11, 11, 11, .55); }
.post-caixa {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); grid-template-rows: auto minmax(0, 1fr);
  grid-template-areas: "arte cab" "arte info"; max-height: calc(100dvh - 32px);
}
.post-arte { grid-area: arte; display: grid; place-items: center; align-content: center; gap: 10px; padding: 20px; background: var(--suave); min-width: 0; }
.post-cab { grid-area: cab; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 0; background: var(--papel); }
.post-info { grid-area: info; display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 16px 22px 22px; overflow-y: auto; }
.post-tit { margin: 6px 0 0; font: 600 17px/1.3 var(--corpo); }
.post-legenda { padding: 12px 14px; border: 1px solid var(--linha); border-radius: var(--raio-m); background: var(--branco); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.55; }
.post-rot { margin-bottom: 6px; color: var(--apoio); font: 600 12px/1.2 var(--corpo); letter-spacing: .04em; text-transform: uppercase; }
.post-acoes { display: grid; gap: 10px; margin-top: auto; padding-top: 4px; }
.post-acoes .linha { display: flex; flex-wrap: wrap; gap: 8px; }
.post-acoes .linha .botao { flex: 1 1 140px; }
.post-nota { color: var(--apoio); font-size: 13.5px; }
.post-alerta { padding: 10px 12px; border: 1px solid var(--linha-media); border-left: 3px solid var(--erro); border-radius: var(--raio-m); background: var(--branco); font-size: 14px; }

.palco { position: relative; overflow: hidden; background: var(--branco); box-shadow: 0 0 0 1px var(--linha-media); }
.palco iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; background: var(--branco); }
.palco-toque { position: absolute; inset: 0; touch-action: pan-y; cursor: pointer; }
.palco-ctrl { display: flex; align-items: center; justify-content: center; gap: 14px; }
.palco-cont { min-width: 64px; text-align: center; font-variant-numeric: tabular-nums; font-size: 14px; }
.video-quadro { width: min(100%, 340px); aspect-ratio: 9 / 16; background: var(--tinta); }
.video-quadro video { display: block; width: 100%; height: 100%; object-fit: contain; }

.avisos { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.aviso { padding: 12px 16px; border-radius: var(--raio-m); background: var(--tinta); color: var(--papel); font-size: 14px; line-height: 1.4; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); pointer-events: auto; }
.aviso--erro { background: var(--erro); }

@media (max-width: 760px) {
  :root { --lado: 16px; }
  .titulo { font-size: 23px; }
  .titulo--m { font-size: 19px; }
  .topo { padding: 16px 0 14px; }
  .topo-para { font-size: 12px; }
  .perfil { gap: 16px; padding: 18px 0; }
  .perfil-foto { width: 72px; height: 72px; }
  .grade { gap: 2px; margin: 0 calc(var(--lado) * -1); }
  .tile-pe { left: 4px; right: 4px; bottom: 4px; }
  .selo, .tile-data { padding: 2px 5px; font-size: 10.5px; }
  .tile-data { display: none; }
  .post { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .post-caixa { grid-template-columns: 1fr; grid-template-rows: auto auto auto; grid-template-areas: "cab" "arte" "info"; max-height: 100dvh; height: 100dvh; overflow-y: auto; }
  /* no celular, a data e o fechar ficam presos no topo enquanto rola */
  .post-cab { position: sticky; top: 0; z-index: 2; padding: 12px 16px; border-bottom: 1px solid var(--linha); }
  .post-arte { padding: 12px 0; }
  .post-info { padding: 16px; }
  .post-info { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) { .giro { animation-duration: 3s; } }
