/* Comment system styles - Primer aligned (light theme) */

.comments-section {
    margin-top: 20px;
    padding: 14px;
    background: var(--bgColor-default);
    border: 1px solid var(--borderColor-default);
    border-radius: var(--borderRadius-large);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--borderColor-default);
}

.comments-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--fgColor-default);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-count {
    background: var(--bgColor-muted);
    color: var(--fgColor-muted);
    padding: 2px 8px;
    border-radius: var(--borderRadius-full);
    font-size: 12px;
    font-weight: 500;
    border: 1px solid var(--borderColor-default);
}

/* Comment form */
.comment-form {
    margin-bottom: 14px;
    padding: 14px;
    background: var(--bgColor-muted);
    border-radius: var(--borderRadius-medium);
    border: 1px solid var(--borderColor-default);
}

.comments-section .form-group {
    margin-bottom: 16px;
}

.comments-section .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--fgColor-default);
}

.comments-section .form-control {
    width: 100%;
    padding: 5px 12px;
    border: 1px solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
    color: var(--fgColor-default);
    font-size: 14px;
    line-height: 20px;
    transition: border-color 0.15s ease;
}

.comments-section .form-control:focus {
    outline: none;
    border-color: var(--focus-outlineColor);
    box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3);
}

.comments-section .form-control::placeholder {
    color: var(--fgColor-subtle);
}

/* Rich text editor */
.rich-text-editor {
    border: 1px solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: var(--bgColor-muted);
    border-bottom: 1px solid var(--borderColor-default);
}

.toolbar-btn {
    padding: 4px 8px;
    border: none;
    background: transparent;
    color: var(--fgColor-muted);
    cursor: pointer;
    border-radius: var(--borderRadius-small);
    transition: background-color 0.1s ease;
}

.toolbar-btn:hover {
    background: var(--bgColor-default);
    color: var(--fgColor-default);
}

.toolbar-btn.active {
    background: var(--bgColor-accent-emphasis);
    color: var(--fgColor-onEmphasis);
}

.toolbar-select {
    padding: 4px 8px;
    border: 1px solid var(--borderColor-default);
    border-radius: var(--borderRadius-small);
    background: var(--bgColor-default);
    color: var(--fgColor-default);
    font-size: 12px;
}

.toolbar-separator {
    width: 1px;
    height: 20px;
    background: var(--borderColor-default);
    margin: 0 4px;
}

.editor-content {
    min-height: 120px;
    padding: 12px;
    border: none;
    outline: none;
    background: var(--bgColor-default);
    color: var(--fgColor-default);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

/* Emoji picker */
.emoji-picker {
    position: absolute;
    top: 100%;
    left: 0;
    width: 280px;
    max-height: 200px;
    background: var(--bgColor-default);
    border: 1px solid var(--borderColor-default);
    border-radius: var(--borderRadius-large);
    box-shadow: var(--shadow-floating-small);
    z-index: 1000;
    padding: 8px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.emoji-picker.show { display: block; }

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
}

.emoji-item {
    padding: 4px;
    text-align: center;
    cursor: pointer;
    border-radius: var(--borderRadius-small);
    transition: background-color 0.1s ease;
    font-size: 18px;
}

.emoji-item:hover {
    background: var(--bgColor-muted);
}

/* Image upload */
.image-upload-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(5px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.image-upload-modal.show { display: flex; }

.image-upload-content {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 250, 0.96)),
        var(--bgColor-default);
    border: 1px solid rgba(208, 215, 222, 0.82);
    border-radius: 24px;
    padding: 22px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.image-upload-options {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.image-upload-btn {
    flex: 1;
    padding: 12px;
    border: 2px dashed var(--borderColor-default);
    border-radius: 16px;
    background: var(--bgColor-muted);
    color: var(--fgColor-default);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease;
}

.image-upload-btn:hover {
    border-color: var(--fgColor-accent);
}

.image-url-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--borderColor-default);
    border-radius: 16px;
    background: var(--bgColor-default);
    color: var(--fgColor-default);
    margin-bottom: 16px;
}

.image-upload-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Comment submit */
.comment-submit {
    background-color: var(--button-primary-bgColor-rest);
    color: var(--fgColor-onEmphasis);
    border: 1px solid var(--button-primary-bgColor-rest);
    min-height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 0 rgba(3, 61, 139, 0.08), 0 1px 3px rgba(9, 105, 218, 0.2);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
}

.comment-submit:hover {
    background-color: var(--button-primary-bgColor-hover);
    border-color: var(--button-primary-bgColor-hover);
    box-shadow: 0 3px 12px rgba(9, 105, 218, 0.24);
    transform: translateY(-1px);
    color: var(--fgColor-onEmphasis);
    text-decoration: none;
}

.comment-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.comment-submit:focus-visible {
    outline: 2px solid var(--focus-outlineColor);
    outline-offset: -2px;
}

/* Comments list */
.comments-list {
    margin-top: 12px;
}

/* No comments */
.no-comments {
    text-align: center;
    padding: 24px 14px;
    background: var(--bgColor-muted);
    border-radius: var(--borderRadius-medium);
    border: 1px solid var(--borderColor-default);
}

.no-comments-icon {
    font-size: 2.5rem;
    color: var(--fgColor-subtle);
    margin-bottom: 8px;
}

.no-comments-text h4 {
    color: var(--fgColor-default);
    margin-bottom: 4px;
    font-weight: 600;
}

.no-comments-text p {
    color: var(--fgColor-subtle);
    margin: 0;
}

/* Comment card */
.comment-card {
    background: var(--bgColor-default);
    border: 1px solid var(--borderColor-default);
    border-radius: 14px;
    margin-bottom: 12px;
    position: relative;
    padding: 12px 14px 10px;
}

.comment-card:hover {
    border-color: var(--borderColor-emphasis);
}

.comment-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    border-radius: 0;
}

.comment-user-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.comment-avatar-container {
    position: relative;
}

.comment-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-user-details {
    flex: 1;
    min-width: 0;
}

.comment-author-name {
    font-weight: 600;
    color: var(--fgColor-default);
    font-size: 13px;
    margin-bottom: 2px;
}

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

.comment-time,
.comment-replies-count {
    color: var(--fgColor-subtle);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-time i,
.comment-replies-count i {
    font-size: 10px;
}

/* Admin actions */
.comment-admin-actions {
    display: flex;
    gap: 4px;
    margin-top: -2px;
    align-items: center;
}

.btn-admin-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: var(--bgColor-muted);
    border: 1px solid transparent;
    color: var(--fgColor-subtle);
    cursor: pointer;
    border-radius: var(--borderRadius-full);
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
    font-size: 12px;
}

.btn-admin-action:hover {
    background: var(--bgColor-danger-muted);
    border-color: var(--borderColor-danger-emphasis);
    color: var(--fgColor-danger);
}

/* Comment body */
.comment-card-body {
    padding: 6px 0 0 38px;
}

.comment-content {
    color: var(--fgColor-default);
    line-height: 1.65;
    font-size: 13.5px;
    word-wrap: break-word;
    min-height: 0;
    max-height: none;
    padding: 0;
    background: transparent;
    position: static;
    overflow: visible;
}

/* Comment footer */
.comment-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 6px 0 0 38px;
    border-top: 0;
}

.comment-actions-left {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.comment-actions-right {
    display: none;
}

.btn-comment-action {
    background: transparent;
    border: 1px solid transparent;
    color: var(--fgColor-muted);
    cursor: pointer;
    padding: 3px 9px;
    border-radius: var(--borderRadius-full);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

.btn-comment-action:hover {
    background: var(--bgColor-muted);
    border-color: var(--borderColor-default);
    color: var(--fgColor-default);
}

.btn-comment-action.liked {
    background: var(--bgColor-danger-muted);
    color: var(--fgColor-danger);
}

.btn-comment-action.liked:hover {
    background: var(--bgColor-danger-muted);
    color: var(--fgColor-danger);
}

.action-text {
    font-size: 12px;
}

/* Avatar loading */
.comment-avatar[data-retry-count] {
    opacity: 0.7;
}

/* Comment edit/delete buttons */
.btn-edit-comment,
.btn-delete-comment {
    background: none;
    border: none;
    color: var(--fgColor-subtle);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--borderRadius-small);
    transition: color 0.15s ease, background-color 0.15s ease;
    font-size: 14px;
}

.btn-edit-comment:hover {
    background: var(--bgColor-muted);
    color: var(--fgColor-accent);
}

.btn-delete-comment:hover {
    background: var(--bgColor-danger-muted);
    color: var(--fgColor-danger);
}

/* Comment edit form */
.comment-edit-form {
    margin-top: 8px;
    padding: 12px;
    background: var(--bgColor-muted);
    border: 1px solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
}

.edit-comment-content {
    width: 100%;
    min-height: 80px;
    padding: 8px 12px;
    border: 1px solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
    color: var(--fgColor-default);
    font-size: 14px;
    resize: vertical;
}

.edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--borderColor-default);
}

.edit-actions button {
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid var(--borderColor-default);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-resting-xsmall);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-save-edit {
    background: var(--button-primary-bgColor-rest);
    color: var(--fgColor-onEmphasis);
    border-color: var(--button-primary-bgColor-rest);
}

.btn-save-edit:hover {
    background: var(--button-primary-bgColor-hover);
    border-color: var(--button-primary-bgColor-hover);
    box-shadow: 0 3px 12px rgba(9, 105, 218, 0.2);
    transform: translateY(-1px);
}

.btn-cancel-edit {
    background: var(--button-default-bgColor-rest);
    color: var(--button-default-fgColor);
    border-color: var(--button-default-borderColor);
}

.btn-cancel-edit:hover {
    background: var(--button-default-bgColor-hover);
    border-color: var(--borderColor-emphasis);
    box-shadow: var(--shadow-resting-small);
    transform: translateY(-1px);
}

/* Replies */
.comment-replies-section {
    margin-top: 2px;
    padding: 6px 0 0 38px;
}

.replies-container {
    position: relative;
    padding-left: 0;
}

.replies-container::before {
    display: none;
}

.replies-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 0;
    padding-left: 0;
}

/* Reply card */
.reply-card {
    background: var(--bgColor-default);
    border: 1px solid var(--borderColor-default);
    border-radius: 12px;
    margin-bottom: 0;
    position: relative;
    transition: border-color 0.15s ease;
    padding: 8px 10px 7px;
}

.reply-card:hover {
    border-color: var(--borderColor-emphasis);
}

.reply-card::before {
    display: none;
}

.reply-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 0;
    background: transparent;
    border-bottom: 0;
    border-radius: 0;
}

.reply-user-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1;
}

.reply-avatar-container {
    position: relative;
}

.reply-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--borderColor-default);
    background: var(--bgColor-muted);
}

.reply-user-details {
    flex: 1;
    min-width: 0;
}

.reply-author-name {
    font-weight: 600;
    color: var(--fgColor-default);
    font-size: 13px;
    line-height: 1.2;
}

.reply-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reply-time {
    color: var(--fgColor-subtle);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.reply-time i { font-size: 10px; }

.reply-admin-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.reply-card-body {
    padding: 4px 0 0 30px;
}

.reply-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.reply-target-context {
    color: var(--fgColor-muted);
    font-size: 12px;
    line-height: 1.4;
}

.reply-target-name {
    color: var(--fgColor-accent);
    font-weight: 600;
}

.reply-content {
    color: var(--fgColor-default);
    line-height: 1.6;
    font-size: 13px;
    word-wrap: break-word;
}

.reply-card-footer {
    padding: 4px 0 0 30px;
    border-top: 0;
}

.reply-actions {
    display: flex;
    gap: 6px;
}

.btn-reply-action {
    background: transparent;
    border: 1px solid transparent;
    color: var(--fgColor-muted);
    cursor: pointer;
    padding: 3px 9px;
    border-radius: var(--borderRadius-full);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

.btn-reply-action:hover {
    background: var(--bgColor-muted);
    border-color: var(--borderColor-default);
    color: var(--fgColor-default);
}

.btn-reply-action.primary {
    background: var(--bgColor-accent-muted);
    border-color: var(--borderColor-accent-emphasis);
    color: var(--fgColor-accent);
}

.btn-reply-action.primary:hover {
    background: var(--bgColor-accent-muted);
    border-color: var(--borderColor-accent-emphasis);
    color: var(--fgColor-accent);
}

.reply-like-btn.liked {
    background: var(--bgColor-danger-muted);
    color: var(--fgColor-danger);
}

.reply-like-btn.liked:hover {
    background: var(--bgColor-danger-muted);
    border-color: var(--borderColor-danger-emphasis);
    color: var(--fgColor-danger);
}

/* Reply form */
.reply-form {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 6px 0 0;
    margin-top: 8px;
}

.reply-form.is-open {
    display: block;
}

.reply-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
    padding-bottom: 0;
    border-bottom: 0;
}

.reply-form-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.reply-form-avatar {
    position: relative;
    flex-shrink: 0;
}

.reply-user-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--borderColor-default);
}

.reply-form-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reply-form-user {
    font-weight: 500;
    color: var(--fgColor-muted);
    font-size: 12px;
}

.reply-form-target {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--borderRadius-full);
    background: var(--bgColor-accent-muted);
    color: var(--fgColor-accent);
    font-size: 12px;
    font-weight: 600;
}

.reply-form-hint {
    color: var(--fgColor-subtle);
    font-size: 12px;
}

.reply-form-close {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.reply-editor-container {
    margin-bottom: 0;
}

.reply-form .simple-comment-editor {
    border-radius: 12px;
    box-shadow: none;
}

.reply-form .simple-comment-editor:focus-within {
    box-shadow: none;
    border-color: var(--borderColor-accent-emphasis);
}

.reply-form .comment-toolbar {
    padding: 4px 8px 0;
    background: transparent;
    border-bottom: 0;
}

.reply-form .toolbar-btn {
    width: 24px;
    height: 24px;
    font-size: 12px;
}

.reply-form .comment-content {
    min-height: 48px;
    max-height: 132px;
    padding: 8px 10px;
    font-size: 13px;
}

.reply-form .comment-content.is-empty::before {
    top: 8px;
    left: 10px;
    font-size: 13px;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

/* Reply action buttons */
.btn-submit-reply {
    background: var(--button-primary-bgColor-rest);
    color: var(--fgColor-onEmphasis);
    border: 1px solid var(--button-primary-bgColor-rest);
    min-height: 30px;
    padding: 0 12px;
    border-radius: var(--borderRadius-full);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(9, 105, 218, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    margin-top: 0;
}

.btn-submit-reply:hover {
    background: var(--button-primary-bgColor-hover);
    border-color: var(--button-primary-bgColor-hover);
    color: var(--fgColor-onEmphasis);
    box-shadow: 0 3px 10px rgba(9, 105, 218, 0.24);
    transform: translateY(-1px);
    margin-top: 0;
}

.btn-submit-reply:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Reply edit form */
.reply-edit-form {
    background: var(--bgColor-muted);
    border: 1px solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
    padding: 12px;
    margin-top: 8px;
}

.reply-edit-form .edit-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--borderColor-default);
}

.reply-edit-form .edit-actions button {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--borderColor-default);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-resting-xsmall);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-save-reply-edit {
    background: var(--button-primary-bgColor-rest);
    color: var(--fgColor-onEmphasis);
    border-color: var(--button-primary-bgColor-rest);
}

.btn-save-reply-edit:hover {
    background: var(--button-primary-bgColor-hover);
    border-color: var(--button-primary-bgColor-hover);
    box-shadow: 0 3px 12px rgba(9, 105, 218, 0.2);
    transform: translateY(-1px);
}

.btn-cancel-reply-edit {
    background: var(--button-default-bgColor-rest);
    color: var(--button-default-fgColor);
    border-color: var(--button-default-borderColor);
}

.btn-cancel-reply-edit:hover {
    background: var(--button-default-bgColor-hover);
    border-color: var(--borderColor-emphasis);
    box-shadow: var(--shadow-resting-small);
    transform: translateY(-1px);
}

.edit-reply-content {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--borderColor-default);
    border-radius: var(--borderRadius-medium);
    background: var(--bgColor-default);
    color: var(--fgColor-default);
    font-size: 13px;
    resize: vertical;
    margin-bottom: 8px;
}

/* Comment footer (legacy) */
.comment-footer {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--borderColor-default);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.comment-like-btn {
    padding: 3px 9px;
    border-radius: var(--borderRadius-full);
    font-size: 12px;
    color: var(--fgColor-muted);
}

.comment-like-btn:hover {
    background: var(--bgColor-muted);
    border-color: var(--borderColor-default);
    color: var(--fgColor-default);
}

.comment-like-btn.liked {
    background: var(--bgColor-danger-muted);
    color: var(--fgColor-danger);
}

.comment-like-btn.liked:hover {
    background: var(--bgColor-danger-muted);
    border-color: var(--borderColor-danger-emphasis);
    color: var(--fgColor-danger);
}

.comment-like-btn i {
    font-size: 11px;
}

.like-count {
    font-size: 12px;
    font-weight: 500;
}

.btn-reply {
    margin-bottom: 0;
    color: var(--fgColor-muted);
    padding: 3px 9px;
    border-radius: var(--borderRadius-full);
    font-size: 12px;
}

.btn-reply.active {
    background: var(--bgColor-accent-muted);
    border-color: var(--borderColor-accent-emphasis);
    color: var(--fgColor-accent);
}

.btn-reply:hover {
    background: var(--bgColor-muted);
    border-color: var(--borderColor-default);
    color: var(--fgColor-default);
}

/* Avatar status indicator (simplified) */
.avatar-status-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: var(--bgColor-success-emphasis);
    border: 2px solid var(--bgColor-default);
    border-radius: 50%;
}

.reply-avatar-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8px;
    height: 8px;
    background: var(--bgColor-success-emphasis);
    border: 2px solid var(--bgColor-default);
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 767px) {
    .comment-card-header {
        gap: 8px;
    }

    .comment-avatar {
        width: 24px;
        height: 24px;
    }

    .comment-card-body {
        padding: 6px 0 0 32px;
    }

    .comment-card-footer {
        padding: 6px 0 0 32px;
        gap: 6px;
        align-items: flex-start;
    }

    .comment-actions-left {
        justify-content: flex-start;
    }

    .btn-comment-action {
        justify-content: flex-start;
    }

    .comment-replies-section {
        padding: 6px 0 0 32px;
    }

    .replies-list {
        padding-left: 0;
    }

    .reply-card-header {
        gap: 6px;
    }

    .reply-avatar {
        width: 20px;
        height: 20px;
    }

    .reply-card-body {
        padding: 4px 0 0 26px;
    }

    .reply-target-context {
        font-size: 11px;
    }

    .reply-card-footer {
        padding: 4px 0 0 26px;
    }

    .reply-form {
        padding: 6px 0 0;
    }

    .reply-form-header {
        align-items: flex-start;
    }

    .reply-form-info {
        gap: 6px;
    }

    .reply-form-close {
        width: 24px;
        height: 24px;
    }

    .reply-form .comment-content {
        min-height: 44px;
    }

    .reply-form-actions {
        margin-top: 8px;
    }

    .reply-form-actions .btn-reply-action {
        width: auto;
        justify-content: center;
    }
}
