/* ============================================
   Skeleton Loading 動畫樣式
   檔案位置：assets/css/skeleton.css
   ============================================ */

/* 閃爍動畫 */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* 各區塊尺寸 */
.skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: 4px 4px 0 0;
  margin-bottom: 16px;
}

.skeleton-date {
  width: 80px;
  height: 12px;
  margin-bottom: 10px;
}

.skeleton-tag {
  width: 60px;
  height: 20px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.skeleton-title {
  width: 100%;
  height: 18px;
  margin-bottom: 8px;
}

.skeleton-excerpt {
  width: 100%;
  height: 14px;
  margin-bottom: 6px;
}

/* 骨架卡片容器 */
.skeleton-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  padding: 0 0 16px 0;
  pointer-events: none;
}

.skeleton-card .skeleton-date,
.skeleton-card .skeleton-tag,
.skeleton-card .skeleton-title,
.skeleton-card .skeleton-excerpt {
  margin-left: 16px;
  margin-right: 16px;
  width: calc(100% - 32px);
}

.skeleton-card .skeleton-title:nth-child(5) {
  width: calc(70% - 32px);
}

.skeleton-card .skeleton-excerpt:last-child {
  width: calc(80% - 32px);
}
