/* Easter Eggs Styles */

/* Notification Popup */
.easter-egg-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 100000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.easter-egg-notification.visible {
    opacity: 1;
    transform: translateX(0);
}

.theme-dark .easter-egg-notification {
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.3);
}

.egg-icon {
    font-size: 28px;
    animation: egg-bounce 0.5s ease infinite alternate;
}

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

.egg-message {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 500;
}

/* Glitching Name Animation */
.name-element.glitching {
    animation: name-glitch 0.1s linear infinite;
}

@keyframes name-glitch {
    0%, 100% { 
        transform: translate(0);
        text-shadow: none;
    }
    20% { 
        transform: translate(-2px, 1px);
        text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff;
    }
    40% { 
        transform: translate(2px, -1px);
        text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff;
    }
    60% { 
        transform: translate(-1px, 2px);
        text-shadow: 1px 0 #00ffff, -1px 0 #ff00ff;
    }
    80% { 
        transform: translate(1px, -2px);
        text-shadow: -1px 0 #00ffff, 1px 0 #ff00ff;
    }
}

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

/* Nyan Cat Animation */
@keyframes nyan-fly {
    0% {
        left: -100px;
        transform: translateY(-50%);
    }
    100% {
        left: calc(100% + 100px);
        transform: translateY(-50%);
    }
}

/* Idle Mode */
.idle-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 99998;
    animation: idle-fade 2s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes idle-fade {
    from { opacity: 0; }
    to { opacity: 0.3; }
}

/* Cyber Mode Enhancements */
.cyber-mode {
    position: relative;
}

.cyber-mode::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        transparent 50%,
        rgba(0, 255, 255, 0.03) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 99997;
    animation: scanline-move 0.1s linear infinite;
}

@keyframes scanline-move {
    from { transform: translateY(0); }
    to { transform: translateY(4px); }
}

/* Party Mode Enhancements */
.party-mode {
    position: relative;
}

/* Effects Disabled State */
.effects-disabled .theme-effects-container,
.effects-disabled .cursor-dot,
.effects-disabled .cursor-ring,
.effects-disabled .cursor-trail {
    display: none !important;
}

.effects-disabled .cyber-particle,
.effects-disabled .warm-orb,
.effects-disabled .cyber-grid {
    display: none !important;
}

/* Secret Achievement Badge */
.secret-achievement {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: linear-gradient(135deg, #ffd700, #ff8c00);
    color: #000;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 99999;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.4);
}

.secret-achievement.visible {
    opacity: 1;
    transform: scale(1);
}

.secret-achievement .trophy {
    font-size: 18px;
}

/* Interactive Hover State */
.name-element {
    transition: all 0.3s ease;
    user-select: none;
}

.name-element:hover {
    text-shadow: 0 0 10px var(--accent-color);
}

.name-element:active {
    transform: scale(0.95);
}

/* Arabic Circle Spin */
.name-arabic-circle {
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.name-arabic-circle:active {
    cursor: grabbing;
}

/* Responsive */
@media (max-width: 768px) {
    .easter-egg-notification {
        left: 10px;
        right: 10px;
        top: auto;
        bottom: 80px;
        transform: translateY(100%);
    }
    
    .easter-egg-notification.visible {
        transform: translateY(0);
    }
}

/* Additional Animations for New Easter Eggs */
@keyframes fall-down {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Binary text effect active state */
.binary-active {
    color: var(--accent) !important;
    text-shadow: 0 0 10px var(--accent);
    transition: all 0.3s ease;
}

.theme-light .binary-active {
    color: #8b5a2b !important;
    text-shadow: 0 0 10px rgba(139, 90, 43, 0.5);
}

/* Hacking overlay scanlines */
#hacking-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 255, 65, 0.03) 2px,
        rgba(0, 255, 65, 0.03) 4px
    );
    pointer-events: none;
    animation: scanline-scroll 0.5s linear infinite;
}

@keyframes scanline-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

/* Glitch text effect */
.glitch-active {
    position: relative;
}

/* Matrix text effect */
.matrix-text {
    font-family: 'Fira Code', monospace !important;
}

/* Typewriter cursor */
.typewriter-active::after {
    content: '|';
    animation: blink-cursor 0.7s infinite;
}

@keyframes blink-cursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Scramble effect */
.scramble-active {
    font-family: 'Fira Code', monospace;
}
