/* ============================================================
   ZilverSpel – animations.css
   Emerald & Silver theme animations
   ============================================================ */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.05); }
}
@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes glow-emerald {
  0%, 100% { box-shadow: 0 0 10px rgba(16,185,129,0.3); }
  50%       { box-shadow: 0 0 30px rgba(16,185,129,0.8), 0 0 60px rgba(16,185,129,0.4); }
}
@keyframes glow-silver {
  0%, 100% { box-shadow: 0 0 10px rgba(192,200,216,0.3); }
  50%       { box-shadow: 0 0 30px rgba(192,200,216,0.7), 0 0 60px rgba(192,200,216,0.3); }
}
@keyframes confetti-fall {
  0%   { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(100vh) rotate(720deg); opacity: 0; }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-16px); }
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
@keyframes slideInModal {
  from { opacity: 0; transform: scale(0.85) translateY(-30px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes winFlash {
  0%, 100% { background: transparent; }
  25%  { background: rgba(16,185,129,0.25); }
  75%  { background: rgba(16,185,129,0.15); }
}
@keyframes animate-fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Utility classes */
.animate-fade-in    { animation: fadeIn      0.6s ease forwards; }
.animate-fade-in-up { animation: fadeInUp    0.7s ease forwards; }
.animate-fade-up    { opacity: 0; animation: animate-fade-up 0.7s ease forwards; }
.animate-scale-in   { animation: scaleIn     0.5s ease forwards; }
.animate-float      { animation: float       3s ease-in-out infinite; }
.animate-pulse      { animation: pulse       2s ease-in-out infinite; }
.animate-bounce     { animation: bounce      1.2s infinite; }
.animate-spin       { animation: spin        1s linear infinite; }
.animate-blink      { animation: blink       1.4s ease-in-out infinite; }
.animate-glow-em    { animation: glow-emerald 2s ease-in-out infinite; }
.animate-glow-si    { animation: glow-silver  2s ease-in-out infinite; }
.win-flash          { animation: winFlash     0.8s ease 3; }

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

/* Shimmer text */
.shimmer-text {
  background: linear-gradient(90deg, #c0c0c0 0%, #e8e8e8 30%, #10b981 50%, #e8e8e8 70%, #c0c0c0 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left {
  opacity: 0; transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0; transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Confetti */
.confetti-piece {
  position: fixed; top: -10px; width: 10px; height: 14px;
  border-radius: 2px; animation: confetti-fall linear forwards;
  pointer-events: none; z-index: 9999;
}
