/* Pixie Dust Effect CSS for Team Profile */

/* Base pixie dust effect class */
.pixie-dust-effect {
    position: relative;
    overflow: hidden;
}

/* Pixie dust particles container */
.pixie-dust-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Individual pixie dust particles */
.pixie-dust-particle {
    position: absolute;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0;
    animation: sparkle 3s infinite ease-out, twinkle 1s infinite alternate;
}

/* Floating dust particles */
.floating-dust {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0.4;
    animation: float 8s infinite ease-in-out, pulse-glow 3s infinite ease-in-out;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 0 10px rgba(186, 104, 200, 0.2);
    pointer-events: none;
}

/* Glowing dust particles */
.glowing-dust {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(0.5px);
    opacity: 0.6;
    animation: twinkle 0.8s infinite alternate, pulse-glow 2s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 15px rgba(186, 104, 200, 0.3);
    pointer-events: none;
}

/* Twinkle animation for particles */
@keyframes twinkle {
    0% {
        filter: blur(0.5px) brightness(1);
        box-shadow: 0 0 2px rgba(255, 255, 255, 0.1);
    }
    100% {
        filter: blur(0.5px) brightness(1.5);
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.3), 0 0 8px rgba(186, 104, 200, 0.3);
    }
}

/* Pixie trail effect */
.pixie-trail {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.pixie-trail-particle {
    position: absolute;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(1px);
    opacity: 0;
    animation: trail 4s infinite ease-out, twinkle 0.8s infinite alternate;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2), 0 0 10px rgba(186, 104, 200, 0.2);
}

/* Glow effect for team card with pixie dust */
.gt-team-card-item.pixie-glow {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.gt-team-card-item.pixie-glow:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.6), 0 0 40px rgba(186, 104, 200, 0.4);
    transform: translateY(-5px);
}

/* Pixie dust border effect */
.pixie-border {
    position: relative;
}

.pixie-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ba68c8, #9c27b0, #e1bee7, #ce93d8, #ba68c8);
    z-index: -1;
    border-radius: 12px;
    animation: border-pixie 4s linear infinite;
    background-size: 400%;
    filter: blur(1px);
}

/* Pixie dust overlay for team image */
.pixie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(186, 104, 200, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    mix-blend-mode: screen;
}

.gt-team-card-item:hover .pixie-overlay {
    opacity: 0.6;
}

/* Animation for pixie dust particles */
@keyframes sparkle {
    0% {
        transform: scale(0) translate(0, 0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.6;
        filter: blur(1px) brightness(1.2);
    }
    100% {
        transform: scale(1) translate(var(--tx), var(--ty));
        opacity: 0;
        filter: blur(2px) brightness(1.5);
    }
}

/* Animation for pixie trail particles */
@keyframes trail {
    0% {
        transform: scale(0) translate(var(--tx), var(--ty));
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        opacity: 0.4;
        filter: blur(1.5px) brightness(1.3);
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: scale(1.5) translate(calc(var(--tx) * 2), calc(var(--ty) * 2));
        opacity: 0;
        filter: blur(2px) brightness(1.5);
    }
}

/* Animation for pulsating glow */
@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 0 10px rgba(186, 104, 200, 0.2);
    }
    50% {
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.5), 0 0 20px rgba(186, 104, 200, 0.4);
    }
    100% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.3), 0 0 10px rgba(186, 104, 200, 0.2);
    }
}

/* Animation for floating dust particles */
@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) translateX(5px) rotate(5deg);
    }
    66% {
        transform: translateY(5px) translateX(-5px) rotate(-3deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

/* Animation for pixie dust border */
@keyframes border-pixie {
    0% {
        background-position: 0 0;
    }
    50% {
        background-position: 100% 0;
    }
    100% {
        background-position: 0 0;
    }
}

/* Floating animation for the card */
@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Apply floating animation to cards with pixie dust */
.gt-team-card-item.pixie-float {
    animation: float 6s ease-in-out infinite;
}