/* CAR-01 · Carrossel coverflow 3D — reescrito do original do 21st.dev sem React.
   Card central inteiro; ±1 e ±2 girados em perspectiva, menores e escurecidos; o resto some no
   centro. Mobile-first: o card encolhe para 76 vw mantendo a proporção 330 × 500, e a partir de
   768 px vale o tamanho da referência.
   O conteúdo do card é livre — o original é um depoimento, mas serve a qualquer cartão. */
.c-coverflow {
  --c-car-fundo-card: #141414;
  --c-car-linha: rgba(235, 235, 235, .14);
  --c-car-tinta: #ebebeb;
  --c-car-destaque: #e8ad32;
  --c-car-raio: 18px;
  --c-car-perspectiva: 1400px;
  --c-car-largura: min(330px, 76vw);
  --c-car-altura: calc(var(--c-car-largura) * 500 / 330);
  --c-car-gutter: 16px;
  --c-car-passo: calc(var(--c-car-largura) * .864);
  --c-car-passo-2: calc(var(--c-car-largura) * 1.545);
  --c-car-curva: cubic-bezier(.25, 1, .5, 1);

  position: relative;
  padding: 16px 0 8px;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}
@media (min-width: 768px) { .c-coverflow { --c-car-largura: 330px; } }

.c-coverflow__palco {
  position: relative;
  height: calc(var(--c-car-altura) + 48px);
  perspective: var(--c-car-perspectiva);
  touch-action: pan-y;               /* o dedo na vertical rola a página; na horizontal, passa o card */
}
.c-coverflow__card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--c-car-largura);
  height: var(--c-car-altura);
  margin: calc(var(--c-car-altura) / -2) 0 0 calc(var(--c-car-largura) / -2);
  border: 1px solid var(--c-car-linha);
  border-radius: var(--c-car-raio);
  overflow: hidden;
  background: var(--c-car-fundo-card);
  transform: translate3d(0, 0, 0) scale(.4) rotateY(0deg);
  transform-origin: center center;
  opacity: 0;
  z-index: 0;
  filter: brightness(.4) blur(2px);
  pointer-events: none;
  transition: transform .8s var(--c-car-curva), opacity .8s var(--c-car-curva), filter .8s var(--c-car-curva);
  -webkit-tap-highlight-color: transparent;
}
.c-coverflow__card.is-central { transform: translate3d(0, 0, 0) scale(1) rotateY(0deg); opacity: 1; z-index: 30; filter: none; pointer-events: auto; }
.c-coverflow__card.is-dir-1 { transform: translate3d(var(--c-car-passo), 0, 0) scale(.84) rotateY(-24deg); opacity: .65; z-index: 20; filter: brightness(.75); pointer-events: auto; cursor: pointer; }
.c-coverflow__card.is-dir-2 { transform: translate3d(var(--c-car-passo-2), 0, 0) scale(.68) rotateY(-38deg); opacity: .38; z-index: 10; filter: brightness(.55) blur(1px); pointer-events: auto; cursor: pointer; }
.c-coverflow__card.is-esq-1 { transform: translate3d(calc(-1 * var(--c-car-passo)), 0, 0) scale(.84) rotateY(24deg); opacity: .65; z-index: 20; filter: brightness(.75); pointer-events: auto; cursor: pointer; }
.c-coverflow__card.is-esq-2 { transform: translate3d(calc(-1 * var(--c-car-passo-2)), 0, 0) scale(.68) rotateY(38deg); opacity: .38; z-index: 10; filter: brightness(.55) blur(1px); pointer-events: auto; cursor: pointer; }

/* conteúdo do card: foto cobrindo, véu para o texto ter contraste, e o texto só no central */
.c-coverflow__foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.c-coverflow__veu {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, .40) 0%, rgba(0, 0, 0, .10) 25%, rgba(0, 0, 0, .68) 60%, rgba(0, 0, 0, .96) 100%);
}
.c-coverflow__conteudo {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 20px 18px 22px;
  text-align: center;
  color: var(--c-car-tinta);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.c-coverflow__card.is-central .c-coverflow__conteudo { opacity: 1; transform: none; }
.c-coverflow__nome { font-size: 1.65rem; font-weight: 700; line-height: 1.1; text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 3px 12px rgba(0, 0, 0, .95); }
.c-coverflow__papel { font-size: .9rem; font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em; text-shadow: 0 3px 10px rgba(0, 0, 0, .9); }
.c-coverflow__traco { width: 34px; height: 2px; margin: 5px auto 4px; border-radius: 2px; background-color: var(--c-car-destaque); }
.c-coverflow__texto { max-width: 280px; margin: 0 auto 6px; font-size: .88rem; line-height: 1.35; text-shadow: 0 2px 8px rgba(0, 0, 0, .9); }

/* setas redondas nas laterais e os pontos de paginação (o JS cria os pontos) */
.c-coverflow__seta {
  position: absolute;
  z-index: 40;
  top: calc(16px + (var(--c-car-altura) + 48px) / 2);
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--c-car-linha);
  border-radius: 50%;
  background-color: rgba(235, 235, 235, .08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--c-car-tinta);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s ease;
}
.c-coverflow__seta:hover { background-color: rgba(235, 235, 235, .16); }
.c-coverflow__seta--anterior { left: var(--c-car-gutter); }
.c-coverflow__seta--proxima { right: var(--c-car-gutter); }
.c-coverflow__seta svg { width: 20px; height: 20px; }
.c-coverflow__pontos { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.c-coverflow__ponto {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px;
  background-color: rgba(235, 235, 235, .25);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: width .3s ease, background-color .3s ease;
}
.c-coverflow__ponto[aria-selected="true"] { width: 28px; background-color: var(--c-car-destaque); }

/* o rótulo de leitor de tela, fora da tela mas na árvore */
.c-coverflow .c-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .c-coverflow__card, .c-coverflow__conteudo { transition: none; }
}
