/**
 * ProTrader - Animações e Efeitos Modernos
 * Animações e efeitos visuais para cards e componentes
 */

/* Animações de entrada */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glowPulse {
  0% {
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
  }
  100% {
    box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
  }
}

@keyframes borderGlow {
  0% {
    border-color: rgba(0, 255, 136, 0.3);
  }
  50% {
    border-color: rgba(0, 255, 136, 0.8);
  }
  100% {
    border-color: rgba(0, 255, 136, 0.3);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatAnimation {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Classes de animação */
.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-right {
  animation: fadeInRight 0.6s ease-out forwards;
}

.scale-in {
  animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.glow-pulse {
  animation: glowPulse 2s infinite;
}

.border-glow {
  animation: borderGlow 2s infinite;
}

.float {
  animation: floatAnimation 4s ease-in-out infinite;
}

/* Atrasos de animação */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* Efeitos de hover */
.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.5);
}

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Efeitos de fundo */
.gradient-bg {
  background: linear-gradient(135deg, #034078, #00ff88);
  background-size: 200% 200%;
  animation: gradientShift 5s ease infinite;
}

.glass-effect {
  background: rgba(1, 3, 2, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 136, 0.1);
}

/* Efeitos de texto */
.text-glow {
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.7);
}

.gradient-text {
  background: linear-gradient(90deg, #00ff88, #034078);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Efeitos de borda */
.border-gradient {
  border: 2px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  background-image: 
    linear-gradient(to right, var(--color-card-bg), var(--color-card-bg)), 
    linear-gradient(135deg, rgba(0, 255, 136, 1), rgba(3, 64, 120, 1));
}

/* Efeitos de partículas */
.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: rgba(0, 255, 136, 0.6);
  pointer-events: none;
  opacity: 0;
  animation: particleFade 2s ease-out forwards;
}

@keyframes particleFade {
  0% {
    opacity: 0.8;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x, 50px), var(--y, 50px)) scale(0);
  }
}

/* Efeito de cursor */
.cursor-glow {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: rgba(0, 255, 136, 0.5);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  mix-blend-mode: screen;
  transition: width 0.2s, height 0.2s;
}

/* Efeitos para cards de estatísticas */
.stat-card-modern {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(1, 3, 2, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 136, 0.1);
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.stat-card-modern::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 0;
  pointer-events: none;
}

.stat-card-modern:hover::before {
  opacity: 1;
}

.stat-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 255, 136, 0.3);
}

/* Efeito de linha de borda animada */
.border-line-effect {
  position: relative;
}

.border-line-effect::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00ff88, #034078);
  transition: width 0.3s ease;
}

.border-line-effect:hover::after {
  width: 100%;
}
