/* =========================
   COMMENT ACTION BUTTONS
========================= */

.comment-actions {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.comment-actions button {
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.15s ease;
    background: #f2f4f7;
    color: #333;
}

/* hover */
.comment-actions button:hover {
    background: #e4e7ec;
}

/* reply */
.reply-btn {
    background: #e8f0ff;
    color: #1a73e8;
}

.reply-btn:hover {
    background: #d8e7ff;
}

/* edit */
.edit-comment-btn {
    background: #fff7e6;
    color: #d48806;
}

.edit-comment-btn:hover {
    background: #ffe7ba;
}

/* delete */
.delete-comment-btn {
    background: #fff1f0;
    color: #cf1322;
}

.delete-comment-btn:hover {
    background: #ffccc7;
}

/* save button inside editor */
.comment-save-btn {
    background: #16a34a;
    color: white;
}

.comment-save-btn:hover {
    background: #12833b;
}

/* cancel button */
.comment-cancel-btn {
    background: #e5e7eb;
}

.comment-cancel-btn:hover {
    background: #d1d5db;
}

/* =========================
   COMMENT FORM
========================= */

.comment-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.comment-form input[type="text"] {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
    transition: 0.2s;
    background: #fafafa;
}

.comment-form input[type="text"]:focus {
    border-color: #4a90e2;
    background: #fff;
}

/* submit button */
.comment-form button[type="submit"] {
    padding: 10px 14px;
    border-radius: 10px;
    border: none;
    background: #1a73e8;
    color: white;
    cursor: pointer;
    font-weight: 500;
    transition: 0.15s;
}

.comment-form button[type="submit"]:hover {
    background: #1558b0;
}

/* =========================
   EDIT MODE
========================= */

.comment-edit-input {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #ddd;
    resize: vertical;
    font-size: 14px;
    outline: none;
}

.comment-edit-buttons {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #ddd;
}

/* fallback буква */
.comment-avatar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    color: #555;
    background: #e5e7eb;
}

.comment {
    padding: 10px;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
    border: 1px solid #eee;
}

.comment-header {
    display: flex;
    gap: 10px;
}

.comment-info {
    flex: 1;
}

.comment-text {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

.comment-top {
    display: flex;
    gap: 10px;
    align-items: center;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #888;
}

.comment-save-btn,
.comment-cancel-btn{

    border:none;

    padding:8px 16px;

    border-radius:8px;

    cursor:pointer;

}