/* ==========================================================================
   animations.css — Keyframes & Animation Utility Classes
   ========================================================================== */

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

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

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

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

@keyframes pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(45,106,79,.4); }
  70%  { box-shadow: 0 0 0 7px rgba(45,106,79,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,106,79,0); }
}

@keyframes pulse-gold {
  0%   { box-shadow: 0 0 0 0 rgba(201,162,39,.4); }
  70%  { box-shadow: 0 0 0 7px rgba(201,162,39,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,39,0); }
}

@keyframes shimmer {
  0%   { left: -60%; }
  100% { left: 150%; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bounce-in {
  0%   { transform: scale(0); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes skeleton {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 12px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes toast-out {
  from { opacity: 1; transform: translate(-50%, 0); }
  to   { opacity: 0; transform: translate(-50%, 10px); }
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}

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

@keyframes bar-grow {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes card-hover-bar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes highlight-flash {
  0%   { box-shadow: 0 0 0 0 rgba(201,162,39,.6); }
  50%  { box-shadow: 0 0 0 5px rgba(201,162,39,.25); }
  100% { box-shadow: 0 0 0 0 rgba(201,162,39,0); }
}

/* ---------- Animation Utility Classes ---------- */
.animate-fade-up    { animation: fadeUp .35s ease both; }
.animate-fade-down  { animation: fadeDown .3s ease both; }
.animate-fade-in    { animation: fadeIn .3s ease both; }
.animate-fade-out   { animation: fadeOut .3s ease both; }
.animate-scale-in   { animation: scaleIn .25s ease both; }
.animate-slide-left { animation: slideInLeft .3s ease both; }
.animate-slide-right{ animation: slideInRight .3s ease both; }
.animate-float      { animation: float 3s ease-in-out infinite; }
.animate-spin       { animation: spin .6s linear infinite; }
.animate-bounce-in  { animation: bounce-in .4s ease both; }
.animate-highlight  { animation: highlight-flash 1.2s ease; }

/* ---------- Stagger Delay Utilities ---------- */
.delay-1 { animation-delay: .05s; }
.delay-2 { animation-delay: .10s; }
.delay-3 { animation-delay: .15s; }
.delay-4 { animation-delay: .20s; }
.delay-5 { animation-delay: .25s; }
.delay-6 { animation-delay: .30s; }
.delay-7 { animation-delay: .35s; }
.delay-8 { animation-delay: .40s; }

/* ---------- Hover Transition Helpers ---------- */
.hover-lift {
  transition: var(--transition-base);
}
.hover-lift:hover {
  transform: translateY(-3px);
}
