/* =====================================================
   TU@SL Fashion — animations.css
   ===================================================== */

/* ---- Entrance Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(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.06); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Apply to elements ---- */
.hero-content { animation: fadeInUp 0.9s ease both; animation-delay: 0.2s; }
.hero-content .hero-eyebrow { animation: fadeInUp 0.8s ease both; animation-delay: 0.3s; }
.hero-content .hero-title   { animation: fadeInUp 0.8s ease both; animation-delay: 0.45s; }
.hero-content .hero-sub     { animation: fadeInUp 0.8s ease both; animation-delay: 0.6s; }
.hero-content .hero-actions { animation: fadeInUp 0.8s ease both; animation-delay: 0.75s; }

/* Scroll reveal — added by JS */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * { animation: fadeInUp 0.5s ease both; }
.stagger-children > *:nth-child(1)  { animation-delay: 0.05s; }
.stagger-children > *:nth-child(2)  { animation-delay: 0.1s; }
.stagger-children > *:nth-child(3)  { animation-delay: 0.15s; }
.stagger-children > *:nth-child(4)  { animation-delay: 0.2s; }
.stagger-children > *:nth-child(5)  { animation-delay: 0.25s; }
.stagger-children > *:nth-child(6)  { animation-delay: 0.3s; }
.stagger-children > *:nth-child(7)  { animation-delay: 0.35s; }
.stagger-children > *:nth-child(8)  { animation-delay: 0.4s; }

/* Wishlist heart pop */
@keyframes heartPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.5); }
  70%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}
.heart-pop { animation: heartPop 0.4s ease; }

/* Add to bag bounce */
@keyframes bagBounce {
  0%, 100% { transform: scale(1); }
  30% { transform: scale(1.3); }
  60% { transform: scale(0.85); }
}
.bag-bounce { animation: bagBounce 0.5s ease; }

/* Skeleton loader */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, #e9e7e2 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

/* Loading spinner */
.spinner {
  width: 24px; height: 24px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

/* Carousel slide */
@keyframes carouselIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
.carousel-active { animation: carouselIn 0.4s ease; }

/* Announcement bar */
@keyframes announceTick {
  0%   { opacity: 0; transform: translateY(6px); }
  15%  { opacity: 1; transform: translateY(0); }
  85%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-6px); }
}
.announce-active { animation: announceTick 4s ease forwards; }
