/* Cartões da seção Conquistas (desenhados por conquistas/cartao.js).
   Pensados pro fundo azul-noite da seção. O painel usa este mesmo arquivo na prévia ao vivo. */

.cq-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.cq-cartao { background: rgba(255,255,255,.06); border-radius: var(--raio, 14px); border-top: 4px solid var(--vermelho, #f03a37); overflow: hidden; display: flex; flex-direction: column; color: #fff; line-height: 1.6; text-align: left; }
.cq-cartao[hidden] { display: none; }
.cq-cartao *, .cq-cartao *::before, .cq-cartao *::after { box-sizing: border-box; }
.cq-cartao h3, .cq-cartao h4, .cq-cartao p, .cq-cartao ul { margin: 0; }

/* A foto fica sempre no formato do cartão (16:10), seja ela deitada ou em pé: o recorte é pelo centro. */
.cq-foto { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: rgba(255,255,255,.08); }
.cq-foto img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }

.cq-corpo { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

/* Topo do cartão: selo do esporte, esporte e data, etiqueta do tipo */
.cq-topo { display: flex; align-items: center; gap: 12px; }
.cq-selo { width: 50px; height: 50px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(255,255,255,.1); }
.cq-selo img { width: 72%; height: 72%; object-fit: contain; }
.cq-meta { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cq-esporte { font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; }
.cq-meta time { font-family: "Barlow Condensed", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .92rem; color: #a9c2f2; }
.cq-tipo { margin-left: auto; align-self: flex-start; font-family: "Barlow Condensed", sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; line-height: 1.6; padding: 2px 11px; border-radius: 999px; background: rgba(255,255,255,.12); color: #d6e2fa; white-space: nowrap; }
.cq-cartao[data-tipo="titulo"] .cq-tipo,
.cq-cartao[data-tipo="medalhas"] .cq-tipo { background: var(--vermelho, #f03a37); color: #fff; }

.cq-cartao h3 { font-family: "Barlow Condensed", sans-serif; font-weight: 800; text-transform: uppercase; line-height: 1.02; letter-spacing: .01em; font-size: 1.4rem; margin-top: 4px; overflow-wrap: anywhere; }
.cq-cartao p { color: rgba(255,255,255,.75); font-size: .98rem; overflow-wrap: anywhere; }
.cq-cartao .cq-competicao { margin-top: -6px; font-family: "Barlow Condensed", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 1rem; line-height: 1.25; color: #a9c2f2; }

/* Resultado dentro do cartão: tabela de categorias ou lista de medalhas */
.cq-resultado { margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.cq-resultado h4 { font-family: "Barlow Condensed", sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; color: #a9c2f2; margin-bottom: 6px; }
.cq-resultado ul { list-style: none; margin: 0; padding: 0; display: grid; }
.cq-resultado li { display: grid; grid-template-columns: 64px 1fr; column-gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.cq-resultado li:last-child { border-bottom: 0; }
.cq-cat { grid-row: span 2; font-family: "Barlow Condensed", sans-serif; font-weight: 600; letter-spacing: .04em; color: rgba(255,255,255,.7); padding-top: 1px; }
.cq-campeao, .cq-nome { font-weight: 700; color: #fff; overflow-wrap: anywhere; }
.cq-trofeu { display: inline-block; width: 1.4em; height: 1.4em; margin-right: .3em; vertical-align: -.38em; }
.cq-vice { grid-column: 2; font-size: .9rem; color: rgba(255,255,255,.6); }
.cq-medalhas li { grid-template-columns: 36px 1fr; }
.cq-medalha { grid-row: span 2; }
.cq-medalha img { width: 36px; height: 36px; display: block; margin-top: -2px; }

/* Destaque: o primeiro cartão (o fixado ou o mais recente) ocupa a linha inteira */
.cq-destaque { grid-column: 1 / -1; }
@media (min-width: 861px) {
  .cq-destaque.com-foto { flex-direction: row; }
  .cq-destaque.com-foto .cq-foto { flex: 0 0 46%; aspect-ratio: auto; min-height: 340px; }
  .cq-destaque .cq-corpo { padding: 32px 36px 34px; justify-content: center; }
  .cq-destaque:not(.com-foto) .cq-corpo > :not(.cq-topo) { max-width: 760px; }
  .cq-destaque h3 { font-size: 2rem; }
  .cq-destaque p { font-size: 1.05rem; }
  /* no destaque, as categorias ficam lado a lado */
  .cq-destaque .cq-tabela ul { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
  .cq-destaque .cq-tabela li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 0; border-radius: 10px; background: rgba(255,255,255,.06); }
}

/* Quando o "Ver como foi" da Agenda traz até o cartão, ele pisca uma vez */
.cq-piscar { animation: cq-piscar 1.8s ease-out; }
@keyframes cq-piscar { 0%, 35% { box-shadow: 0 0 0 4px var(--dourado, #e3a82b); } }
.cq-cartao { scroll-margin-top: 96px; }

/* "Ver todas as conquistas" */
.cq-mais { margin-top: 30px; display: flex; justify-content: center; }
.cq-mais[hidden] { display: none; }
.cq-mais button { font: inherit; cursor: pointer; background: none; }
