/* Moving Clickable Icon Styles */

.moving-icon {
    position: fixed;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border: 3px solid #000;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    user-select: none;
    animation: pulse 2s infinite;
}

.moving-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 2px dashed rgba(255, 107, 107, 0.5);
    border-radius: 50%;
    animation: rotate 3s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.moving-icon:hover {
    transform: scale(1.2);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    animation-play-state: paused;
    background: linear-gradient(135deg, #ff5252, #26c6da);
}

.moving-icon:hover::after {
    border-color: rgba(255, 107, 107, 0.8);
    animation-duration: 1s;
}

.moving-icon:active {
    transform: scale(0.9);
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 107, 107, 0.7);
    }
    70% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 10px rgba(255, 107, 107, 0);
    }
    100% {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 0 rgba(255, 107, 107, 0);
    }
}

/* Bouncing animation */
@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.moving-icon.bouncing {
    animation: bounce 2s ease-in-out infinite, pulse 2s infinite;
}

/* Dark mode styles */
body.dark-mode .moving-icon {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border-color: #fff;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

body.dark-mode .moving-icon:hover {
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .moving-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .moving-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
