/**
 * post-card.css — 게시글 목록 카드 (데스크탑·모바일 통일)
 * 모바일 post-card.css와 동일한 레이아웃·스타일. 아바타 | 제목+메타 | 조회/댓글
 */
/* Post List Container */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-primary);
    padding: 0;
}

.post-list > .pagination {
    margin-top: 3rem;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    align-self: center;
}

/* Post Item - 아바타 | 제목/메타 | 메트릭 */
.post-item {
    border-bottom: 1px solid var(--border-light);
    padding: 16px;
    transition: background-color 0.15s ease;
    background: var(--bg-primary);
}

.post-item:hover {
    background-color: var(--bg-hover, rgba(0, 0, 0, 0.02));
}

.post-item:active {
    background-color: var(--bg-hover);
}

.post-item:last-child {
    border-bottom: none;
}

/* 공지글: 왼쪽 강조선 + 따뜻한 배경으로 구분 */
.post-item--notice {
    background: linear-gradient(90deg, rgba(255, 243, 205, 0.6) 0%, rgba(255, 248, 220, 0.35) 100%);
    border-left: 4px solid #e9a923;
    padding-left: 12px;
}
.post-item--notice:hover {
    background: linear-gradient(90deg, rgba(255, 243, 205, 0.85) 0%, rgba(255, 248, 220, 0.5) 100%);
}
.notice-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 8px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: linear-gradient(135deg, #e9a923 0%, #d4951a 100%);
    color: #fff;
    box-shadow: 0 1px 3px rgba(233, 169, 35, 0.35);
}
.notice-badge i {
    font-size: 0.7rem;
    opacity: 0.95;
}

.post-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    font-size: 14px;
}

.post-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

/* Left: Avatar */
.mobile-avatar-wrap {
    display: block;
    flex-shrink: 0;
    position: relative;
}

.mobile-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.avatar-level-badge {
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--text-secondary);
    white-space: nowrap;
    min-width: 20px;
    text-align: center;
}

/* Center: Title + Meta */
.post-item-left {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.post-title-block {
    display: flex;
    flex-direction: column;
}

.post-type-icon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 1rem;
    color: var(--primary-color);
    margin-right: 4px;
}

.post-title {
    font-size: 1.0625rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 0;
}

.post-meta-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}

.author-badge {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.author-badge.gold {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.author-badge.green {
    background: linear-gradient(135deg, #10b981, #059669);
}

.author-badge.gray {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
}

.author-badge.red {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.author-avatar-mini {
    display: none;
}

.author-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
}

.post-date {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.network-icon {
    color: #ff6b35;
    font-size: 0.875rem;
}

/* Right: Metrics */
.post-item-right {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 8px;
}

.post-metrics-column {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.metric-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-tertiary, var(--text-muted));
    font-weight: 400;
}

.metric-mini i {
    font-size: 0.75rem;
    width: auto;
    text-align: center;
    opacity: 0.7;
}

.comment-metric.active {
    color: var(--text-tertiary, var(--text-muted));
    font-weight: 400;
}

.comment-metric.active i {
    opacity: 0.7;
}

.view-metric {
    opacity: 1;
}

.desktop-metrics,
.mobile-metrics,
.post-preview,
.post-thumbnail-mini,
.post-thumbnail-wrap,
.meta-divider,
.post-header-row {
    display: none;
}

.tag-container {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.tag-pill {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
    flex-shrink: 0;
}

.tag-pill:hover,
.tag-pill:active {
    color: var(--text-primary);
}

.category-tag {
    font-weight: 500;
}

#pagination-container {
    padding: 24px 16px;
}

.board-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.editor-pick-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #1a1a1a;
    font-size: 0.7rem;
    font-weight: 700;
}

.editor-pick-badge i {
    font-size: 0.7rem;
}

.post-empty {
    padding: 2rem;
    text-align: center;
    color: var(--text-muted);
}

@media (hover: none) {
    .post-item:hover {
        background-color: transparent;
    }
}
