/* === Sparkle Effect === */
.sparkle-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: sparkle-float 3s ease-in-out infinite;
  opacity: 0;
}

.sparkle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.sparkle:nth-child(2) { left: 30%; top: 60%; animation-delay: 0.5s; }
.sparkle:nth-child(3) { left: 50%; top: 30%; animation-delay: 1s; }
.sparkle:nth-child(4) { left: 70%; top: 70%; animation-delay: 1.5s; }
.sparkle:nth-child(5) { left: 85%; top: 40%; animation-delay: 2s; }
.sparkle:nth-child(6) { left: 20%; top: 80%; animation-delay: 0.3s; }
.sparkle:nth-child(7) { left: 60%; top: 15%; animation-delay: 0.8s; }
.sparkle:nth-child(8) { left: 90%; top: 55%; animation-delay: 1.3s; }

@keyframes sparkle-float {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0.5);
  }
  20% {
    opacity: 0.8;
    transform: translateY(-10px) scale(1);
  }
  50% {
    opacity: 0.4;
    transform: translateY(-25px) scale(0.8);
  }
  80% {
    opacity: 0;
    transform: translateY(-40px) scale(0.3);
  }
}

/* === Shimmer on Hero Title === */
.hero-title {
  position: relative;
  overflow: hidden;
}

.hero-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 215, 0, 0.2) 40%,
    rgba(255, 215, 0, 0.4) 50%,
    rgba(255, 215, 0, 0.2) 60%,
    transparent 100%
  );
  animation: shimmer 4s ease-in-out infinite;
}

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

/* === Card Hover Glow === */
.outfit-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  opacity: 0;
  transition: opacity var(--transition-normal);
  box-shadow: 0 0 20px rgba(232, 160, 191, 0.3);
  pointer-events: none;
}

.outfit-card:hover::after {
  opacity: 1;
}

/* === Loading Skeleton === */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--border-light) 25%,
    rgba(232, 160, 191, 0.1) 50%,
    var(--border-light) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

/* === Pulse for Featured Badge === */
.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* === Staggered Card Animation === */
.outfit-card.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.outfit-card.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.outfit-card.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.outfit-card.fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.outfit-card.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.outfit-card.fade-in-up:nth-child(6) { animation-delay: 0.3s; }
.outfit-card.fade-in-up:nth-child(7) { animation-delay: 0.35s; }
.outfit-card.fade-in-up:nth-child(8) { animation-delay: 0.4s; }

/* === Toast Slide Animation === */
.toast {
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* === Copy Success Flash === */
.copy-flash {
  animation: copy-flash 0.3s ease;
}

@keyframes copy-flash {
  0% { background-color: var(--color-primary-bg); }
  50% { background-color: var(--color-accent-light); }
  100% { background-color: var(--color-primary-bg); }
}
