/* ============================================
   EASTER EGG EFFECTS
   Celebrate discoveries with style! 🥚
   ============================================ */

/* Konami Code Celebration */
.konami-celebration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: konami-flash 0.3s ease-out;
}

@keyframes konami-flash {
    0% { background: rgba(168, 85, 247, 0.3); }
    100% { background: transparent; }
}

.konami-celebration.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.konami-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 32px 48px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(168, 85, 247, 0.95));
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.5), 0 0 100px rgba(168, 85, 247, 0.3);
    animation: konami-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes konami-pop {
    0% { 
        transform: scale(0) rotate(-10deg); 
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% { 
        transform: scale(1) rotate(0); 
        opacity: 1;
    }
}

.konami-emoji {
    font-size: 4rem;
    animation: konami-bounce 0.5s ease infinite alternate;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

@keyframes konami-bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.konami-text {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: konami-glow 1s ease infinite alternate;
}

@keyframes konami-glow {
    from { text-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
    to { text-shadow: 0 0 30px rgba(255, 255, 255, 0.8), 0 0 60px rgba(251, 191, 36, 0.5); }
}

.konami-subtext {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Confetti particles */
.konami-confetti {
    position: absolute;
    top: -20px;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    animation: confetti-fall linear forwards;
    transform-origin: center;
}

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

/* Different confetti shapes */
.konami-confetti:nth-child(odd) {
    border-radius: 50%;
}

.konami-confetti:nth-child(3n) {
    width: 8px;
    height: 16px;
}

.konami-confetti:nth-child(5n) {
    width: 6px;
    height: 6px;
}

/* ============================================
   EASTER EGG UNLOCK TOAST
   Special styling for easter egg discoveries
   ============================================ */

.easter-egg-toast {
    background: linear-gradient(135deg, #7c3aed, #a855f7) !important;
    border: 2px solid rgba(251, 191, 36, 0.5) !important;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4), 0 0 20px rgba(251, 191, 36, 0.2) !important;
}

.easter-egg-toast::before {
    content: '🥚';
    margin-right: 8px;
}

/* ============================================
   SECRET PHRASE TOAST
   Subtle mystical reveal effect
   ============================================ */

.secret-phrase-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(139, 92, 246, 0.95));
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.4), 0 0 60px rgba(139, 92, 246, 0.2);
    z-index: 99998;
    animation: secret-appear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

@keyframes secret-appear {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.secret-phrase-toast.fade-out {
    animation: secret-disappear 0.5s ease forwards;
}

@keyframes secret-disappear {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px) scale(0.95);
    }
}

.secret-phrase-toast .secret-emoji {
    font-size: 1.5rem;
    animation: secret-pulse 1.5s ease infinite;
}

@keyframes secret-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.secret-phrase-toast .secret-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 0.5px;
}
