/* The AI Biographer - Skeleton Loading Styles */

/* Base skeleton styles */
.skeleton {
  animation: skeleton-loading 1.5s infinite ease-in-out;
  background: linear-gradient(
    90deg,
    var(--border-light) 0%,
    var(--surface-hover) 50%,
    var(--border-light) 100%
  );
  background-size: 200% 100%;
  border-radius: var(--radius-base);
}

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

/* Skeleton elements */
.skeleton-text {
  height: 1em;
  margin-bottom: var(--space-2);
  border-radius: var(--radius-sm);
}

.skeleton-text.title {
  height: 1.5em;
  width: 60%;
}

.skeleton-text.subtitle {
  height: 1.2em;
  width: 40%;
}

.skeleton-text.short {
  width: 30%;
}

.skeleton-text.medium {
  width: 60%;
}

.skeleton-text.long {
  width: 90%;
}

.skeleton-button {
  height: 44px;
  width: 100%;
  border-radius: var(--radius-base);
}

.skeleton-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-base);
  flex-shrink: 0;
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Dashboard skeleton components */
.skeleton-biography-header {
  background: var(--surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-8);
}

.skeleton-progress-bar {
  height: 12px;
  background: var(--border-light);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2);
}

.skeleton-section-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.skeleton-section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--border);
}

.skeleton-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.skeleton-section-status {
  width: 80px;
  height: 24px;
  border-radius: var(--radius-full);
}

.skeleton-section-meta {
  display: flex;
  gap: var(--space-4);
  margin: var(--space-3) 0;
}

.skeleton-section-meta-item {
  height: 1em;
  width: 80px;
}

/* Photo grid skeleton */
.skeleton-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
  padding: var(--space-4);
}

.skeleton-photo-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton-photo-image {
  width: 100%;
  height: 200px;
  background: var(--border-light);
}

.skeleton-photo-details {
  padding: var(--space-3);
}

/* Chapter skeleton */
.skeleton-chapter-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-sm);
}

.skeleton-chapter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}

.skeleton-chapter-content {
  margin-bottom: var(--space-4);
}

/* Interview skeleton */
.skeleton-interview-section {
  padding: var(--space-4);
}

.skeleton-chat-message {
  display: flex;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.skeleton-chat-bubble {
  flex: 1;
  max-width: 70%;
  height: 60px;
  border-radius: var(--radius-lg);
}

/* Fade in animation for content */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}