/* Lazy Section Loading Animations */

.lazy-section {
  will-change: opacity, transform;
  min-height: 100px; /* Prevent layout shift */
}

/* NOTE: Animations are now controlled via inline styles in LazySection.tsx */
/* The getAnimationStyle() function provides dynamic animations based on user selection */

/* Skeleton Loading State */
.section-skeleton {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.03) 25%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.03) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
  margin: 20px 0;
}

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

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .lazy-section {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .section-skeleton {
    animation: none !important;
  }
}
