﻿/* ============================================
   ANIMATIONS.CSS — Animations & Visual Effects
   Grit'n Grain
   ============================================ */

/* ── Keyframes ── */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(0.5deg); }
  75% { transform: translateY(-5px) rotate(-0.5deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes slideLeft {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes slideRight {
  from { transform: translateX(-40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes rotateIn {
  from { transform: rotate(-10deg) scale(0.9); opacity: 0; }
  to { transform: rotate(0) scale(1); opacity: 1; }
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(200, 169, 110, 0.2); }
  50% { border-color: rgba(200, 169, 110, 0.5); }
}

@keyframes textGlow {
  0%, 100% { text-shadow: 0 0 10px rgba(200, 169, 110, 0.2); }
  50% { text-shadow: 0 0 20px rgba(200, 169, 110, 0.5); }
}

@keyframes dotPulse {
  0%, 80%, 100% { transform: scale(0); opacity: 0; }
  40% { transform: scale(1); opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes sunsetGlow {
  0%, 100% { 
    box-shadow: 0 0 20px rgba(233, 30, 123, 0.2), 0 0 40px rgba(233, 30, 123, 0.1); 
  }
  50% { 
    box-shadow: 0 0 30px rgba(233, 30, 123, 0.4), 0 0 60px rgba(233, 30, 123, 0.2); 
  }
}

@keyframes stadiumFlicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.7; }
  94% { opacity: 1; }
  96% { opacity: 0.8; }
  97% { opacity: 1; }
}

@keyframes canFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  33% { transform: translateY(-12px) rotate(-1deg); }
  66% { transform: translateY(-6px) rotate(-4deg); }
}

@keyframes canFloat2 {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  33% { transform: translateY(-8px) rotate(4deg); }
  66% { transform: translateY(-14px) rotate(1deg); }
}

@keyframes canFloat3 {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  33% { transform: translateY(-14px) rotate(0deg); }
  66% { transform: translateY(-4px) rotate(-3deg); }
}

/* ── Utility Classes ── */
.animate-float {
  animation: float 6s ease-in-out infinite;
}

.animate-float-slow {
  animation: floatSlow 8s ease-in-out infinite;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-shimmer {
  background: linear-gradient(90deg, transparent 25%, rgba(255,255,255,0.1) 50%, transparent 75%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

.animate-gradient {
  background-size: 300% 300%;
  animation: gradientShift 6s ease infinite;
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.animate-can-1 { animation: canFloat 7s ease-in-out infinite; }
.animate-can-2 { animation: canFloat2 8s ease-in-out infinite; }
.animate-can-3 { animation: canFloat3 6s ease-in-out infinite; }

.animate-glow-gold { animation: borderGlow 3s ease-in-out infinite; }
.animate-glow-pink { animation: sunsetGlow 3s ease-in-out infinite; }
.animate-stadium { animation: stadiumFlicker 8s ease-in-out infinite; }

/* ── Parallax ── */
.parallax-container {
  perspective: 1000px;
  overflow: hidden;
}

.parallax-layer {
  will-change: transform;
  transition: transform 0.1s linear;
}

/* ── Hover Effects ── */
.hover-lift {
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.hover-glow {
  transition: box-shadow var(--duration-base) var(--ease-out);
}

.hover-glow:hover {
  box-shadow: var(--glow-color, var(--shadow-glow-gold));
}

.hover-scale {
  transition: transform var(--duration-fast) var(--ease-spring);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ── Loading Skeleton ── */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* ── Page Transition ── */
.page-transition {
  animation: fadeIn 0.4s var(--ease-smooth);
}

/* ── Reduce Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

