/**
 * Effect Workspace Loading Screen
 * Centered branding
 */

/* Loading overlay */
#loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg);
    opacity: 1;
    transition: opacity var(--transition-slow);
}

#loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
}

#loading-screen.hidden {
    display: none;
}

/* Loading modal dialog */
.loading-modal {
    position: relative;
    width: 420px;
    height: 280px;
    background: var(--color-glass);
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Brand text */
.loading-brand {
    position: relative;
    z-index: 1;
    text-align: center;
}

.loading-logo {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: var(--color-text-primary);
    filter: drop-shadow(0 0 20px rgba(0, 212, 255, 0.4));
    animation: title-glow 3s ease-in-out infinite alternate;
}

.loading-title {
    font-family: var(--font-logotype);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    text-shadow: 
        0 0 40px rgba(0, 212, 255, 0.4),
        0 0 80px rgba(0, 212, 255, 0.2);
    animation: title-glow 3s ease-in-out infinite alternate;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.loading-title span {
    display: block;
}

@keyframes title-glow {
    0% { 
        text-shadow: 
            0 0 40px rgba(0, 212, 255, 0.3),
            0 0 80px rgba(0, 212, 255, 0.15);
    }
    100% { 
        text-shadow: 
            0 0 50px rgba(0, 212, 255, 0.5),
            0 0 100px rgba(0, 212, 255, 0.25);
    }
}

/* Tagline */
.loading-tagline {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 8px 0 0;
    opacity: 0.8;
}

/* Loading status */
.loading-status {
    margin-top: 24px;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

/* Scan line effect (subtle) */
.loading-scanline {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 0, 0, 0.02) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    opacity: 0.3;
}
