/* Fixed Tornado Loading Animation - Content Area Only */

.tornado-loading-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 300px;
    background: rgba(15, 23, 42, 0.95);
    z-index: 999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 10px;
}

.tornado-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tornado-animation {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 20px;  /* Space between animation and text */
}

.tornado-ring {
    position: absolute;
    border: 2px solid transparent;
    border-top: 2px solid #00ffff;
    border-radius: 50%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: tornado-spin linear infinite;
}

.tornado-ring:nth-child(1) {
    width: 180px;
    height: 180px;
    animation-duration: 1.5s;
    border-top-color: #00ffff;
}

.tornado-ring:nth-child(2) {
    width: 140px;
    height: 140px;
    animation-duration: 1.2s;
    animation-direction: reverse;
    border-top-color: #0099ff;
}

.tornado-ring:nth-child(3) {
    width: 100px;
    height: 100px;
    animation-duration: 1s;
    border-top-color: #0066ff;
}

.tornado-ring:nth-child(4) {
    width: 60px;
    height: 60px;
    animation-duration: 0.8s;
    animation-direction: reverse;
    border-top-color: #0044ff;
}

.tornado-core {
    position: absolute;
    width: 8px;
    height: 100%;
    background: linear-gradient(to bottom, 
        rgba(0, 255, 255, 0.8) 0%,
        rgba(0, 153, 255, 0.6) 30%,
        rgba(0, 102, 255, 0.4) 60%,
        rgba(0, 68, 255, 0.2) 100%);
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    border-radius: 4px;
    animation: core-glow 2s ease-in-out infinite alternate;
}

.tornado-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #00aaff;
    border-radius: 50%;
    animation: particle-swirl 3s linear infinite;
}

.particle:nth-child(1) {
    left: 45%; top: 20%;
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.particle:nth-child(2) {
    left: 55%; top: 30%;
    animation-delay: -0.5s;
    animation-duration: 3s;
}

.particle:nth-child(3) {
    left: 40%; top: 40%;
    animation-delay: -1s;
    animation-duration: 2.8s;
}

.particle:nth-child(4) {
    left: 60%; top: 50%;
    animation-delay: -1.5s;
    animation-duration: 3.2s;
}

.particle:nth-child(5) {
    left: 35%; top: 60%;
    animation-delay: -2s;
    animation-duration: 2.7s;
}

.particle:nth-child(6) {
    left: 65%; top: 70%;
    animation-delay: -2.5s;
    animation-duration: 3.1s;
}

.tornado-loading-text {
    color: #00aaff;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    animation: text-pulse 1.5s ease-in-out infinite alternate;
    text-shadow: 0 0 20px rgba(0, 170, 255, 0.8);
    margin-top: 20px;  /* Space above text */
}

/* Animations */
@keyframes tornado-spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes core-glow {
    0% { 
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    }
    100% { 
        opacity: 1;
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    }
}

@keyframes particle-swirl {
    0% { 
        transform: rotate(0deg) translateX(80px) rotate(0deg);
        opacity: 0;
    }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { 
        transform: rotate(360deg) translateX(20px) rotate(-360deg);
        opacity: 0;
    }
}

@keyframes text-pulse {
    0% { 
        opacity: 0.6;
        text-shadow: 0 0 5px rgba(0, 170, 255, 0.3);
    }
    100% { 
        opacity: 1;
        text-shadow: 0 0 20px rgba(0, 170, 255, 0.8);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tornado-animation {
        width: 150px;
        height: 150px;
    }
    
    .tornado-ring:nth-child(1) { width: 135px; height: 135px; }
    .tornado-ring:nth-child(2) { width: 105px; height: 105px; }
    .tornado-ring:nth-child(3) { width: 75px; height: 75px; }
    .tornado-ring:nth-child(4) { width: 45px; height: 45px; }
    
    .tornado-loading-text {
        font-size: 16px;
    }
}