/* ══════════════════════════════════════════════════════════════
   FX.CSS — micro-interações inspiradas no design "Cognix"
   • Scroll reveal (fade-up ao entrar na tela)
   • Spotlight: brilho sutil seguindo o cursor nos cards
   Respeita prefers-reduced-motion e os temas (dark/claro/rosa).
   ══════════════════════════════════════════════════════════════ */

/* Cor do brilho do cursor — sutil, ajustada por tema */
:root { --fx-sheen: rgba(120,120,140,.10); }
:root:not([data-theme="light"]) { --fx-sheen: rgba(255,255,255,.12); }
[data-theme="dark"] { --fx-sheen: rgba(255,255,255,.13); }
[data-theme="pink"] { --fx-sheen: rgba(230,0,126,.10); }
[data-theme="blue"] { --fx-sheen: rgba(80,140,255,.12); }

/* Overlay do spotlight (filho injetado via JS) */
.fx-sheen {
    position: absolute; inset: 0; border-radius: inherit;
    pointer-events: none; opacity: 0; z-index: 2;
    transition: opacity .3s ease; mix-blend-mode: overlay;
}

/* Scroll reveal */
@media (prefers-reduced-motion: no-preference) {
    .fx-reveal {
        opacity: 0; transform: translateY(22px);
        transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
        will-change: opacity, transform;
    }
    .fx-reveal.fx-in { opacity: 1; transform: none; }
}
