/* Skeleton Loading Styles */
/* Provides skeleton placeholder components for loading states */

/* Base skeleton element */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-700, #374151) 25%,
    var(--gray-600, #4b5563) 50%,
    var(--gray-700, #374151) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite ease-in-out;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

/* Skeleton animation */
@keyframes skeleton-loading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Skeleton variants */
.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
  margin-bottom: 0;
}

.skeleton-text.sm {
  height: 0.75rem;
}

.skeleton-text.lg {
  height: 1.25rem;
}

.skeleton-text.xl {
  height: 1.5rem;
}

/* Skeleton for different content types */
.skeleton-title {
  height: 2rem;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-paragraph {
  height: 1rem;
  margin-bottom: 0.5rem;
}

.skeleton-paragraph:nth-child(1) {
  width: 100%;
}

.skeleton-paragraph:nth-child(2) {
  width: 85%;
}

.skeleton-paragraph:nth-child(3) {
  width: 70%;
}

.skeleton-button {
  height: 2.5rem;
  width: 120px;
  border-radius: 6px;
}

.skeleton-input {
  height: 2.5rem;
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
}

/* Sports betting specific skeletons */
.skeleton-match-row {
  display: grid;
  grid-template-columns: 1fr 4fr 2fr 2fr 2fr 1fr;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-700, #374151);
  align-items: center;
}

.skeleton-match-time {
  height: 1rem;
  width: 50px;
}

.skeleton-match-teams {
  height: 1rem;
  width: 80%;
}

.skeleton-match-odds {
  height: 2rem;
  width: 60px;
  border-radius: 4px;
}

.skeleton-match-more {
  height: 1.5rem;
  width: 30px;
  border-radius: 4px;
}

/* Table skeleton */
.skeleton-table {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gray-800, #1f2937);
}

.skeleton-table-header {
  background: var(--gray-700, #374151);
  padding: 0.75rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 4fr 2fr 2fr 2fr 1fr;
  gap: 0.5rem;
}

.skeleton-table-header .skeleton {
  height: 0.875rem;
}

.skeleton-date-separator {
  background: var(--gray-750, #3f4854);
  padding: 0.5rem 1.5rem;
  border-bottom: 1px solid var(--gray-600, #4b5563);
}

.skeleton-date-separator .skeleton {
  height: 0.875rem;
  width: 120px;
}

/* Loading container */
.skeleton-container {
  padding: 2rem;
}

.skeleton-container.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

/* Multiple skeleton rows */
.skeleton-rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Auth form skeleton */
.skeleton-auth-form {
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
}

.skeleton-auth-title {
  height: 2rem;
  width: 70%;
  margin: 0 auto 2rem;
}

.skeleton-form-group {
  margin-bottom: 1.5rem;
}

.skeleton-form-input {
  height: 3rem;
  width: 100%;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.skeleton-form-button {
  height: 3rem;
  width: 100%;
  border-radius: 8px;
  margin-top: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skeleton-match-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .skeleton-table-header {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

/* Dark theme enhancements */
@media (prefers-color-scheme: dark) {
  .skeleton {
    background: linear-gradient(90deg, #2d3748 25%, #4a5568 50%, #2d3748 75%);
  }
}

/* Pulse variant (alternative animation) */
.skeleton-pulse {
  animation: skeleton-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Wave variant (similar to the React version) */
.skeleton-wave {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  background-size: 200% 100%;
  animation: skeleton-wave 1.6s infinite linear;
}

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