/* /sys/assets/posts.css */

/* ====== ACTIONS BAR ====== */
.post-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-3);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition), background var(--transition);
    line-height: 1;
}
.action-btn:not(.no-hover):hover {
    color: var(--text);
    background: var(--bg-3);
}
.action-btn.no-hover { cursor: default; }

.action-btn.liked   { color: #f472b6; }
.action-btn.reposted { color: var(--success); }
.action-btn.active:not(.liked):not(.reposted) { color: var(--accent-2); }

.action-btn svg { flex-shrink: 0; }
.action-count { font-size: 13px; min-width: 4px; }

.views-display { margin-left: auto; }

/* ====== POST MENU ====== */
.post-menu-wrap { position: relative; margin-left: auto; }
.post-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: var(--text-3);
    cursor: pointer;
    background: none;
    border: none;
    transition: all var(--transition);
}
.post-menu-btn:hover { background: var(--bg-3); color: var(--text); }

.post-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    min-width: 140px;
    z-index: 50;
    overflow: hidden;
}
.post-menu.open { display: block; }
.post-menu-item {
    display: block;
    width: 100%;
    padding: 10px 14px;
    text-align: left;
    font-size: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-2);
    transition: background var(--transition);
}
.post-menu-item:hover { background: var(--bg-3); }
.post-menu-item.danger { color: var(--danger); }
.post-menu-item.danger:hover { background: rgba(255,92,92,.08); }

/* ====== COMMENTS ====== */
.comments-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.comments-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }

.comment-item { display: flex; gap: 10px; }
.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
}
.comment-body { flex: 1; min-width: 0; }
.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}
.comment-author {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    transition: color var(--transition);
}
.comment-author:hover { color: var(--accent-2); }
.comment-date { font-size: 12px; color: var(--text-3); }
.comment-delete {
    margin-left: auto;
    font-size: 12px;
    color: var(--text-3);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    transition: color var(--transition);
    opacity: 0;
}
.comment-item:hover .comment-delete { opacity: 1; }
.comment-delete:hover { color: var(--danger); }
.comment-text { font-size: 14px; color: var(--text-2); line-height: 1.5; word-break: break-word; }

/* Comment form */
.comment-form {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.comment-input-wrap {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: var(--bg-3);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    transition: border-color var(--transition);
}
.comment-input-wrap:focus-within {
    border-color: var(--accent);
}
.comment-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text);
    font-family: inherit;
    font-size: 14px;
    resize: none;
    max-height: 120px;
    line-height: 1.5;
}
.comment-input::placeholder { color: var(--text-3); }
.comment-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition);
}
.comment-submit:hover { background: var(--accent-2); }

.comment-login-hint {
    font-size: 13px;
    color: var(--text-3);
    padding: 8px 0;
}
.comment-login-hint a { color: var(--accent-2); }

/* ====== LIKE ANIMATION ====== */
@keyframes likePoP {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.35); }
    70%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.action-btn.pop svg { animation: likePop 0.35s ease; }
