/* Modern Micro-interactions & Animations */

/* Smooth transitions baseline */
*,
*::before,
*::after {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hover effects - Unified */
.card-hover-effect {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.15), 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Smooth fade-in on scroll */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Scale on hover - subtle */
.scale-hover {
  transition: transform 0.3s ease;
}

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

/* Glow effect on hover */
.glow-hover {
  transition: box-shadow 0.3s ease, filter 0.3s ease;
}

.glow-hover:hover {
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
  filter: brightness(1.05);
}

/* Smooth gradient shift */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-shift {
  background-size: 200% 200%;
  animation: gradientShift 8s ease infinite;
}

/* Underline animation */
.underline-hover {
  position: relative;
  text-decoration: none;
}

.underline-hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4af37, #f0d478);
  transition: width 0.3s ease;
}

.underline-hover:hover::after {
  width: 100%;
}

/* Shimmer effect (loading/highlight) */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(212, 175, 55, 0.2) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Smooth parallax scroll (subtle) */
@media (prefers-reduced-motion: no-preference) {
  .parallax-subtle {
    transform: translateZ(0);
    will-change: transform;
  }
}

/* Pulse effect for notifications/badges */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

.pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Button press effect */
.button-press:active {
  transform: scale(0.97);
  transition: transform 0.1s ease;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth border animation */
@keyframes borderPulse {
  0%, 100% {
    border-color: rgba(212, 175, 55, 0.3);
  }
  50% {
    border-color: rgba(212, 175, 55, 0.8);
  }
}

.border-pulse {
  animation: borderPulse 2s ease infinite;
}
