/* Карточка публикации в стиле ленты ВК: автор сверху, изображение, подпись, действия снизу. */
.post-card {
    margin-bottom: 16px;
    border-color: #363636;
    border-radius: 12px;
    background: #222;
}
.post-card:hover { border-color: #414141; }
.post-header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.post-header-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.post-avatar { flex: 0 0 auto; width: 42px; height: 42px; padding: 2px; box-sizing: border-box; border-radius: 50%; background: var(--accent-highlight); }
.post-avatar img, .post-avatar span { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.post-author-name { display: inline-flex; align-items: center; gap: 5px; color: #e1e3e6; font-size: .86rem; font-weight: 600; text-decoration: none; }
.post-author-name:hover { color: var(--accent-text); }
.post-header-info .post-type-badge { padding: 0; border: 0; border-radius: 0; background: transparent; color: #828282; font-size: .72rem; font-weight: 400; }
.post-delete-form { margin-left: auto; }
.post-delete-button { color: #777; background: transparent; border: 0; cursor: pointer; font-size: 1rem; }
.post-delete-button:hover { color: var(--accent-text); }
.post-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 0; }
.post-gallery .post-image { width: 100%; height: 230px; border-radius: 0; object-fit: cover; cursor: zoom-in; }
.post-gallery.image-count-1 { grid-template-columns: 1fr; }
.post-gallery.image-count-1 .post-image { height: auto; max-height: 640px; object-fit: contain; background: #161616; }
.post-gallery.image-count-3 .post-image:first-child { grid-row: span 2; height: 100%; }
.post-content { padding: 12px 16px 0; color: #ddd; font-size: .85rem; line-height: 1.55; }
.post-tags { display: flex; flex-wrap: wrap; gap: 7px; padding: 8px 16px 0; margin: 0; }
.post-tags a, .post-content .content-tag { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--accent-text); font-size: inherit; }
.post-actions { display: flex; align-items: center; gap: 8px; padding: 10px 14px 12px; border: 0; }
.post-action-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 12px; border: 0; border-radius: 20px; background: #303030; color: #aaa; font: inherit; font-size: .8rem; cursor: pointer; }
.post-action-btn:hover { background: #3a3a3a; color: #ddd; }
.post-action-btn.liked { background: var(--accent-surface); color: var(--accent-highlight); }
.post-action-btn.commented { background: #3a3a3a; color: var(--accent-highlight); }
.post-action-btn:disabled { cursor: default; opacity: .62; }
.post-action-btn:disabled:hover { background: #303030; color: #aaa; }
.post-actions-meta { margin-left: auto; color: #6f6f6f; font-size: .72rem; white-space: nowrap; }
.feed-action-icon { display: block; width: 20px; height: 20px; }
.post-action-btn.liked .feed-heart-icon { fill: currentColor; }
@media (max-width: 768px) {
    .post-header { padding: 12px 12px; gap: 10px; }
    .post-content { padding: 10px 12px 0; }
    .post-tags { padding: 8px 12px 0; }
    .post-gallery .post-image { height: 180px; }
    .post-gallery.image-count-3 .post-image:first-child { height: 100%; }
    .post-gallery.image-count-1 .post-image { height: auto; }
    .post-actions { flex-wrap: wrap; padding: 10px 12px 12px; }
    .post-actions-meta { width: 100%; margin-left: 0; }
}
