/**
 * UFO Splash Screen Styles
 * Beautiful opening animation
 */

/* Splash Screen Container */
#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: linear-gradient(135deg, #0b1120 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

#splash-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
    pointer-events: none;
}

/* Animated Stars Background */
.splash-stars {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.splash-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite ease-in-out alternate;
}

@keyframes twinkle {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* UFO Logo Container */
.splash-logo-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: floatIn 1s ease-out forwards;
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.8);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* UFO Icon */
.splash-ufo {
    font-size: 4rem;
    animation: ufoFloat 3s ease-in-out infinite, ufoGlow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6));
    margin-bottom: 20px;
}

@keyframes ufoFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
    }

    25% {
        transform: translateY(-10px) rotate(2deg);
    }

    50% {
        transform: translateY(-5px) rotate(-1deg);
    }

    75% {
        transform: translateY(-12px) rotate(1deg);
    }
}

@keyframes ufoGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.6)) drop-shadow(0 0 40px rgba(139, 92, 246, 0.3));
    }

    100% {
        filter: drop-shadow(0 0 30px rgba(99, 102, 241, 0.9)) drop-shadow(0 0 60px rgba(139, 92, 246, 0.5));
    }
}

/* UFO Light Beam */
.splash-beam {
    position: absolute;
    top: 70px;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 80px solid rgba(99, 102, 241, 0.3);
    animation: beamPulse 2s ease-in-out infinite alternate;
    border-radius: 0 0 50% 50%;
}

@keyframes beamPulse {
    0% {
        opacity: 0.3;
        transform: scaleY(0.8) scaleX(0.8);
    }

    100% {
        opacity: 0.6;
        transform: scaleY(1.2) scaleX(1.2);
    }
}

/* Brand Name */
.splash-brand {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    margin-top: 10px;
    animation: brandIn 0.8s 0.3s ease-out both;
}

@keyframes brandIn {
    0% {
        opacity: 0;
        letter-spacing: 20px;
    }

    100% {
        opacity: 1;
        letter-spacing: 4px;
    }
}

/* Tagline */
.splash-tagline {
    font-size: 0.95rem;
    color: #94a3b8;
    margin-top: 8px;
    animation: taglineIn 0.6s 0.6s ease-out both;
    text-align: center;
}

@keyframes taglineIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Ring */
.splash-loading {
    margin-top: 40px;
    width: 40px;
    height: 40px;
    border: 3px solid rgba(99, 102, 241, 0.2);
    border-top-color: #6366f1;
    border-radius: 50%;
    animation: spin 1s linear infinite, loadIn 0.5s 0.8s ease-out both;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loadIn {
    from {
        opacity: 0;
        transform: scale(0);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Motivational Quote */
.splash-quote {
    position: absolute;
    bottom: 60px;
    left: 20px;
    right: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    font-style: italic;
    animation: quoteIn 0.8s 1s ease-out both;
}

@keyframes quoteIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Version Badge */
.splash-version {
    position: absolute;
    bottom: 20px;
    font-size: 0.75rem;
    color: #475569;
    animation: fadeIn 0.5s 1.2s ease-out both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Particles */
.splash-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 3s ease-in-out infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0);
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}