.comments-section {
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.comment-item {
    margin-bottom: 12px;
}

.comment-content {
    background: #f0f2f5;
    border-radius: 16px;
    padding: 8px 12px;
    display: inline-block;
    max-width: 100%;
}

.comment-meta {
    font-size: 13px;
    color: #65676b;
    margin-top: 2px;
}

.comment-actions {
    font-size: 12px;
    margin-top: 4px;
}

.comment-actions a {
    color: #65676b;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    margin-right: 8px;
}

.comment-actions a:hover {
    text-decoration: underline;
}

.comment-actions a.liked {
    color: #1877f2;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #42a5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.reply-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
}

.reply-form {
    margin-top: 8px;
    padding-left: 40px;
}

.reply-form textarea {
    border-radius: 20px;
    border: 1px solid #ccd0d5;
    padding: 8px 12px;
    font-size: 14px;
    resize: none;
}

.reply-form textarea:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: none;
}

.comment-form textarea {
    border-radius: 20px;
    border: 1px solid #ccd0d5;
    padding: 8px 12px;
    font-size: 14px;
    resize: none;
}

.comment-form textarea:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: none;
}

.btn-facebook {
    background: #1877f2;
    border: none;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    padding: 6px 16px;
    position: relative;
    top: 10px;
    right: 12px;
}

.btn-facebook:hover {
    background: #166fe5;
    color: white;
}

.view-more-comments {
    color: #65676b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 0;
    display: inline-block;
}

.view-more-comments:hover {
    text-decoration: underline;
    color: #65676b;
}

.replies-container {
    margin-left: 40px;
    margin-top: 8px;
}

.view-replies {
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
    text-decoration: none;
    margin-left: 40px;
    margin-bottom: 8px;
    display: inline-block;
}

.view-replies:hover {
    text-decoration: underline;
    color: #65676b;
}

.hide-replies {
    font-size: 13px;
    font-weight: 600;
    color: #65676b;
    text-decoration: none;
    margin-left: 40px;
    margin-bottom: 8px;
    display: inline-block;
}

.hide-replies:hover {
    text-decoration: underline;
    color: #65676b;
}

.comment-username {
    font-weight: 600;
    font-size: 13px;
    color: #050505;
}

.comment-text {
    font-size: 14px;
    color: #050505;
    margin: 2px 0 0 0;
}

.loading {
    text-align: center;
    padding: 10px;
    color: #65676b;
}

.edit-form textarea {
    resize: vertical;
    min-height: 80px;
}

.comment-item.pending-approval {
    opacity: 0.7;
    border-left: 3px solid #ffc107;
    padding-left: 15px;
}

.edit-btn {
    color: #6c757d !important;
    margin: 0 8px 0 10px;
}

.edit-btn:hover {
    color: #007bff !important;
    background-color: #f8f9fa;
}

.like-btn.liked {
    color: #007bff !important;
    font-size: 14px;
    font-weight: bold;
    transition: color 0.2s ease;
}

.like-btn.liked:hover {
    color: #0056b3 !important;
}

/* Edit Form Styles */
.edit-form {
    margin-top: 10px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.edit-form .edit-textarea {
    resize: vertical;
    min-height: 80px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px;
    font-size: 0.9rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.edit-form .edit-textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

.edit-form .btn {
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 4px;
    transition: all 0.15s ease-in-out;
}

.edit-form .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.edit-form .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.edit-form .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

.edit-form .btn-secondary:hover {
    background-color: #545b62;
    border-color: #545b62;
}

/* Badge Styles */
.badge-warning {
    background-color: #ffc107;
    color: #212529;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Alert Messages */
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.875rem;
    margin-top: 10px;
    border: 1px solid transparent;
}

.comment-form .d-flex {
    flex-wrap: wrap;
    justify-content: end;
}
.comment-form .alert {
    flex: 0 0 100%;
}

/* Loading States */
.comment-actions a:disabled,
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Animation for edit form */
.edit-form {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .comment-actions {
        flex-wrap: wrap;
    }

    .comment-actions a {
        margin-right: 10px;
        margin-bottom: 5px;
    }

    .edit-form {
        padding: 10px;
    }

    .edit-form .d-flex {
        flex-direction: column;
    }

    .edit-form .d-flex .btn {
        margin-bottom: 5px;
    }
}

/* Focus states for accessibility */
.comment-actions a:focus,
.btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Like count styling */

/* .like-count {
    color: #6c757d;
    font-size: 0.875rem;
    margin-right: 8px;
} */

/* Base — neutral small inline number */
.like-count {
    display: inline-block;
    min-width: 28px; /* keeps width stable for 1-3 digits */
    padding: 2px 6px;
    font-size: 13px;
    line-height: 1;
    text-align: center;
    vertical-align: middle;
    color: #111;
    background: transparent;
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.12s ease, background-color 0.12s ease;
}

/* Hover / click affordance */
.like-count:hover {
    transform: translateY(-2px);
    cursor: default;
}

/* Badge style — colored pill used next to like button */
.like-count--badge {
    color: #fff;
    background: linear-gradient(180deg, #ff6b6b, #ff4757);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Subtle outline variant (for light backgrounds) */
.like-count--outline {
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Circular counter — good for single-digit counts */
.like-count--circle {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffd633;
    color: #111;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* Mini small-size for compact UIs */
.like-count--sm {
    min-width: 22px;
    padding: 1px 5px;
    font-size: 12px;
    border-radius: 3px;
}

/* Hidden state for 0 counts (keeps DOM element but hides visually) */
.like-count--hide-zero:empty,
.like-count--hide-zero[data-count="0"] {
    display: none;
}

/* Pulse animation for when the number increases (apply class .pop when incrementing) */
@keyframes pop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.25);
    }
    100% {
        transform: scale(1);
    }
}
.like-count.pop {
    animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1);
}
