/* Prevent body scrolling during loading (desktop only) */
body.loading-active {
    overflow: hidden !important;
}

/* Mobile: Allow normal overflow since loading screen covers viewport anyway */
@media (max-width: 768px) {
    body.loading-active {
        overflow: auto !important;
    }
}

/* Loading Screen Overlay */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

/* Hide loading screen */
.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Logo styling - matches existing .stream-command-title */
.loading-screen .loading-logo {
    font-size: 48px;
    text-align: center;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    background: linear-gradient(90deg, #f44336, #ff9800, #ffeb3b, #4caf50, #2196f3, #9c27b0, #f44336);
    background-size: 400% 100%;
    animation: rainbow 12s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: brightness(1.15) saturate(1.2);
    position: relative;
    display: inline-block;
}

/* Animated rainbow underline - matches main page */
.loading-screen .loading-logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, #f44336, #ff9800, #ffeb3b, #4caf50, #2196f3, #9c27b0, #f44336);
    background-size: 400% 100%;
    animation: rainbow 12s ease-in-out infinite;
    opacity: 0.2;
}

/* Rainbow animation (matches existing) */
@keyframes rainbow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .loading-screen .loading-logo {
        font-size: 32px;
        padding: 0 20px;
        letter-spacing: 2px;
    }
}

@media (max-width: 480px) {
    .loading-screen .loading-logo {
        font-size: 24px;
        padding: 0 15px;
        letter-spacing: 1.5px;
    }
}
