/* Nuclear Theme Specific Styles */

/* Nuclear Animations */
@keyframes nuclear-pulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 20px var(--nuclear-primary));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 40px var(--nuclear-primary));
    }
}

@keyframes nuclear-glow {
    0% {
        text-shadow: 0 0 20px var(--nuclear-primary);
    }
    100% {
        text-shadow: 0 0 40px var(--nuclear-primary), 0 0 60px var(--nuclear-primary);
    }
}

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

@keyframes electron-orbit {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes nuclear-wave {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

@keyframes radiation-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(0, 255, 136, 0);
    }
}

/* Loading Screen Nuclear Theme */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--bg-secondary), var(--bg-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.nuclear-loader {
    text-align: center;
}

.reactor-core {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.atom {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nucleus {
    width: 20px;
    height: 20px;
    background: var(--gradient-nuclear);
    border-radius: 50%;
    animation: nuclear-pulse 2s infinite;
    box-shadow: 0 0 20px var(--nuclear-primary);
    z-index: 2;
}

.electron-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 2px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transform-origin: center;
}

.orbit-1 {
    width: 60px;
    height: 60px;
    animation: orbit-rotation 2s linear infinite;
}

.orbit-2 {
    width: 90px;
    height: 90px;
    animation: orbit-rotation 3s linear infinite reverse;
}

.orbit-3 {
    width: 120px;
    height: 120px;
    animation: orbit-rotation 4s linear infinite;
}

.electron {
    position: absolute;
    top: 0;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--nuclear-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--nuclear-primary);
}

/* Smooth orbit rotation */
@keyframes orbit-rotation {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

.loading-text {
    color: var(--nuclear-primary);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 3px;
}

.loading-dots {
    display: inline-block;
    margin-left: 10px;
}

.loading-dots span {
    animation: loading-dot 1.5s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loading-dot {
    0%, 80%, 100% {
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
}

/* Nuclear Alert Styles */
.nuclear-alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.nuclear-alert.critical {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--nuclear-danger);
    color: var(--nuclear-danger);
}

.nuclear-alert.warning {
    background: rgba(255, 170, 0, 0.1);
    border: 1px solid var(--nuclear-warning);
    color: var(--nuclear-warning);
}

.nuclear-alert.info {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--nuclear-primary);
    color: var(--nuclear-primary);
}

.nuclear-alert.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--nuclear-primary);
    color: var(--nuclear-primary);
}

.nuclear-alert.error {
    background: rgba(255, 51, 102, 0.1);
    border: 1px solid var(--nuclear-danger);
    color: var(--nuclear-danger);
}

.nuclear-alert i {
    font-size: 1.2rem;
    animation: nuclear-pulse 2s infinite;
}

/* Particle Effects */
.particle-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--nuclear-primary);
    border-radius: 50%;
    animation: particle-float 10s linear infinite;
    opacity: 0;
}

@keyframes particle-float {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}