/* Skeleton Loading Styles */

/* Base skeleton element */
.skeleton {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.06) 25%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.06) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

/* Dark mode skeleton */
.dark .skeleton {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.05) 75%
  );
  background-size: 200% 100%;
}

/* Shimmer animation */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Skeleton variants */
.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
  border-radius: 4px;
}

.skeleton-text:last-child {
  margin-bottom: 0;
  width: 80%; /* Last line is typically shorter */
}

.skeleton-title {
  height: 1.5em;
  margin-bottom: 0.5em;
  border-radius: 6px;
}

.skeleton-circle {
  border-radius: 50%;
  aspect-ratio: 1;
}

.skeleton-button {
  height: 2.5em;
  border-radius: 8px;
}

.skeleton-badge {
  height: 1.5em;
  width: 4em;
  border-radius: 4px;
  display: inline-block;
}

/* Skeleton card - matches athlete card */
.skeleton-card {
  background: white;
  border-radius: 1rem;
  padding: 16px;
  min-width: 332px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25),
              0 10px 25px -5px rgba(0, 0, 0, 0.15),
              0 4px 10px rgba(0, 0, 0, 0.1),
              0 2px 4px rgba(0, 0, 0, 0.06);
}

.dark .skeleton-card {
  background: rgb(39, 39, 42); /* zinc-800 */
}

/* Skeleton header section */
.skeleton-header {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.dark .skeleton-header {
  background: rgba(255, 255, 255, 0.05);
}

/* Skeleton event grid */
.skeleton-event {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 8px;
  height: 60px;
}

.dark .skeleton-event {
  background: rgba(255, 255, 255, 0.05);
}

/* Utility classes */
.skeleton-w-full {
  width: 100%;
}

.skeleton-w-3\/4 {
  width: 75%;
}

.skeleton-w-1\/2 {
  width: 50%;
}

.skeleton-w-1\/3 {
  width: 33.333%;
}

.skeleton-w-1\/4 {
  width: 25%;
}

/* Skeleton height variants */
.skeleton-h-4 {
  height: 1rem;
}

.skeleton-h-6 {
  height: 1.5rem;
}

.skeleton-h-8 {
  height: 2rem;
}

.skeleton-h-10 {
  height: 2.5rem;
}

.skeleton-h-12 {
  height: 3rem;
}

/* Skeleton spacing */
.skeleton-mb-2 {
  margin-bottom: 0.5rem;
}

.skeleton-mb-3 {
  margin-bottom: 0.75rem;
}

.skeleton-mb-4 {
  margin-bottom: 1rem;
}
