/**
 * WP Sport Advanced - Skeleton Loader CSS
 * This file is enqueued separately for early loading
 */

@keyframes wpsport-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.wpsport-skeleton {
  padding: 12px;
}

.wpsport-skeleton__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.wpsport-skeleton__tab {
  width: 60px;
  height: 32px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f1f1 25%, #fafafa 50%, #f0f1f1 75%);
  background-size: 200% 100%;
  animation: wpsport-shimmer 1.5s infinite linear;
}

.wpsport-skeleton__content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wpsport-skeleton__league {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wpsport-skeleton__league-header {
  height: 36px;
  border-radius: 4px;
  background: linear-gradient(90deg, #f0f1f1 25%, #fafafa 50%, #f0f1f1 75%);
  background-size: 200% 100%;
  animation: wpsport-shimmer 1.5s infinite linear;
}

.wpsport-skeleton__match {
  height: 48px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(5, 9, 23, 0.1) 25%, rgba(5, 9, 23, 0.05) 50%, rgba(5, 9, 23, 0.1) 75%);
  background-size: 200% 100%;
  animation: wpsport-shimmer 1.5s infinite linear;
}

/* Dark mode support */
.dark .wpsport-skeleton__tab,
.dark .wpsport-skeleton__league-header {
  background: linear-gradient(90deg, #151725 25%, #1e2030 50%, #151725 75%);
  background-size: 200% 100%;
}

.dark .wpsport-skeleton__match {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 25%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 200% 100%;
}
