/* =============================================================================
   cursor-light.css
   Halo de luz que acompanha o mouse em áreas vazias da página.
   Carregado globalmente via base.html.
   ============================================================================= */

/* ── Halo externo (glow grande, difuso) ──────────────────────────────────── */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.07) 0%,
        rgba(59, 130, 246, 0.025) 35%,
        transparent 70%
    );
    mix-blend-mode: screen;
    will-change: left, top;
    transition: opacity 0.3s ease;
}

/* ── Core interno (ponto de luz concentrado) ─────────────────────────────── */
.cursor-glow-core {
    position: fixed;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle,
        rgba(29, 211, 224, 0.10) 0%,
        rgba(59, 130, 246, 0.05) 45%,
        transparent 70%
    );
    mix-blend-mode: screen;
    will-change: left, top;
    transition: opacity 0.3s ease;
}

/* ── Container de partículas ─────────────────────────────────────────────── */
.cursor-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* ── Partícula individual ────────────────────────────────────────────────── */
.cursor-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    background: rgba(29, 211, 224, 0.55);
    box-shadow: 0 0 6px rgba(29, 211, 224, 0.35);
    animation: cl-particle-fade 1s ease-out forwards;
    will-change: opacity, transform;
}

@keyframes cl-particle-fade {
    0%   { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.2) translateY(-18px); }
}

/* ── Desativar em telas touch (sem mouse) ────────────────────────────────── */
@media (hover: none), (pointer: coarse) {
    .cursor-glow,
    .cursor-glow-core,
    .cursor-particles {
        display: none !important;
    }
}
