/* Liminal Spirit V2 - Mystical Splash Screen */

/* Preload Google Font for splash screen */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

/* Prevent body scroll when splash screen is active */
/* IMPORTANT: Do NOT use position:fixed on body as it breaks fixed navigation */
body.splash-active {
    overflow: hidden;
    width: 100%;
    height: 100vh;
}

/* Mystical Splash Screen */
#splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1042 50%, #2d1b69 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 800ms ease-out;
    overflow: hidden;
}

/* Vibrant cosmic background overlay */
#splash-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(168, 85, 247, 0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(255, 0, 110, 0.2) 0%, transparent 60%);
    animation: splash-bg-pulse 4s ease-in-out infinite;
}

@keyframes splash-bg-pulse {
    0%, 100% {
        opacity: 0.6;
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 1;
        filter: hue-rotate(10deg);
    }
}

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

.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: splash-fade-in 800ms ease-out;
    position: relative;
    z-index: 1;
    padding: 0 2rem;
    max-width: 100%;
    width: 100%;
}

@keyframes splash-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mystical Particles Background */
.splash-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.splash-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(0, 212, 255, 0.8);
    border-radius: 50%;
    box-shadow:
        0 0 6px rgba(0, 212, 255, 0.8),
        0 0 12px rgba(168, 85, 247, 0.6);
    animation: float-particle 6s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-50px) translateX(20px);
        opacity: 0.9;
    }
}

/* Badge Container */
.splash-badge-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin-bottom: 40px;
    animation: splash-pulse 1.5s infinite ease-in-out;
}

@keyframes splash-pulse {
    0%, 100% {
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.05);
    }
}

.splash-badge-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 212, 255, 0.6) 0%,
        rgba(168, 85, 247, 0.4) 50%,
        transparent 70%
    );
    animation: splash-glow 2s infinite ease-in-out;
    filter: blur(20px);
}

@keyframes splash-glow {
    0%, 100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1);
        box-shadow:
            0 0 40px rgba(0, 212, 255, 0.6),
            0 0 80px rgba(168, 85, 247, 0.4);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow:
            0 0 60px rgba(0, 255, 255, 0.8),
            0 0 120px rgba(168, 85, 247, 0.6);
    }
}

.splash-badge-inner {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    border: 2px solid rgba(0, 212, 255, 0.3);
    box-shadow: inset 0 0 30px rgba(0, 212, 255, 0.2);
}

.splash-badge-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8));
}

/* Liminal Spirit Text */
.splash-title {
    font-family: 'Great Vibes', cursive !important;
    font-size: 56px;
    font-weight: 400;
    letter-spacing: 2px;
    color: white;
    text-shadow:
        0 0 30px rgba(0, 212, 255, 1),
        0 0 60px rgba(168, 85, 247, 0.8),
        0 0 90px rgba(255, 0, 110, 0.6);
    animation: splash-shimmer 2s infinite ease-in-out;
    margin: 0;
    padding: 0 1rem;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(0, 255, 255, 1) 25%,
        rgba(168, 85, 247, 1) 50%,
        rgba(0, 255, 255, 1) 75%,
        rgba(255, 255, 255, 1) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-style: italic;
    white-space: nowrap;
    overflow: visible;
    text-align: center;
    width: auto;
}

@keyframes splash-shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Subtitle text */
.splash-subtitle {
    font-family: 'Great Vibes', cursive !important;
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 15px 0 0 0;
    padding: 0 1rem;
    font-style: italic;
    text-shadow:
        0 0 20px rgba(0, 212, 255, 0.8),
        0 0 40px rgba(168, 85, 247, 0.6);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 1) 0%,
        rgba(0, 255, 255, 1) 25%,
        rgba(168, 85, 247, 1) 50%,
        rgba(0, 255, 255, 1) 75%,
        rgba(255, 255, 255, 1) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: splash-shimmer 2s infinite ease-in-out, splash-fade-in 1s ease-out 0.3s both;
    white-space: nowrap;
    overflow: visible;
    text-align: center;
    width: auto;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .splash-badge-container {
        width: 140px;
        height: 140px;
    }

    .splash-badge-glow,
    .splash-badge-inner {
        width: 140px;
        height: 140px;
    }

    .splash-content {
        padding: 0 1rem;
    }

    .splash-title {
        font-size: 44px;
        font-family: 'Great Vibes', cursive !important;
        font-style: italic;
        padding: 0 0.5rem;
        white-space: nowrap;
        overflow: visible;
    }

    .splash-subtitle {
        font-size: 22px;
        font-family: 'Great Vibes', cursive !important;
        font-style: italic;
        letter-spacing: 1px;
        padding: 0 0.5rem;
        white-space: nowrap;
        overflow: visible;
    }
}
