/* Transitions and Animations CSS - Extracted from index.html */

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-primary);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
    backdrop-filter: blur(0px);
    transition: backdrop-filter 1s ease, opacity 0.5s ease;
}

.loading-overlay.active {
    display: flex;
}

.loading-overlay.blur {
    backdrop-filter: blur(20px);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes glitch {
    0%, 100% {
        text-shadow: 
            2px 2px 0 #00ffff,
            -2px -2px 0 #ff00ff;
    }
    25% {
        text-shadow: 
            -2px 2px 0 #00ffff,
            2px -2px 0 #ff00ff;
    }
    50% {
        text-shadow: 
            2px -2px 0 #00ffff,
            -2px 2px 0 #ff00ff;
    }
    75% {
        text-shadow: 
            -2px -2px 0 #00ffff,
            2px 2px 0 #ff00ff;
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInThenBlink {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

/* Classic arcade INSERT COIN style blink */
@keyframes arcadeBlink {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(52, 152, 219, 0.5);
    }
    50% {
        opacity: 0.3;
        text-shadow: none;
    }
}

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

@keyframes flicker {
    0% { opacity: 0.15; }
    50% { opacity: 0.01; }
    100% { opacity: 0.15; }
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(100%); }
}

/* Fade-in animation when transitioning to studio */
@keyframes fadeInFromSplash {
    0% {
        opacity: 0;
        filter: blur(10px);
    }
    50% {
        opacity: 0.5;
        filter: blur(5px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* Slide up animation for bottom bars/panels */
@keyframes slideUpBar {
    from {
        bottom: -100px;
        opacity: 0;
    }
    to {
        bottom: 20px;
        opacity: 1;
    }
}