/*

    * Post actions — ไลก์ / คอมเมนต์ / แก้ไข / ลบ ใต้โพสต์
    ใช้คู่กับ resources/scripts/post-actions.js

*/

.post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.post-action-btn {
    background: none;
    border: 1px solid var(--line);
    padding: 4px 10px;
    font-size: 0.85em;
    color: var(--normal-inverse);
    cursor: pointer;
}

.post-action-btn:hover {
    background-color: var(--gray);
}

.post-action-btn.liked {
    border-color: var(--fire-color);
    color: var(--fire-color);
    font-weight: bold;
}

.post-action-btn.danger {
    color: var(--fire-color);
}

.post-edited {
    font-size: 0.85em;
    color: var(--line);
}

.post-edit-form textarea {
    width: 100%;
    min-height: 70px;
    box-sizing: border-box;
    resize: vertical;
    font-family: inherit;
}

.post-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.post-comments {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.post-comments.hide {
    display: none;
}

.post-comment {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background-color: var(--gray);
}

.post-comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

.post-comment-author {
    font-weight: bold;
    font-size: 0.9em;
}

.post-comment-date {
    font-size: 0.75em;
    color: var(--line);
    flex: 1;
}

.post-comment-body {
    margin: 0;
    white-space: pre-wrap;
}

.post-comment-form {
    display: flex;
    gap: 8px;
}

.post-comment-form input {
    flex: 1;
    min-width: 0;
}
