/* loading-shimmer.css — motion-anything recipe · category: loading
 * Skeleton placeholders with a soft sweeping highlight.
 * The sweep is a pseudo-element moved with transform (GPU-safe — no layout/paint thrash).
 * reduced-motion: static skeleton, no sweep. */

[data-skeleton] {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #e9eaee;
}
[data-skeleton]::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%);
  animation: ma-shimmer 1.4s ease-in-out infinite;
  will-change: transform;
}
@keyframes ma-shimmer {
  100% { transform: translateX(100%); }
}

@media (prefers-reduced-motion: reduce) {
  [data-skeleton]::after { animation: none; display: none; }
}
