/* Efeitos leves do portal (Luan, 27/11/2026): só CSS, sem biblioteca, sem imagem extra.
   Tudo usa transform/opacity (não refaz o layout) e some com prefers-reduced-motion. */

/* 1. Fotos: zoom suave ao passar o mouse na foto ou no card inteiro */
.u-foto, .u-tarja, .u-flash, .card-img, .manchete-img, .linha-img { overflow: hidden; border-radius: var(--raio); }
.u-foto img, .u-tarja img, .u-flash img, .u-faixa6 img, .u-secao-lista img, .card-img img, .manchete-img img, .linha-img img {
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), filter .3s ease;
}
.u-foto:hover img, .u-card:hover .u-foto img, .u-secao-abre:hover .u-foto img, .u-tarja:hover img, .u-flash:hover img,
.u-faixa6 a:hover img, .u-secao-lista a:hover img, .card:hover .card-img img, .manchete:hover .manchete-img img, .linha:hover .linha-img img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

/* 2. Títulos: sublinhado que corre da esquerda em vez de aparecer de uma vez */
.u-manchete h1 a, .u-card h3 a, .u-secao-abre h3 a, .u-g3col h3 a, .card h3 a, .linha h3 a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .35s ease, color .2s ease;
}
.u-manchete h1 a:hover, .u-card h3 a:hover, .u-secao-abre h3 a:hover, .u-g3col h3 a:hover, .card h3 a:hover, .linha h3 a:hover,
.u-card:hover h3 a, .u-secao-abre:hover h3 a {
  text-decoration: none;
  background-size: 100% 1px;
}

/* 3. Menu: a linha vermelha cresce do centro */
.menu a { position: relative; }
.menu a::after {
  content: ""; position: absolute; left: 50%; right: 50%; bottom: -1px; height: 3px; background: var(--acento);
  transition: left .25s ease, right .25s ease;
}
.menu a:hover::after, .menu a[aria-current="page"]::after { left: 0; right: 0; }
.menu a:hover { border-bottom-color: transparent; }

/* 4. Mais lidas: número ganha cor e a linha desliza de leve */
.mais-lidas li { transition: transform .25s ease; }
.mais-lidas li:hover { transform: translateX(4px); }

/* 5. Botões e etiquetas: leve elevação */
.botao, button, .faixa-botao, .tag, .u-secao-tit a { transition: transform .18s ease, box-shadow .18s ease, background .18s ease, filter .18s ease; }
.botao:hover, .faixa-botao:hover, .tag:hover, .u-secao-tit a:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }

/* 6. Escudos dos times: pulinho */
.escolha-time a:hover img { transform: translateY(-3px) scale(1.08); }

/* 7. Entrada da página: o conteúdo sobe de leve ao abrir (uma vez, curto) */
@keyframes ana-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
main { animation: ana-entra .45s cubic-bezier(.2, .7, .2, 1) both; }

/* 8. Ao rolar: blocos aparecem conforme entram na tela (só onde o navegador suporta; nos outros fica tudo visível) */
@supports (animation-timeline: view()) {
  @keyframes ana-surge { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .u-secao, .u-g3col, .u-quatro, .u-faixa6, .bloco-editoria, .escolha-time, .leia-tambem, .grade-lista .card {
    animation: ana-surge linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

/* 9. Barra de leitura na matéria: fio vermelho no topo que enche conforme rola (CSS puro) */
@supports (animation-timeline: scroll()) {
  @keyframes ana-progresso { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  body:has(.materia)::before {
    content: ""; position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 50; background: var(--acento);
    transform-origin: 0 50%; animation: ana-progresso linear both; animation-timeline: scroll(root);
  }
}

/* 10. Menu fixo ganha sombra quando a página rola */
@supports (animation-timeline: scroll()) {
  @keyframes ana-sombra { to { box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .35); } }
  .menu { animation: ana-sombra linear both; animation-timeline: scroll(root); animation-range: 0 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .u-foto:hover img, .u-tarja:hover img, .card:hover .card-img img { transform: none !important; }
}
