/**
 * Noghte Radial Menu - Animations
 * @package Noghte_Radial_Menu
 */

/* ══════════════════════════════════════════════════════════
   PULSE ANIMATION - Multiple expanding rings that fade out
   ══════════════════════════════════════════════════════════ */

@keyframes nrm-pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(var(--pulse-max-scale, 3));
        opacity: 0;
    }
}

.nrm-pulse-container .nrm-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    background-color: var(--pulse-color, rgba(0,0,0,0.15));
    pointer-events: none;
    opacity: 0;
    animation: nrm-pulse-ring var(--pulse-duration, 2s) ease-out infinite;
}

.nrm-pulse-container .nrm-pulse:nth-child(1) {
    animation-delay: 0s;
}

.nrm-pulse-container .nrm-pulse:nth-child(2) {
    animation-delay: var(--pulse-delay, 0.6s);
}

.nrm-pulse-container .nrm-pulse:nth-child(3) {
    animation-delay: calc(var(--pulse-delay, 0.6s) * 2);
}

.nrm-pulse-container .nrm-pulse:nth-child(4) {
    animation-delay: calc(var(--pulse-delay, 0.6s) * 3);
}

.nrm-pulse-container .nrm-pulse:nth-child(5) {
    animation-delay: calc(var(--pulse-delay, 0.6s) * 4);
}

/* ══════════════════════════════════════════════════════════
   RADAR ANIMATION - Single expanding ring that fades out
   ══════════════════════════════════════════════════════════ */

@keyframes nrm-radar-expand {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
        border-width: 2px;
    }
    10% {
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(var(--radar-max-scale, 3.5));
        opacity: 0;
        border-width: 0.5px;
    }
}

.nrm-radar-container .nrm-radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 20px;
    min-height: 20px;
    border-radius: 50%;
    border: 2px solid var(--radar-color, #000000);
    pointer-events: none;
    opacity: 0;
    animation: nrm-radar-expand var(--radar-duration, 2.5s) ease-out infinite;
}

.nrm-radar-container .nrm-radar-ring:nth-child(1) {
    animation-delay: 0s;
}

.nrm-radar-container .nrm-radar-ring:nth-child(2) {
    animation-delay: var(--radar-delay, 0.8s);
}

.nrm-radar-container .nrm-radar-ring:nth-child(3) {
    animation-delay: calc(var(--radar-delay, 0.8s) * 2);
}

/* ══════════════════════════════════════════════════════════
   DOT BREATHE - Subtle scale animation on idle
   ══════════════════════════════════════════════════════════ */

@keyframes nrm-breathe {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.03);
    }
}

.nrm-center-dot {
    animation: nrm-breathe 3s ease-in-out infinite;
}

/* ══════════════════════════════════════════════════════════
   GLOW PULSE
   ══════════════════════════════════════════════════════════ */

@keyframes nrm-glow-pulse {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

.nrm-dot-glow {
    animation: nrm-glow-pulse 2s ease-in-out infinite;
}
