/* Preloader Styles - Moved from index.html for Vite 7 compatibility */
:root {
    --void-dark: #0a0a0f;
    --aurora-violet: #7C3AED;
    --aurora-teal: #14B8A6;
}

#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--void-dark);
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preloader-logo {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    animation: pulse-glow 2s ease-in-out infinite;
}

.preloader-spinner {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--aurora-violet), var(--aurora-teal), var(--aurora-violet));
    animation: spin 1s linear infinite;
    position: relative;
}

.preloader-spinner::before {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--void-dark);
}

@keyframes pulse-glow {

    0%,
    100% {
        opacity: 1;
        text-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
    }

    50% {
        opacity: 0.7;
        text-shadow: 0 0 40px rgba(124, 58, 237, 0.8), 0 0 60px rgba(20, 184, 166, 0.4);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .preloader-logo {
        animation: none;
        opacity: 1;
    }

    .preloader-spinner {
        animation: none;
    }

    #preloader {
        transition: none;
    }
}