/**
 * ═══════════════════════════════════════════════════════════════════════════
 * LA TROPA DEL INFIERNO — CYBER-UX & FUTURE MOTION ENGINE (2026/2027)
 * Micro-interações, Aurora Mesh, Laser Scanners, Holographic Shimmer
 * ═══════════════════════════════════════════════════════════════════════════
 */

:root {
    --laser-color: #dc1414;
    --laser-glow: rgba(220, 20, 20, 0.60);
    --hud-cyan: #ff4444;
    --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(220, 20, 20, 0.12) 0%, transparent 60%),
        radial-gradient(circle at 85% 75%, rgba(180, 0, 0, 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(220, 20, 20, 0.45); }
    70%  { transform: scale(1.04); box-shadow: 0 0 0 14px rgba(220, 20, 20, 0); }
    100% { transform: scale(0.96); box-shadow: 0 0 0 0 rgba(220, 20, 20, 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, #dc1414 0%, #ff4444 50%, #dc1414 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(220, 20, 20, 0.45) 0%, transparent 60%, rgba(255, 68, 68, 0.30) 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(220, 20, 20, 0.18);
}

/* ── 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; }
