/* 
 * Loading Screen - Starlight Edition 
 * Designed by Antigravity for iNeedUnlock
 */

:root {
    --loader-bg-light: #ffffff;
    --loader-bg-dark: #0a0a0a;
    --accent-color: #007AFF;
    /* Apple Blue */
}

.loading-screen {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    background-color: var(--loader-bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .loading-screen {
    background-color: var(--loader-bg-dark);
}

/* Background Glow Effect */
.loading-screen::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    animation: glowPulse 4s infinite ease-in-out;
}

[data-theme="dark"] .loading-screen::before {
    background: radial-gradient(circle, rgba(0, 122, 255, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
}

.loading-content {
    position: relative;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-text {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 200;
    letter-spacing: -0.05em;
    color: #1d1d1f;
    opacity: 0;
    transform: scale(0.95);
    filter: blur(10px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: absolute;
    white-space: nowrap;
}

[data-theme="dark"] .loading-text {
    color: #f5f5f7;
}

.loading-text.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Minimalist Progress */
.loading-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
}

.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    transition: width 0.4s ease;
}

/* Brand Name Branding */
.loader-brand {
    position: absolute;
    bottom: 40px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5em;
    color: #86868b;
    font-weight: 500;
    opacity: 0;
    animation: fadeIn 1s forwards 0.5s;
}

@keyframes glowPulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

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

body.loading-active {
    overflow: hidden !important;
    touch-action: none;
}