/* Animations.css - Optimized animations for Vaultrade */

/* Loading Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes loadingDots {
  0%, 25% {
    content: '.';
  }
  26%, 50% {
    content: '..';
  }
  51%, 75% {
    content: '...';
  }
  76%, 100% {
    content: '...';
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

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

/* AI Effects */
@keyframes glow {
  0% {
    filter: blur(15px);
    background: rgba(13, 110, 253, 0.05);
  }
  100% {
    filter: blur(20px);
    background: rgba(13, 202, 240, 0.08);
  }
}

@keyframes scan {
  0% {
    left: -5px;
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

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

@keyframes typingEffect {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes scanEffect {
  from { width: 100%; background-position: 0% 0%; }
  to { width: 0%; background-position: 100% 0%; }
}

@keyframes scanActiveEffect {
  0% {
    width: 100%;
    background: linear-gradient(to right, 
      transparent 95%, 
      rgba(13, 202, 240, 0.1)
    );
  }
  50% {
    width: 0%;
    background: linear-gradient(to right, 
      transparent 95%, 
      rgba(13, 202, 240, 0.4)
    );
  }
  51% {
    width: 0%;
    background: linear-gradient(to right, 
      transparent 95%, 
      rgba(13, 202, 240, 0.1)
    );
  }
  100% {
    width: 100%;
    background: linear-gradient(to right, 
      transparent 95%, 
      rgba(13, 202, 240, 0.1)
    );
  }
}

@keyframes dataGlow {
  0% { color: #0dcaf0; opacity: 0.7; }
  100% { color: #5adbf6; opacity: 1; }
}

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

@keyframes pulseDot {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
    background-color: #0d6efd;
  }
  
  50% {
    transform: scale(1.5);
    opacity: 1;
    background-color: #0dcaf0;
  }
}

@keyframes aiPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 202, 240, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(13, 202, 240, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 202, 240, 0);
  }
}

/* Insight glow effect */
@keyframes glowInsight {
  0% {
    box-shadow: 0 0 5px rgba(13, 110, 253, 0.1);
  }
  100% {
    box-shadow: 0 0 10px rgba(13, 202, 240, 0.2);
  }
}

/* Status pulse for AI */
@keyframes pulseStatus {
  0% {
    background-color: rgba(13, 202, 240, 0.6);
    box-shadow: 0 0 0 0 rgba(13, 202, 240, 0.4);
  }
  70% {
    background-color: rgba(13, 202, 240, 1);
    box-shadow: 0 0 0 6px rgba(13, 202, 240, 0);
  }
  100% {
    background-color: rgba(13, 202, 240, 0.6);
    box-shadow: 0 0 0 0 rgba(13, 202, 240, 0);
  }
}

/* Optimize with will-change */
.fade-animation {
  will-change: opacity;
}

.transform-animation {
  will-change: transform;
}

.combined-animation {
  will-change: transform, opacity;
} 