/* ========================================
   LINKFLICK — animations.css
   ======================================== */

/* ---- PAGE LOAD REVEALS ---- */
.reveal-up {
  opacity: 0;
  transform: translateY(20px);
  animation: reveal-up 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

.reveal-clip {
  display: block;
  overflow: hidden;
  opacity: 0;
  transform: translateY(100%);
  animation: reveal-clip 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---- DELAY CLASSES ---- */
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

/* ---- KEYFRAMES ---- */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes reveal-clip {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.3; transform: scale(0.7); }
}

@keyframes noise-drift {
  0%   { transform: translate(0, 0); }
  100% { transform: translate(-5%, -5%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- CARD STAGGER ---- */
.card:nth-child(1)  { animation-delay: 0.04s; }
.card:nth-child(2)  { animation-delay: 0.08s; }
.card:nth-child(3)  { animation-delay: 0.12s; }
.card:nth-child(4)  { animation-delay: 0.16s; }
.card:nth-child(5)  { animation-delay: 0.20s; }
.card:nth-child(6)  { animation-delay: 0.24s; }
.card:nth-child(7)  { animation-delay: 0.28s; }
.card:nth-child(8)  { animation-delay: 0.32s; }
.card:nth-child(9)  { animation-delay: 0.36s; }
.card:nth-child(10) { animation-delay: 0.40s; }
.card:nth-child(n+11) { animation-delay: 0.44s; }

/* ---- SEARCH BTN LOADING STATE ---- */
#search-btn.loading span { opacity: 0; }
#search-btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

#search-btn { position: relative; display: flex; align-items: center; justify-content: center; }
