/* ==========================================================================
   SUPANOVA Animations & Interactive Effects
   3개 템플릿에서 추출한 CSS 애니메이션 & 인터랙션
   ========================================================================== */

/* ── 1. Scroll Reveal: Slide Up ── */
.sn-reveal-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s var(--sn-ease-out-expo);
}
.sn-reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

/* ── 2. Scroll Reveal: Text Clip ── */
.sn-reveal-text {
  transform: translateY(100%);
  opacity: 0;
  transition: all 0.8s var(--sn-ease-out-expo);
}
.sn-reveal-text.active {
  transform: translateY(0);
  opacity: 1;
}

/* ── 3. Scroll Reveal: Fade In ── */
.sn-fade-in {
  opacity: 0;
  transition: opacity 1s ease-out;
}
.sn-fade-in.active {
  opacity: 1;
}

/* ── 4. Marquee (Infinite Scroll Text) ── */
@keyframes sn-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.sn-marquee {
  overflow: hidden;
  white-space: nowrap;
}
.sn-marquee-content {
  display: inline-block;
  animation: sn-marquee 20s linear infinite;
}
.sn-marquee-content--slow {
  animation-duration: 30s;
}
.sn-marquee-content--fast {
  animation-duration: 12s;
}

/* ── 5. Gradient Text Shine ── */
@keyframes sn-shine {
  to { background-position: 200% center; }
}
.sn-text-shine {
  background: linear-gradient(to right, #fff 20%, var(--sn-indigo) 40%, var(--sn-purple) 60%, #fff 80%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: sn-shine 5s linear infinite;
}

/* ── 6. Float (Hover Levitation) ── */
@keyframes sn-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.sn-float {
  animation: sn-float 6s ease-in-out infinite;
}

/* ── 7. Spin Slow ── */
.sn-spin-slow {
  animation: spin 12s linear infinite;
}

/* ── 8. Pulse Slow ── */
.sn-pulse-slow {
  animation: pulse 4s var(--sn-ease-bounce) infinite;
}

/* ── 9. Image Hover Scale ── */
.sn-img-scale {
  transition: transform var(--sn-duration-slower) var(--sn-ease-smooth);
}
.group:hover .sn-img-scale {
  transform: scale(1.1);
}

/* ── 10. Grayscale to Color ── */
.sn-grayscale-hover {
  filter: grayscale(100%);
  transition: filter var(--sn-duration-slower) ease;
}
.group:hover .sn-grayscale-hover {
  filter: grayscale(0%);
}

/* ── 11. Text Reveal on Hover (Gradient Wipe) ── */
.sn-text-wipe {
  background: linear-gradient(to right, #ffffff 50%, #333 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position var(--sn-duration-slow) ease;
}
.group:hover .sn-text-wipe {
  background-position: 0 0;
}

/* ── 12. Button Fill Animation ── */
.sn-btn-fill {
  position: relative;
  overflow: hidden;
}
.sn-btn-fill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--sn-indigo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--sn-duration-normal) ease-out;
  z-index: 0;
}
.sn-btn-fill:hover::before {
  transform: scaleX(1);
}
.sn-btn-fill > * {
  position: relative;
  z-index: 1;
}

/* ── 13. Card Hover Border Glow ── */
.sn-card-glow {
  border: 1px solid var(--sn-border);
  transition: border-color var(--sn-duration-slow) ease, box-shadow var(--sn-duration-slow) ease;
}
.sn-card-glow:hover {
  border-color: var(--sn-neon);
  box-shadow: var(--sn-shadow-neon);
}

/* ── 14. Corner Blob Expand ── */
.sn-corner-blob {
  position: relative;
  overflow: hidden;
}
.sn-corner-blob::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 5rem;
  height: 5rem;
  background: var(--sn-neon-subtle);
  border-bottom-left-radius: 100%;
  margin-right: -2.5rem;
  margin-top: -2.5rem;
  transition: transform var(--sn-duration-slow) ease;
}
.sn-corner-blob:hover::after {
  transform: scale(1.5);
}

/* ── 15. Overlay Color Shift ── */
.sn-overlay-shift {
  position: relative;
}
.sn-overlay-shift::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background var(--sn-duration-slow) ease;
}
.group:hover .sn-overlay-shift::after,
.sn-overlay-shift:hover::after {
  background: transparent;
}

/* ── 16. Slide Up Content on Hover ── */
.sn-slide-up {
  transform: translateY(10px);
  opacity: 0;
  transition: all var(--sn-duration-slow) ease;
}
.group:hover .sn-slide-up {
  transform: translateY(0);
  opacity: 1;
}

/* ── 17. Neon Text Shadow ── */
.sn-neon-text {
  text-shadow: 0 0 10px var(--sn-neon-muted);
}

/* ── 18. Noise Overlay ── */
.sn-noise::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.05;
  background: url('https://grainy-gradients.vercel.app/noise.svg');
}

/* ── 19. Grid Background ── */
.sn-grid-bg {
  background-size: 40px 40px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* ── 20. Selection Colors ── */
.sn-select-invert::selection { background: #F5F5F5; color: #050505; }
.sn-select-neon::selection { background: #ccff00; color: #000; }
.sn-select-indigo::selection { background: #6366f1; color: #fff; }

/* ── 21. Custom Scrollbar ── */
.sn-scrollbar::-webkit-scrollbar { width: 8px; }
.sn-scrollbar::-webkit-scrollbar-track { background: var(--sn-black); }
.sn-scrollbar::-webkit-scrollbar-thumb { background: var(--sn-gray-700); border-radius: 4px; }
.sn-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--sn-neon); }

/* ── 22. Mix Blend Difference ── */
.sn-blend-diff {
  mix-blend-mode: difference;
}

/* ── 23. Stroke Text (Outline Only) ── */
.sn-stroke-text {
  -webkit-text-stroke: 1px var(--sn-gray-700);
  color: transparent;
}

/* ── 24. Clip Text with Image ── */
.sn-clip-text-img {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  background-size: cover;
  background-position: center;
}

/* ── Stagger Delay Utilities ── */
.sn-delay-1 { transition-delay: 0.1s; }
.sn-delay-2 { transition-delay: 0.2s; }
.sn-delay-3 { transition-delay: 0.3s; }
.sn-delay-4 { transition-delay: 0.4s; }
.sn-delay-5 { transition-delay: 0.5s; }
