/* ============================================================
   Skeleton Loading - shimmer 애니메이션 기반 스켈레톤 UI
   ============================================================ */

/* --- CSS 변수 (테마 대응) --- */
:root {
  --skeleton-base: rgba(128, 128, 128, 0.15);
  --skeleton-shine: rgba(128, 128, 128, 0.25);
}

/* --- shimmer 애니메이션 --- */
@keyframes skeleton-shimmer {
  0% {
    background-position: -400px 0;
  }
  100% {
    background-position: 400px 0;
  }
}

/* --- 공통 컨테이너 --- */
.skeleton-container {
  pointer-events: none;
  user-select: none;
  width: 100%;
}

/* --- 공통 shimmer 베이스 --- */
.skeleton-bone {
  background: linear-gradient(
    90deg,
    var(--skeleton-base) 25%,
    var(--skeleton-shine) 50%,
    var(--skeleton-base) 75%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.5s infinite linear;
  border-radius: 4px;
}

/* === 워크리스트 테이블 행 === */
.skeleton-table-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--skeleton-base);
}

.skeleton-table-cell {
  height: 14px;
  flex: 1;
}

.skeleton-table-cell:first-child {
  flex: 0 0 40px;
}

.skeleton-table-cell:nth-child(2) {
  flex: 0 0 80px;
}

.skeleton-table-cell:nth-child(3) {
  flex: 2;
}

/* === 뷰어 썸네일 그리드 === */
.skeleton-thumbnail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
}

.skeleton-thumbnail {
  width: 55px;
  height: 55px;
  border-radius: 3px;
}

/* === 리포트 카드 리스트 === */
.skeleton-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 5px 0;
}

.skeleton-card {
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-card .skeleton-text-line {
  height: 12px;
  width: 100%;
}

.skeleton-card .skeleton-text-line:first-child {
  width: 60%;
  height: 14px;
}

.skeleton-card .skeleton-text-line:last-child {
  width: 80%;
}

/* === 텍스트 라인 === */
.skeleton-text-line {
  height: 12px;
  width: 100%;
}
