/* Poses Infinitas — branco, preto e vermelho (cores da logo) */
:root {
  --vermelho: #e30613;
  --vermelho-escuro: #b00510;
  --preto: #111111;
  --cinza-texto: #444444;
  --cinza-linha: #e8e8e8;
  --fundo: #ffffff;
}

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fundo);
  color: var(--preto);
}

/* ---------- Topo ---------- */
.topo {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--fundo);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}
.topo-conteudo {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.logo { height: 64px; width: auto; display: block; }
.topo-texto h1 {
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}
.vermelho { color: var(--vermelho); }
.contador { color: var(--cinza-texto); font-size: 0.95rem; margin-top: 4px; }
.contador strong { color: var(--preto); }
.faixa-vermelha { height: 4px; background: var(--vermelho); }

@media (max-width: 560px) {
  .logo { height: 48px; }
  .topo-texto h1 { font-size: 1.35rem; }
  .contador { font-size: 0.85rem; }
}

/* ---------- Introdução / busca ---------- */
.intro {
  max-width: 820px;
  margin: 0 auto;
  padding: 34px 20px 8px;
  text-align: center;
  color: var(--cinza-texto);
  font-size: 1.05rem;
  line-height: 1.55;
}
.intro strong { color: var(--preto); }
.busca { margin-top: 20px; }
.busca input {
  width: 100%;
  max-width: 520px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  border: 2px solid var(--cinza-linha);
  border-radius: 999px;
  outline: none;
  transition: border-color 0.15s ease;
}
.busca input:focus { border-color: var(--vermelho); }
.resultado-busca { margin-top: 8px; font-size: 0.9rem; min-height: 1.2em; }

/* ---------- Galeria ---------- */
.galeria {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 16px 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
@media (max-width: 560px) {
  .galeria { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
}

.cartao {
  border: 1px solid var(--cinza-linha);
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.cartao:hover, .cartao:focus-visible {
  transform: translateY(-3px);
  border-color: var(--vermelho);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  outline: none;
}
.cartao img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #f0f0f0;
}
.cartao figcaption {
  padding: 8px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cartao figcaption::after {
  content: "ver pose →";
  color: var(--vermelho);
  font-weight: 500;
  font-size: 0.78rem;
}

.sentinela { text-align: center; padding: 26px 10px 34px; }
.carregando { color: var(--cinza-texto); font-size: 0.95rem; }
.fim { text-align: center; color: var(--cinza-texto); padding: 10px 20px 40px; }

/* ---------- Rodapé ---------- */
.rodape {
  border-top: 1px solid var(--cinza-linha);
  text-align: center;
  padding: 22px 16px 30px;
  color: var(--cinza-texto);
  font-size: 0.9rem;
}
.rodape strong { color: var(--preto); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal[hidden] { display: none; }
.modal-fundo {
  position: absolute; inset: 0;
  background: rgba(10, 10, 10, 0.82);
}
.modal-caixa {
  position: relative;
  max-width: 880px;
  max-height: 92vh;
  margin: 4vh auto;
  background: var(--fundo);
  border-radius: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.modal-caixa img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  background: #f4f4f4;
  display: block;
}
.modal-info {
  width: 100%;
  padding: 18px 24px 26px;
  border-top: 4px solid var(--vermelho);
}
.modal-info h2 {
  font-family: "Archivo", "Inter", sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
}
.modal-rotulo {
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--vermelho);
}
#modal-prompt { margin-top: 6px; line-height: 1.6; color: var(--cinza-texto); }

.modal-fechar {
  position: absolute;
  top: 10px; right: 12px;
  width: 40px; height: 40px;
  border: none; border-radius: 50%;
  background: var(--preto); color: #fff;
  font-size: 1.5rem; line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.modal-fechar:hover { background: var(--vermelho); }
.modal-nav {
  position: absolute;
  top: 30%;
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  background: rgba(17, 17, 17, 0.75); color: #fff;
  font-size: 1.6rem; line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.modal-nav:hover { background: var(--vermelho); }
.modal-ant { left: 10px; }
.modal-prox { right: 10px; }

@media (max-width: 560px) {
  .modal-caixa { margin: 2vh 10px; max-height: 96vh; }
  .modal-info { padding: 14px 16px 20px; }
}
