/**
 * ═══════════════════════════════════════════════════════════════════════════
 * PURPLERAT CYBER-UX & FUTURE MOTION ENGINE (2026/2027 Inovador)
 * Micro-interações, Aurora Mesh, Laser Scanners, Holographic Shimmer
 * ═══════════════════════════════════════════════════════════════════════════
 */

:root {
    --laser-color: #8b5cf6;
    --laser-glow: rgba(139, 92, 246, 0.6);
    --hud-cyan: #06b6d4;
    --hud-green: #10b981;
}

/* ── 1. BACKGROUND CYBER GRID & AURORA FLOW ── */
@keyframes auroraMove {
    0% {
        background-position: 0% 50%, 100% 50%;
    }
    50% {
        background-position: 100% 50%, 0% 50%;
    }
    100% {
        background-position: 0% 50%, 100% 50%;
    }
}

.cyber-grid-bg {
    background-image: 
        radial-gradient(circle at 50% 15%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 85% 75%, rgba(124, 58, 237, 0.08) 0%, transparent 50%),
        linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    background-position: 0 0, 0 0, -1px -1px, -1px -1px;
}

/* ── 2. SCANNER LASER ANIMATION (UPLOAD & BUILD) ── */
@keyframes laserSweep {
    0% {
        top: 0%;
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

.laser-scanner-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--laser-color) 50%, transparent 100%);
    box-shadow: 0 0 12px var(--laser-glow), 0 0 4px #fff;
    pointer-events: none;
    animation: laserSweep 2.8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    z-index: 5;
}

/* ── 3. HOLOGRAPHIC HALO & LOGO PULSE ── */
@keyframes holoPulse {
    0% {
        transform: scale(0.96);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    70% {
        transform: scale(1.04);
        box-shadow: 0 0 0 14px rgba(139, 92, 246, 0);
    }
    100% {
        transform: scale(0.96);
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.holo-halo {
    animation: holoPulse 3.5s ease-in-out infinite;
}

/* ── 4. HUD STATUS HEARTBEAT DOT ── */
@keyframes hudHeartbeat {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hud-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
    animation: hudHeartbeat 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* ── 5. PIPELINE CIRCUIT FLOW ── */
@keyframes flowEnergy {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

.pipeline-energy-stream {
    background: linear-gradient(90deg, #8b5cf6 0%, #06b6d4 50%, #8b5cf6 100%);
    background-size: 200% 100%;
    animation: flowEnergy 2s linear infinite;
}

/* ── 6. STAT CARD GLOW BORDER ON HOVER ── */
.cyber-card-glow {
    position: relative;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.cyber-card-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4) 0%, transparent 60%, rgba(6, 182, 212, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.cyber-card-glow:hover::after {
    opacity: 1;
}

.cyber-card-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 20px rgba(139, 92, 246, 0.15);
}

/* ── 7. GLITCH / HUD TEXT EFFECT ── */
.hud-mono-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary-light);
}

/* ── 8. SMOOTH SPINNER ── */
@keyframes spinSmooth {
    to { transform: rotate(360deg); }
}
.spin-smooth {
    animation: spinSmooth 0.85s linear infinite;
}
