/* Überraschungs-Animation Styles */
.celebration-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.celebration-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 50px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0);
    animation: popIn 0.8s ease forwards;
    max-width: 500px;
    width: 90%;
}

.user-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #ff6b6b, #feca57, #48dbfb, #ff9ff3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    font-weight: bold;
    animation: rotate 2s ease-in-out infinite;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.celebration-title {
    color: white;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.celebration-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

.close-celebration {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-celebration:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confettiFall 3s linear infinite;
}

.star-effect {
    position: absolute;
    color: #ffd700;
    font-size: 30px;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

/* Kontinuierliche Hintergrund-Effekte */
#background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-confetti {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.6;
    animation: bgConfettiFall linear infinite;
}

.bg-star {
    position: absolute;
    font-size: 20px;
    opacity: 0.4;
    animation: bgStarFloat ease-in-out infinite;
}

.bg-bubble {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: bgBubbleFloat linear infinite;
}

/* Animationen */
@keyframes popIn {
    0% { transform: scale(0) rotate(-180deg); opacity: 0; }
    50% { transform: scale(1.1) rotate(-10deg); }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

@keyframes rotate {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(5deg) scale(1.05); }
}

@keyframes confettiFall {
    0% { transform: translateY(-100vh) rotate(0deg); opacity: 1; }
    100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}

@keyframes starTwinkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 1; }
}

.pulse-effect {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 0 0 20px rgba(102, 126, 234, 0); }
}

@keyframes bgConfettiFall {
    0% { 
        transform: translateY(-20vh) rotate(0deg) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% { 
        transform: translateY(120vh) rotate(720deg) translateX(100px);
        opacity: 0;
    }
}

@keyframes bgStarFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(0.8);
        opacity: 0.2;
    }
    25% {
        transform: translateY(-20px) rotate(90deg) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(0px) rotate(180deg) scale(1.1);
        opacity: 0.4;
    }
    75% {
        transform: translateY(20px) rotate(270deg) scale(0.9);
        opacity: 0.5;
    }
}

@keyframes bgBubbleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
        transform: translateY(90vh) scale(1);
    }
    90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-20vh) scale(0.5);
        opacity: 0;
    }
}
