/* ============================================
   HIVEX Protocol - Animations
   ============================================ */

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes hexPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

@keyframes hexGlow {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(139, 92, 246, 0.5); }
    50% { opacity: 0.7; box-shadow: 0 0 20px rgba(139, 92, 246, 0.8); }
}

@keyframes loadProgress {
    0% { width: 0%; }
    30% { width: 40%; }
    60% { width: 70%; }
    80% { width: 85%; }
    100% { width: 100%; }
}

@keyframes textFlicker {
    0%, 100% { opacity: 1; }
    30% { opacity: 0.6; }
    60% { opacity: 1; }
    80% { opacity: 0.4; }
}

@keyframes radarPulse {
    0% {
        width: 10px; height: 10px;
        opacity: 1;
    }
    100% {
        width: 80px; height: 80px;
        opacity: 0;
    }
}

@keyframes huntBtnPulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4); }
    50% { box-shadow: 0 4px 28px rgba(99, 102, 241, 0.6), 0 0 40px rgba(99, 102, 241, 0.2); }
}

@keyframes mouseRun {
    0% { transform: translateX(0) scaleX(1); }
    25% { transform: translateX(40px) scaleX(1); }
    50% { transform: translateX(40px) scaleX(-1); }
    75% { transform: translateX(0) scaleX(-1); }
    100% { transform: translateX(0) scaleX(1); }
}

@keyframes catChase {
    0% { transform: translateX(-20px); }
    50% { transform: translateX(20px); }
    100% { transform: translateX(-20px); }
}

@keyframes captureFlash {
    0% { background-color: rgba(16, 185, 129, 0); }
    50% { background-color: rgba(16, 185, 129, 0.1); }
    100% { background-color: rgba(16, 185, 129, 0); }
}

@keyframes profitPop {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); opacity: 1; }
}

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

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

/* Shimmer loading effect */
.skeleton {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0.03) 25%, 
        rgba(255,255,255,0.08) 50%, 
        rgba(255,255,255,0.03) 75%
    );
    background-size: 400px 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
}

/* Capture animation overlay */
.capture-anim {
    animation: captureFlash 0.5s ease;
}

.profit-pop {
    animation: profitPop 0.4s ease;
}

/* Mouse wiggle */
.mouse-wiggle {
    animation: mouseRun 3s ease-in-out infinite;
}

/* Refresh spin */
.refresh-spin {
    animation: spinRefresh 1s linear;
}

/* Smooth page transitions */
.page-enter {
    animation: fadeIn 0.3s ease forwards;
}

/* Number count-up effect helper */
.count-up {
    transition: all 0.5s ease;
}

/* Glow effect for active hunt events */
.glow-green {
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

.glow-gold {
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.glow-red {
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

/* Typing indicator for agent status */
@keyframes dotBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.typing-dots span {
    display: inline-block;
    width: 4px; height: 4px;
    background: var(--accent-purple);
    border-radius: 50%;
    margin: 0 1px;
    animation: dotBounce 0.6s infinite;
}

.typing-dots span:nth-child(2) { animation-delay: 0.1s; }
.typing-dots span:nth-child(3) { animation-delay: 0.2s; }
