/* =========================================================
   PixelAura 4K - 3D Animations & Aesthetic Keyframes
   ========================================================= */

/* 3D Card Tilt Container */
[data-3d-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.4, 1), box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

[data-3d-tilt]:hover {
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7),
              0 0 25px rgba(99, 102, 241, 0.25);
  z-index: 5;
}

/* Specular Glare Layer */
.card-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  mix-blend-mode: overlay;
  z-index: 4;
}

/* Floating Elements */
@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

.float-slow {
  animation: floatSlow 6s ease-in-out infinite;
}

/* Gradient Shimmer on Badges & Borders */
@keyframes auraShimmer {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.shimmer-gradient {
  background: linear-gradient(135deg, #10b981, #34d399, #b45309, #10b981);
  background-size: 300% 300%;
  animation: auraShimmer 8s ease infinite;
}

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.45);
  }
  50% {
    box-shadow: 0 0 30px rgba(180, 83, 9, 0.55);
  }
}

.glow-pulse {
  animation: pulseGlow 3s infinite ease-in-out;
}

/* Fade in page transitions */
@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.995);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.view-active {
  animation: viewFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast Notifications */
.pa-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.pa-toast {
  pointer-events: auto;
  min-width: 280px;
  max-width: 420px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(18, 20, 30, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.2);
  transform: translateY(30px) scale(0.9);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.pa-toast.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pa-toast-success {
  border-left: 4px solid #10b981;
}

.pa-toast-info {
  border-left: 4px solid #38bdf8;
}

.pa-toast-error {
  border-left: 4px solid #ef4444;
}

.pa-toast-icon {
  font-size: 1.25rem;
}

/* Skeleton Loading Animation */
@keyframes skeletonPulse {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.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: 200% 100%;
  animation: skeletonPulse 1.8s infinite ease-in-out;
}
