/* ==============================================
   Skeleton Loading Styles
   Provides perceived performance improvement
   through skeleton screens (20-30% faster feel)
   ============================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 25%,
    var(--gray-100) 50%,
    var(--gray-200) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 4px;
}

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

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

.skeleton-text:last-child {
  width: 80%;
}

.skeleton-heading {
  height: 2em;
  width: 60%;
  margin-bottom: 1rem;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16/9;
}

.skeleton-button {
  height: 48px;
  width: 150px;
}

/* Calendar skeleton for Cal.com */
.skeleton-calendar {
  min-height: 600px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.skeleton-calendar-header {
  height: 40px;
  width: 200px;
}

.skeleton-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
}

.skeleton-calendar-cell {
  aspect-ratio: 1;
  border-radius: 8px;
}

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
    background: var(--gray-200);
  }
}
