﻿/* ======== LOADER EFECTOS AVANZADOS ======== */
#loading-overlay {
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at center, #000010 0%, #000 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.8s ease;
}

    #loading-overlay.fade-out {
        opacity: 0;
        pointer-events: none;
    }

/* Imagen del logo central */
.core-logo {
    position: relative;
    width: 150px;
    height: 150px;
    background-image: url('~/images/CodeMind Logo.jpeg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 20px #ff6600);
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Efecto de energía radial */
.energy-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: conic-gradient( from 0deg, rgba(255, 136, 0, 0.2), rgba(255, 0, 150, 0.4), rgba(170, 0, 255, 0.3), rgba(255, 136, 0, 0.2) );
    filter: blur(30px);
    animation: rotate 4s linear infinite, fadePulse 3s ease-in-out infinite;
}

/* Ondas luminosas saliendo del logo */
.wave {
    position: absolute;
    border: 2px solid rgba(255, 102, 0, 0.5);
    border-radius: 50%;
    opacity: 0;
    animation: waveExpand 3s ease-out infinite;
}


    .wave:nth-child(1),
    .wave:nth-child(2),
    .wave:nth-child(3) {
        animation-delay: 0s;
    }

/* Texto */
.loading-text {
    margin-top: 220px;
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffae00;
    letter-spacing: 2px;
    text-shadow: 0 0 15px #ff00ff;
    animation: glowText 2s ease-in-out infinite;
}

/* Animaciones */
@keyframes rotate {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px #ff6600);
    }

    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 25px #ff00ff);
    }
}

@keyframes fadePulse {
    0%, 100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes waveExpand {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
        border-color: rgba(255, 136, 0, 0.8);
    }

    100% {
        width: 350px;
        height: 350px;
        opacity: 0;
        border-color: rgba(255, 0, 150, 0);
    }
}

@keyframes glowText {
    0%, 100% {
        opacity: 0.6;
        text-shadow: 0 0 8px #ff8c00;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 20px #ff00ff;
    }
}
