/* Lazy Section Loading Animations */

.lazy-section {
  will-change: opacity, transform;
  min-height: 50px; /* 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;
  }
}

/* Full-page loading skeleton (client wrappers) */
.page-loading-shell--compact {
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}

.page-loading-shell--compact .page-skeleton-hero {
  height: 120px;
}

.page-loading-shell--compact .page-skeleton-nav {
  height: 44px;
  margin: 8px 0 16px;
}


.page-skeleton-nav {
  height: 56px;
  margin: 12px 0 24px;
  border-radius: 6px;
}

.page-skeleton-hero {
  height: 220px;
  margin: 0 0 24px;
  border-radius: 8px;
}

.page-skeleton-line {
  height: 14px;
  margin: 12px 0;
  border-radius: 4px;
}

.page-skeleton-line--short {
  max-width: 55%;
}

.page-loading-minimal-pulse {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  animation: page-loading-pulse 1.5s ease-in-out infinite;
}

@keyframes page-loading-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.96);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loading-minimal-pulse {
    animation: none !important;
    opacity: 0.5;
    transform: none;
  }
}
