/* ==========================================================================
   Gatos: /gatos (todos) e /gatos/{slug} (um gato)
   ========================================================================== */

.gt-cab { max-width: 760px; margin-bottom: clamp(24px, 4vw, 40px); }
.gt-contagem { margin: 12px 0 0; font-weight: 700; color: var(--accent); }

/* Cartões */
.gt-grade {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(16px, 2.4vw, 24px);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}
.gt-card { position: relative; display: flex; flex-direction: column; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.gt-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gt-card-foto { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt); }
.gt-card-foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gt-card:hover .gt-card-foto img { transform: scale(1.05); }
.gt-card-corpo { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.gt-card-meta { margin: 0 0 2px; font-size: .78rem; font-weight: 700; color: var(--accent); }
.gt-card h3 { margin: 0 0 6px; font-size: 1.3rem; }
.gt-card h3 a { color: var(--text); text-decoration: none; }
.gt-card h3 a::after { content: ""; position: absolute; inset: 0; } /* cartão inteiro clicável */
.gt-card h3 a:hover { color: var(--accent); }
.gt-card-resumo { margin: 0 0 10px; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.gt-card-tags { list-style: none; margin: auto 0 0; padding: 0; }
.gt-card-estrela .gt-card-foto img { filter: grayscale(.55); }
.gt-card-estrela:hover .gt-card-foto img { filter: none; }

.gt-sem-foto {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-size: 3.5rem; background: var(--accent-soft);
}

.gt-memoria { margin-top: clamp(40px, 6vw, 64px); }
.gt-memoria h2 { margin-bottom: 4px; }
.gt-memoria-texto { color: var(--muted); margin: 0 0 20px; }

/* Página de um gato */
.gt-voltar { margin-bottom: 20px; }
.gt-voltar a { text-decoration: none; font-weight: 600; font-size: .93rem; }

.gt-topo {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 5vw, 56px); align-items: center;
  margin-bottom: clamp(28px, 5vw, 48px);
}
.gt-foto-principal { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 5; background: var(--bg-alt); }
.gt-foto-principal a { display: block; height: 100%; cursor: zoom-in; }
.gt-foto-principal img { width: 100%; height: 100%; object-fit: cover; }
.gt-foto-principal.gt-sem-foto { font-size: 6rem; }
.gt-topo-texto h1 { margin: 0 0 6px; font-size: clamp(2.4rem, 6vw, 3.6rem); }
.gt-apelidos { margin: 0 0 14px; color: var(--muted); }
.gt-estrelinha { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); font-weight: 600; }
.gt-tags { list-style: none; padding: 0; margin: 16px 0; }

.gt-corpo {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(24px, 5vw, 56px); align-items: start;
}
.gt-corpo > :only-child { grid-column: 1 / -1; }
.gt-ficha { padding: 20px; position: sticky; top: 84px; }
.gt-ficha h2, .gt-historia h2 { font-size: 1.3rem; margin: 0 0 14px; }
.gt-ficha dl { margin: 0; display: grid; gap: 12px; }
.gt-ficha dt { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gt-ficha dd { margin: 2px 0 0; }
.gt-historia { max-width: var(--max-text); }

.gt-secao { margin-top: clamp(36px, 6vw, 60px); }
.gt-secao h2 small { font-size: .9rem; color: var(--muted); font-weight: 600; margin-left: 6px; }

/* Galeria em colunas, respeitando o formato de cada foto */
.gt-galeria { columns: 3 220px; column-gap: 12px; }
.gt-galeria figure { margin: 0 0 12px; break-inside: avoid; }
.gt-galeria a { display: block; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--bg-alt); }
.gt-galeria img { width: 100%; height: auto; transition: transform .4s ease; }
.gt-galeria a:hover img { transform: scale(1.03); }
.gt-galeria figcaption { font-size: .86rem; color: var(--muted); padding: 6px 2px 0; }

.gt-videos { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.gt-video { margin: 0; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.gt-video-abrir { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.gt-video-abrir img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.gt-video-play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; background: var(--c3); color: #fff;
}
.gt-video-abrir:hover .gt-video-play, .gt-video-abrir:focus-visible .gt-video-play { background: var(--c2); }
.gt-video-quadro { width: 100%; height: 100%; border: 0; }

.gt-mini-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px; }
.gt-mini-lista a { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 104px; text-decoration: none; color: var(--text); font-weight: 600; text-align: center; }
.gt-mini-lista img, .gt-mini-lista .gt-sem-foto { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; font-size: 2.4rem; border: 3px solid var(--surface); box-shadow: var(--shadow-lg); }
.gt-mini-lista a:hover { color: var(--accent); }

@media (max-width: 760px) {
  .gt-topo, .gt-corpo { grid-template-columns: 1fr; }
  .gt-foto-principal { max-width: 440px; }
  .gt-ficha { position: static; }
  .gt-historia { order: -1; }
  .gt-ficha dl { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
