/* ═══════════════════���═══════════════════════════════
   Skeleton Loading Placeholders
   統一的骨架屏載入動畫
   ═══════════════════════════════════════════════════ */

/* ── 基礎 shimmer 動畫 ────────────────────────────── */
@keyframes skeleton-shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

.skeleton-circle {
    border-radius: 50%;
}

/* ── 貼文詳情 skeleton ─────────────────────���──────── */
.skeleton-post-detail {
    padding: 16px;
}

.skeleton-post-detail .skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.skeleton-post-detail .skeleton-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.skeleton-post-detail .skeleton-user-info {
    flex: 1;
}

.skeleton-post-detail .skeleton-name {
    height: 14px;
    width: 100px;
    margin-bottom: 6px;
}

.skeleton-post-detail .skeleton-time {
    height: 12px;
    width: 70px;
}

.skeleton-post-detail .skeleton-title {
    height: 20px;
    width: 80%;
    margin-bottom: 16px;
}

.skeleton-post-detail .skeleton-content-line {
    height: 14px;
    margin-bottom: 10px;
}

.skeleton-post-detail .skeleton-content-line:nth-child(1) { width: 100%; }
.skeleton-post-detail .skeleton-content-line:nth-child(2) { width: 92%; }
.skeleton-post-detail .skeleton-content-line:nth-child(3) { width: 85%; }
.skeleton-post-detail .skeleton-content-line:nth-child(4) { width: 60%; }

.skeleton-post-detail .skeleton-image {
    height: 200px;
    width: 100%;
    margin-bottom: 16px;
    border-radius: 8px;
}

.skeleton-post-detail .skeleton-actions {
    display: flex;
    gap: 24px;
    margin-top: 16px;
}

.skeleton-post-detail .skeleton-action {
    height: 14px;
    width: 50px;
}

/* ── 留言 skeleton ────────────────────────────────── */
.skeleton-comment {
    display: flex;
    gap: 10px;
    padding: 12px 0;
}

.skeleton-comment .skeleton-avatar {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.skeleton-comment .skeleton-body {
    flex: 1;
}

.skeleton-comment .skeleton-name {
    height: 12px;
    width: 80px;
    margin-bottom: 8px;
}

.skeleton-comment .skeleton-text {
    height: 12px;
    margin-bottom: 6px;
}

.skeleton-comment .skeleton-text:nth-child(2) { width: 100%; }
.skeleton-comment .skeleton-text:nth-child(3) { width: 75%; }

.skeleton-comments-group {
    padding: 0 16px;
}

.skeleton-comments-group .skeleton-comment + .skeleton-comment {
    border-top: 1px solid var(--border-light, #f0f0f0);
}

/* ── 貼文卡片 skeleton（列表 load-more） ─────────── */
.skeleton-post-card {
    padding: 16px;
    background: var(--bg-card, #fff);
    border-radius: 12px;
    border: 1px solid var(--border-light, #f0f0f0);
}

.skeleton-post-card .skeleton-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.skeleton-post-card .skeleton-card-avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.skeleton-post-card .skeleton-card-user {
    flex: 1;
}

.skeleton-post-card .skeleton-card-name {
    height: 13px;
    width: 90px;
    margin-bottom: 6px;
}

.skeleton-post-card .skeleton-card-time {
    height: 11px;
    width: 60px;
}

.skeleton-post-card .skeleton-card-title {
    height: 16px;
    width: 70%;
    margin-bottom: 12px;
}

.skeleton-post-card .skeleton-card-body {
    height: 140px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.skeleton-post-card .skeleton-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skeleton-post-card .skeleton-card-stats {
    display: flex;
    gap: 16px;
}

.skeleton-post-card .skeleton-card-stat {
    height: 12px;
    width: 40px;
}

.skeleton-post-card .skeleton-card-view {
    height: 12px;
    width: 60px;
}
