/* Micro-animations and Keyframes */
@keyframes floatUpAndDown {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(255, 0, 127, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 0, 127, 0.8), 0 0 10px rgba(0, 240, 255, 0.6);
    }
}

@keyframes waveMove {
    0% {
        background-position-x: 0;
    }
    100% {
        background-position-x: 1000px;
    }
}

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

.float-anim {
    animation: floatUpAndDown 4s ease-in-out infinite;
}

.pulse-badge {
    animation: pulseGlow 2.5s infinite;
}

.neon-glow-cyan {
    text-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
}

.neon-glow-pink {
    text-shadow: 0 0 10px #ff007f, 0 0 20px #ff007f;
}

.neon-glow-yellow {
    text-shadow: 0 0 10px #ffe600, 0 0 20px #ffe600;
}

/* ========================================================
   WONDERLA-STYLE IMMERSIVE AMUSEMENT PARK PRELOADER
   ======================================================== */
#wonderpark-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #060714;
    background: radial-gradient(circle at center, #161838 0%, #060714 80%);
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s ease;
}

#wonderpark-preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-sparkles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffcc00, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #ff007f, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 90px 40px, #00f0ff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ffcc00, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.4;
    animation: sparkleMove 20s linear infinite;
}

@keyframes sparkleMove {
    from { transform: translateY(0); }
    to { transform: translateY(-200px); }
}

.preloader-wheel-box {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.preloader-wheel-outer {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px dashed rgba(255, 204, 0, 0.6);
    border-radius: 50%;
    animation: spinClockwise 12s linear infinite;
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.3);
}

.preloader-wheel-inner {
    position: absolute;
    width: 80%;
    height: 80%;
    border: 2px solid rgba(0, 240, 255, 0.5);
    border-radius: 50%;
    animation: spinCounterClockwise 8s linear infinite;
}

.preloader-wheel-center {
    width: 58px;
    height: 58px;
    background: linear-gradient(135deg, #ffe600, #ff007f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    box-shadow: 0 0 30px rgba(255, 0, 127, 0.8);
    animation: pulseGlow 2s infinite;
}

@keyframes spinClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes spinCounterClockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

.preloader-brand-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: #fff;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.preloader-brand-title span {
    color: #ffe600;
    text-shadow: 0 0 15px rgba(255, 230, 0, 0.6);
}

.preloader-status-msg {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00f0ff;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
    min-height: 22px;
    margin-bottom: 25px;
}

.preloader-progress-track {
    width: 280px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.preloader-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff007f, #00f0ff, #ffe600);
    border-radius: 20px;
    transition: width 0.15s ease-out;
    box-shadow: 0 0 12px #00f0ff;
}

.preloader-percentage-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin-top: 10px;
    font-variant-numeric: tabular-nums;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-delay: -1ms !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        background-attachment: initial !important;
        scroll-behavior: auto !important;
        transition-duration: 0s !important;
        transition-delay: 0s !important;
    }
    .float-anim, .pulse-badge, .preloader-wheel-outer, .preloader-wheel-inner {
        animation: none !important;
    }
}
