/* --- Modern Comment Section Styles --- */
.modern-comments {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.modern-comments .media {
    margin-bottom: 20px;
    border: none;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.modern-comments .avatar-wrap {
    margin-right: 12px;
}

.modern-comments .avatar {
    border-radius: 50%;
    object-fit: cover;
}

.modern-comments .media-body {
    overflow: visible;
}

/* Chat bubble style content */
.modern-comments .comment-content-box {
    display: inline-block;
    background-color: #f0f2f5;
    border-radius: 18px;
    padding: 10px 16px;
    position: relative;
    max-width: 100%;
}

.modern-comments .cm_author {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #050505;
    margin-bottom: 3px;
}

.modern-comments .cm_text {
    font-size: 15px;
    color: #050505;
    line-height: 1.4;
    word-wrap: break-word;
}

/* Floating Like Badge (Facebook style) */
.modern-comments .like-badge {
    position: absolute;
    bottom: -10px;
    right: 5px;
    background: #ffffff;
    border-radius: 12px;
    padding: 2px 6px;
    font-size: 12px;
    color: #65676b;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 4px;
}

.modern-comments .like-badge i {
    color: #0571ed; /* FB Blue */
    background: #e7f3ff;
    border-radius: 50%;
    padding: 4px;
    font-size: 10px;
}

/* Actions under bubble */
.modern-comments .comment-actions {
    margin-top: 4px;
    margin-left: 12px;
}

.modern-comments .action-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modern-comments .action-links li {
    display: inline-block;
}

.modern-comments .action-links a {
    color: #65676b;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.modern-comments .action-links a:hover {
    color: #050505;
    text-decoration: underline;
}

.modern-comments .action-links .comment-time {
    color: #65676b;
    font-size: 13px;
}

.modern-comments .action-links .delete-btn {
    color: #dc3545;
}
.modern-comments .action-links .delete-btn:hover {
    color: #bd2130;
}

/* Children comments styling */
.modern-comments-child {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
}

.modern-comments-child .media {
    margin-bottom: 12px;
}

.modern-comments-child .avatar-wrap {
    margin-right: 10px;
}

.modern-comments-child .comment-content-box {
    border-radius: 16px;
    padding: 8px 14px;
}

.modern-comments-child .cm_text {
    font-size: 14px;
}
