/* 
 * Psychedelic Mushroom Styles
 * Versteckter Pilz im Wald für den finalen Trigger
 */

/* Container-Modus für Pilz */
.psychedelic-mushroom.container-mode {
    position: absolute !important;
}

.psychedelic-mushroom {
    position: fixed;
    width: 35px;
    height: 45px;
    background: linear-gradient(145deg, 
        #ff6b9d 0%, 
        #ff8e8e 20%, 
        #ffd93d 40%, 
        #6bcf7f 60%, 
        #4d9de0 80%, 
        #9b59b6 100%);
    border-radius: 50% 50% 20% 20%;
    transform: translate(-50%, -50%);
    opacity: 0;
    cursor: pointer;
    filter: drop-shadow(0 0 8px rgba(255, 100, 255, 0.6)) 
            drop-shadow(0 0 15px rgba(100, 255, 200, 0.4));
    transition: opacity 12s ease-out, transform 0.3s ease;
    pointer-events: auto;
}

/* Pulsing Animation */
@keyframes mushroom-pulse {
    0% { 
        filter: drop-shadow(0 0 8px rgba(255, 100, 255, 0.6)) 
                drop-shadow(0 0 15px rgba(100, 255, 200, 0.4));
        transform: translate(-50%, -50%) scale(1);
    }
    50% { 
        filter: drop-shadow(0 0 12px rgba(255, 100, 255, 0.8)) 
                drop-shadow(0 0 20px rgba(100, 255, 200, 0.6));
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% { 
        filter: drop-shadow(0 0 8px rgba(255, 100, 255, 0.6)) 
                drop-shadow(0 0 15px rgba(100, 255, 200, 0.4));
        transform: translate(-50%, -50%) scale(1);
    }
}

.psychedelic-mushroom.pulsing {
    animation: mushroom-pulse 6s ease-in-out infinite;
}

/* Hover Effect */
.psychedelic-mushroom:hover {
    opacity: 0.8 !important;
    transform: translate(-50%, -50%) scale(1.1) !important;
    filter: drop-shadow(0 0 15px rgba(255, 100, 255, 0.9)) 
            drop-shadow(0 0 25px rgba(100, 255, 200, 0.7)) !important;
    transition: all 0.2s ease !important;
}

/* ===== CLICK-EFFEKT ===== */

/* Clicked State - Priorität über alle anderen Styles */
.psychedelic-mushroom.clicked {
    opacity: 1 !important;
    filter: drop-shadow(0 0 20px rgba(255, 100, 255, 1)) 
            drop-shadow(0 0 35px rgba(100, 255, 200, 0.9)) !important;
    animation: mushroom-click-fade 1.5s ease-out forwards !important;
    transition: none !important; /* Verhindert Konflikte */
}

/* Konzentrische Kreise um den Mushroom */
.psychedelic-mushroom.clicked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, 
        rgba(255, 100, 255, 0.4) 0%, 
        rgba(100, 255, 200, 0.3) 30%, 
        rgba(255, 217, 0, 0.2) 60%, 
        transparent 100%);
    animation: ripple-effect 1.5s ease-out forwards;
    pointer-events: none;
}

.psychedelic-mushroom.clicked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(255, 100, 255, 0.6);
    animation: ripple-ring 1.5s ease-out forwards;
    pointer-events: none;
}

/* ===== ANIMATIONEN ===== */

/* Ripple-Effekt Animation */
@keyframes ripple-effect {
    0% { 
        width: 40px; 
        height: 40px; 
        opacity: 0.8; 
    }
    50% { 
        width: 100px; 
        height: 100px; 
        opacity: 0.6; 
    }
    100% { 
        width: 150px; 
        height: 150px; 
        opacity: 0; 
    }
}

/* Ring-Effekt Animation */
@keyframes ripple-ring {
    0% { 
        width: 60px; 
        height: 60px; 
        opacity: 0.8;
        border-width: 3px;
    }
    50% { 
        width: 140px; 
        height: 140px; 
        opacity: 0.4;
        border-width: 2px;
    }
    100% { 
        width: 200px; 
        height: 200px; 
        opacity: 0;
        border-width: 1px;
    }
}

/* Hauptanimation - Pulsieren + Smooth Scale-Fade */
@keyframes mushroom-click-fade {
    0% { 
        opacity: 1;
        filter: drop-shadow(0 0 25px rgba(255, 100, 255, 1)) 
                drop-shadow(0 0 40px rgba(100, 255, 200, 1));
    }
    20% { 
        opacity: 1;
        filter: drop-shadow(0 0 35px rgba(255, 100, 255, 1)) 
                drop-shadow(0 0 50px rgba(100, 255, 200, 1));
    }
    40% { 
        opacity: 1;
        filter: drop-shadow(0 0 30px rgba(255, 100, 255, 1)) 
                drop-shadow(0 0 45px rgba(100, 255, 200, 1));
    }
    60% { 
        opacity: 1;
        filter: drop-shadow(0 0 35px rgba(255, 100, 255, 1)) 
                drop-shadow(0 0 50px rgba(100, 255, 200, 1));
    }
    80% { 
        opacity: 0.8;
        filter: drop-shadow(0 0 20px rgba(255, 100, 255, 0.8)) 
                drop-shadow(0 0 35px rgba(100, 255, 200, 0.8));
    }
    95% { 
        opacity: 0.3;
        filter: drop-shadow(0 0 10px rgba(255, 100, 255, 0.4)) 
                drop-shadow(0 0 15px rgba(100, 255, 200, 0.4));
    }
    100% { 
        opacity: 0;
        filter: drop-shadow(0 0 5px rgba(255, 100, 255, 0.2));
    }
}

/* Mushroom Stem */
.psychedelic-mushroom .mushroom-stem {
    position: absolute;
    bottom: -15px;
    left: 50%;
    width: 8px;
    height: 20px;
    background: linear-gradient(to bottom, #8e44ad, #2c3e50);
    border-radius: 0 0 4px 4px;
    transform: translateX(-50%);
}

/* Psychedelic Dots */
.psychedelic-mushroom .mushroom-dot {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Hide Effect - Smooth shrinking only (wird überschrieben durch clicked) */
.psychedelic-mushroom.hiding {
    opacity: 0 !important;
    transform: translate(-50%, -50%) scale(0.2) !important;
    transition: all 0.8s ease-out !important;
}
