/* Splash Screen / Initial Loader */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        180deg,
        hsl(222 47% 11%) 0%,
        hsl(229 84% 5%) 100%
    );
    transition: opacity 0.4s ease-out;
}

#splash-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    animation: splash-fade-in 0.6s ease-out;
}

/* Logo container with glow effect */
.splash-logo {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin: 0;
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    text-shadow: 0 0 40px hsla(43, 96%, 56%, 0.3);
}

.splash-logo-primary {
    color: hsl(43 96% 56%);
    background: linear-gradient(
        135deg,
        hsl(43 96% 56%) 0%,
        hsl(38 92% 50%) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.splash-logo-secondary {
    color: hsl(215 20% 65%);
}

/* Tagline */
.splash-tagline {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: hsl(215 20% 55%);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}

/* Modern loading bar */
.splash-loader {
    margin: 3rem auto 0;
    width: 180px;
    height: 4px;
    background: hsla(215, 20%, 30%, 0.4);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.splash-loader::after {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    height: 100%;
    width: 50%;
    background: linear-gradient(
        90deg,
        transparent,
        hsl(43 96% 56%),
        hsl(43 96% 66%),
        hsl(43 96% 56%),
        transparent
    );
    border-radius: 4px;
    animation: splash-loading 1.5s ease-in-out infinite;
}

/* Loading text */
.splash-loading-text {
    margin-top: 1.5rem;
    font-size: 0.75rem;
    color: hsl(215 20% 50%);
    letter-spacing: 0.05em;
    animation: splash-text-pulse 2s ease-in-out infinite;
}

@keyframes splash-text-pulse {
    0%,
    100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Decorative elements */
.splash-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(
        circle,
        hsla(43, 96%, 56%, 0.15) 0%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    animation: splash-glow-pulse 3s ease-in-out infinite;
}

@keyframes splash-fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes splash-loading {
    0% {
        left: -40%;
    }
    100% {
        left: 100%;
    }
}

@keyframes splash-glow-pulse {
    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}
