/* =====================
   KEYFRAMES
   ===================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

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

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

@keyframes popIn {
  0%   { opacity: 0; transform: scale(0.9); }
  70%  { transform: scale(1.03); }
  100% { opacity: 1; transform: scale(1); }
}

/* =====================
   UTILITY CLASSES
   ===================== */
.animate-fade-in   { animation: fadeIn   var(--t-normal) ease both; }
.animate-slide-up  { animation: slideUp  var(--t-normal) ease both; }
.animate-slide-down { animation: slideDown var(--t-normal) ease both; }
.animate-pop-in    { animation: popIn    0.25s ease both; }

/* Feed card stagger */
.feed .post-card:nth-child(1)  { animation: slideUp 0.3s ease 0.00s both; }
.feed .post-card:nth-child(2)  { animation: slideUp 0.3s ease 0.05s both; }
.feed .post-card:nth-child(3)  { animation: slideUp 0.3s ease 0.10s both; }
.feed .post-card:nth-child(4)  { animation: slideUp 0.3s ease 0.15s both; }
.feed .post-card:nth-child(5)  { animation: slideUp 0.3s ease 0.20s both; }
.feed .post-card:nth-child(n+6) { animation: slideUp 0.3s ease 0.25s both; }

/* Group card hover lift already in components.css */

/* Page transitions */
.page-enter {
  animation: slideUp 0.2s ease both;
}

/* Like pop */
.action-btn.liked .icon {
  animation: popIn 0.2s ease;
}

/* Scroll reveal (usado com IntersectionObserver) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
