/* ==========================================================================
   NEXUS SAAS HUB — ANIMAÇÕES 100% COMPOSITOR GPU (ZERO REPAINT / 60 FPS)
   ========================================================================== */

/* Flutuação vertical pura via transform (GPU Compositor Thread) */
@keyframes floatY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes floatOrb {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Pulsar sem box-shadow no keyframes (elimina Main Thread Repaint) */
@keyframes pulseGold {
  0%, 100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.25);
    opacity: 1;
  }
}

/* Rotação em GPU com translateZ */
@keyframes rotateClockwise {
  from {
    transform: translateZ(0) rotate(0deg);
  }
  to {
    transform: translateZ(0) rotate(360deg);
  }
}

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

@keyframes bounceScale {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  70% {
    transform: scale(1.1);
    opacity: 1;
  }
  100% {
    transform: scale(1);
  }
}

/* Shimmer isolado com contain: paint (roda no hover para máxima leveza) */
.shimmer-effect {
  position: relative;
  overflow: hidden;
  contain: paint;
}

.shimmer-effect::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.25) 50%,
    transparent 70%
  );
  transform: translateX(-150%) rotate(30deg);
  will-change: transform;
}

.shimmer-effect:hover::after {
  animation: shimmerMove 1.2s ease-in-out infinite;
}

@keyframes shimmerMove {
  0% {
    transform: translateX(-150%) rotate(30deg);
  }
  100% {
    transform: translateX(150%) rotate(30deg);
  }
}

/* Toast Notifications */
.nexus-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--gold-medium);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(216, 180, 90, 0.3);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  will-change: transform, opacity;
}

.nexus-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.nexus-toast-icon {
  color: var(--gold-light);
  display: flex;
}
