/* Spooky Floating Orb Effects */

/* Orb Container */
.floating-orbs-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Base Orb Styles */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(0.5px);
    mix-blend-mode: screen;
}

/* Ghost Orb - Classic White/Blue */
.orb.ghost-orb {
    background: radial-gradient(circle at 30% 30%, 
        rgba(255, 255, 255, 0.8) 0%,
        rgba(200, 220, 255, 0.6) 20%,
        rgba(150, 180, 255, 0.4) 40%,
        rgba(100, 150, 255, 0.2) 60%,
        transparent 100%);
    box-shadow: 
        0 0 20px rgba(200, 220, 255, 0.8),
        0 0 40px rgba(150, 180, 255, 0.6),
        0 0 60px rgba(100, 150, 255, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.5);
    animation: floatGhost 20s infinite ease-in-out;
}

/* Spirit Orb - Warm Golden */
.orb.spirit-orb {
    background: radial-gradient(circle at 40% 40%, 
        rgba(255, 245, 200, 0.9) 0%,
        rgba(255, 220, 100, 0.6) 25%,
        rgba(255, 200, 50, 0.4) 50%,
        rgba(255, 180, 0, 0.2) 75%,
        transparent 100%);
    box-shadow: 
        0 0 30px rgba(255, 220, 100, 0.8),
        0 0 50px rgba(255, 200, 50, 0.6),
        0 0 80px rgba(255, 180, 0, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.6);
    animation: floatSpirit 25s infinite ease-in-out;
}

/* Entity Orb - Mysterious Purple */
.orb.entity-orb {
    background: radial-gradient(circle at 35% 35%, 
        rgba(200, 150, 255, 0.8) 0%,
        rgba(150, 100, 255, 0.6) 30%,
        rgba(100, 50, 200, 0.4) 60%,
        rgba(50, 0, 150, 0.2) 85%,
        transparent 100%);
    box-shadow: 
        0 0 25px rgba(150, 100, 255, 0.8),
        0 0 45px rgba(100, 50, 200, 0.5),
        0 0 70px rgba(50, 0, 150, 0.3),
        inset 0 0 25px rgba(255, 200, 255, 0.4);
    animation: floatEntity 30s infinite ease-in-out;
}

/* Plasma Orb - Electric Green */
.orb.plasma-orb {
    background: radial-gradient(circle at 45% 45%, 
        rgba(150, 255, 150, 0.8) 0%,
        rgba(100, 255, 100, 0.6) 25%,
        rgba(50, 200, 50, 0.4) 50%,
        rgba(0, 150, 0, 0.2) 75%,
        transparent 100%);
    box-shadow: 
        0 0 20px rgba(100, 255, 100, 0.9),
        0 0 35px rgba(50, 200, 50, 0.6),
        0 0 60px rgba(0, 150, 0, 0.3),
        inset 0 0 20px rgba(200, 255, 200, 0.5);
    animation: floatPlasma 22s infinite ease-in-out;
}

/* Shadow Orb - Dark Energy */
.orb.shadow-orb {
    background: radial-gradient(circle at 50% 50%, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(20, 0, 40, 0.6) 30%,
        rgba(40, 0, 80, 0.4) 60%,
        rgba(60, 0, 120, 0.2) 85%,
        transparent 100%);
    box-shadow: 
        0 0 30px rgba(60, 0, 120, 0.8),
        0 0 50px rgba(40, 0, 80, 0.5),
        inset 0 0 20px rgba(100, 0, 200, 0.3);
    mix-blend-mode: multiply;
    animation: floatShadow 28s infinite ease-in-out;
}

/* Orb Size Variations */
.orb.small {
    width: 20px;
    height: 20px;
}

.orb.medium {
    width: 40px;
    height: 40px;
}

.orb.large {
    width: 60px;
    height: 60px;
}

.orb.xlarge {
    width: 80px;
    height: 80px;
}

/* Pulsing Effect */
.orb.pulsing {
    animation: pulse 3s infinite ease-in-out;
}

/* Float Animations */
@keyframes floatGhost {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(150px, -100px) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-100px, -200px) scale(0.9);
        opacity: 0.5;
    }
    75% {
        transform: translate(200px, 100px) scale(1.2);
        opacity: 0.7;
    }
}

@keyframes floatSpirit {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(-150px, 150px) rotate(120deg) scale(1.3);
        opacity: 0.7;
    }
    66% {
        transform: translate(100px, -150px) rotate(240deg) scale(0.8);
        opacity: 0.4;
    }
}

@keyframes floatEntity {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    20% {
        transform: translate(200px, 50px) scale(0.8);
        opacity: 0.6;
    }
    40% {
        transform: translate(-150px, 200px) scale(1.2);
        opacity: 0.3;
    }
    60% {
        transform: translate(100px, -100px) scale(1.1);
        opacity: 0.7;
    }
    80% {
        transform: translate(-200px, -50px) scale(0.9);
        opacity: 0.5;
    }
}

@keyframes floatPlasma {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: translate(-100px, -150px) scale(1.2) rotate(90deg);
        opacity: 0.4;
    }
    50% {
        transform: translate(150px, 100px) scale(0.8) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translate(-50px, 200px) scale(1.1) rotate(270deg);
        opacity: 0.5;
    }
}

@keyframes floatShadow {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    30% {
        transform: translate(100px, -200px) scale(1.4);
        opacity: 0.5;
    }
    60% {
        transform: translate(-200px, 100px) scale(0.7);
        opacity: 0.2;
    }
    90% {
        transform: translate(150px, 150px) scale(1.1);
        opacity: 0.4;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.3;
    }
}

/* Orb Trail Effect */
.orb-trail {
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: 50%;
    opacity: 0.3;
    animation: fadeTrail 1s infinite;
}

@keyframes fadeTrail {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Interactive Orbs (respond to mouse proximity) */
.orb.interactive {
    transition: all 0.3s ease;
}

.orb.interactive.nearby {
    filter: blur(2px) brightness(1.5);
    transform: scale(1.5);
}

/* Flickering Orbs */
.orb.flickering {
    animation: flicker 0.5s infinite alternate;
}

@keyframes flicker {
    0% {
        opacity: 0.8;
        filter: brightness(1);
    }
    100% {
        opacity: 0.3;
        filter: brightness(0.6);
    }
}

/* Wandering Orbs - Complex Path */
.orb.wandering {
    animation: wander 40s infinite linear;
}

@keyframes wander {
    0% {
        transform: translate(0, 0);
    }
    10% {
        transform: translate(200px, 100px);
    }
    20% {
        transform: translate(100px, 300px);
    }
    30% {
        transform: translate(-150px, 200px);
    }
    40% {
        transform: translate(-200px, -100px);
    }
    50% {
        transform: translate(0, -200px);
    }
    60% {
        transform: translate(250px, -150px);
    }
    70% {
        transform: translate(300px, 50px);
    }
    80% {
        transform: translate(150px, 150px);
    }
    90% {
        transform: translate(-100px, 100px);
    }
    100% {
        transform: translate(0, 0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .orb.xlarge {
        width: 60px;
        height: 60px;
    }
    
    .orb.large {
        width: 45px;
        height: 45px;
    }
    
    @keyframes floatGhost,
    @keyframes floatSpirit,
    @keyframes floatEntity,
    @keyframes floatPlasma,
    @keyframes floatShadow {
        25%, 50%, 75% {
            transform: translate(50px, -50px) scale(1);
        }
    }
}