/* css/temas/base.css — peças comuns a todos os temas (carrega só quando algum tema está ativo) */

/* ---- camada dos itens que caem ---- */
.tema-fx {
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}
/* página inteira: fica ATRÁS do conteúdo (os cards cobrem os itens; passam só nos vãos) */
.tema-fx--pagina { position: fixed; inset: 0; z-index: -1; }
/* home: só dentro do banner, acima da película escura e abaixo do texto */
.tema-fx--hero { position: absolute; inset: 0; z-index: 1; }

.tema-fx__item {
    position: absolute;
    top: -60px;
    display: block;
    will-change: transform;
    animation: tema-cair 20s linear infinite;
}
.tema-fx__item img {
    display: block;
    width: 100%;
    height: auto;
    animation: tema-balancar 4s ease-in-out infinite alternate;
}
.tema-fx--pausado .tema-fx__item,
.tema-fx--pausado .tema-fx__item img { animation-play-state: paused; }

/* só transform/opacity: não força o navegador a recalcular layout */
@keyframes tema-cair   { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, var(--h, 110vh), 0); } }
@keyframes tema-balancar {
    from { transform: translate3d(calc(var(--b, 14px) * -1), 0, 0) rotate(calc(var(--r, 25deg) * -1)); }
    to   { transform: translate3d(var(--b, 14px), 0, 0) rotate(var(--r, 25deg)); }
}

/* quem pede menos movimento não vê nada caindo (o JS também nem cria os itens) */
@media (prefers-reduced-motion: reduce) { .tema-fx { display: none; } }

/* ---- atalho no banner da home ---- */
.hero-tema-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding: 12px 24px;
    border-radius: 40px;
    background: #c59d5f;
    color: #111;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    transition: transform .2s ease, box-shadow .2s ease;
}
.hero-tema-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
@media (max-width: 600px) { .hero-tema-cta { font-size: 14px; padding: 11px 18px; } }
