/* Comments Section */
#commentList {
    margin-top: 20px;
}

.comment-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    margin-bottom: 15px;
    animation: fadeIn 0.3s ease;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ccc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 18px;
}

.comment-body {
    flex: 1;
}

.comment-header {
    font-size: 15px;
    font-weight: 600;
    color: #444;
}

.comment-time {
    font-size: 12px;
    color: #888;
}

.comment-text {
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.4;
    color: #333;
}

/* Add Comment Box */
#commentText {
    width: 100%;
    height: 70px;
    margin-top: 10px;
    padding: 10px;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid #bbb;
}

button.comment-btn {
    margin-top: 6px;
    padding: 8px 16px;
    border: none;
    background: #4285f4;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

button.comment-btn:hover {
    background: #3367d6;
}

/* Reply button inside comments */
.comment-card .reply-btn,
.reply-card .reply-btn {
    background-color: #f0f0f0;
    /* light gray background */
    color: #333;
    /* darker text */
    border: 1px solid #ccc;
    /* subtle border */
    border-radius: 4px;
    padding: 4px 10px;
    /* smaller padding than main Post button */
    font-size: 0.85rem;
    /* slightly smaller text */
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 5px;
}

.comment-card .reply-btn:hover,
.reply-card .reply-btn:hover {
    background-color: #e0e0e0;
    /* darker on hover */
}

/* Reply post button inside reply box */
.reply-input .post-reply-btn {
    background-color: #4CAF50;
    /* green button */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    /* smaller than main Post */
    font-size: 0.85rem;
    cursor: pointer;
    margin-right: 5px;
    transition: background-color 0.2s;
}

.reply-input .post-reply-btn:hover {
    background-color: #45a049;
}

/* Cancel button inside reply box */
.reply-input .cancel-reply-btn {
    background-color: #f44336;
    /* red button */
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 0.8
}

.avatar {
    width: 36px;
    height: 36px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    /* adjust if needed */
}

.comment-counter {
    color: #555;
    font-size: 13px;
    margin-top: 4px;
    text-align: right;
}