/* =========================================================
   Animations & Micro-interactions
   ========================================================= */

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1.08);
    }
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseRadar {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.pulsing-radar {
    width: 10px;
    height: 10px;
    background: #a855f7;
    border-radius: 50%;
    animation: pulseRadar 1.8s infinite;
}

.step-spinner {
    display: none;
    width: 12px;
    height: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.step-item.running .step-num {
    display: none;
}

.step-item.running .step-spinner {
    display: block;
}

.glow-ring {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: inherit;
    border: 1px solid rgba(139, 92, 246, 0.4);
    pointer-events: none;
    animation: pulseGlow 2.5s infinite alternate ease-in-out;
}
