/* Comment Section Styles */
.cmt-section { margin-top: 2rem; border-top: 2px solid #eee; padding-top: 1.5rem; }
.cmt-section h3 { font-size: 1.125rem; font-weight: 900; text-transform: uppercase; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.cmt-section h3 .cmt-count { font-size: 0.875rem; color: #999; font-weight: 400; }

/* Comment form */
.cmt-form-wrap { margin-bottom: 1.5rem; }
.cmt-form-wrap textarea {
    width: 100%; border: 1px solid #ddd; border-radius: 0; padding: 12px; font-size: 14px;
    resize: vertical; min-height: 80px; max-height: 300px; font-family: inherit;
    transition: border-color 0.2s;
}
.cmt-form-wrap textarea:focus { outline: none; border-color: #DD2A30; }
.cmt-form-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.cmt-char-count { font-size: 11px; color: #999; }
.cmt-char-count.warn { color: #DD2A30; }
.cmt-submit-btn {
    background: #000; color: #fff; border: none; padding: 8px 20px; font-size: 13px;
    font-weight: 700; text-transform: uppercase; cursor: pointer; transition: background 0.2s;
}
.cmt-submit-btn:hover { background: #DD2A30; }
.cmt-submit-btn:disabled { background: #ccc; cursor: not-allowed; }

/* Login prompt */
.cmt-login-prompt { background: #f9f9f9; padding: 16px; text-align: center; margin-bottom: 1.5rem; font-size: 14px; color: #666; }
.cmt-login-prompt a { color: #DD2A30; font-weight: 700; text-decoration: none; }
.cmt-login-prompt a:hover { text-decoration: underline; }

/* Comment list */
.cmt-list { list-style: none; padding: 0; margin: 0; }
.cmt-item { padding: 12px 0; border-bottom: 1px solid #f0f0f0; }
.cmt-item:last-child { border-bottom: none; }

.cmt-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.cmt-avatar {
    width: 32px; height: 32px; border-radius: 50%; background: #DD2A30; color: white;
    display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
    flex-shrink: 0; text-transform: uppercase;
}
.cmt-meta { display: flex; flex-direction: column; }
.cmt-author { font-size: 13px; font-weight: 700; color: #111; }
.cmt-time { font-size: 11px; color: #999; }

.cmt-body { font-size: 14px; color: #333; line-height: 1.6; margin: 4px 0 8px 42px; word-wrap: break-word; }

.cmt-actions { display: flex; align-items: center; gap: 12px; margin-left: 42px; }
.cmt-action-btn {
    background: none; border: none; cursor: pointer; font-size: 12px; color: #888;
    display: flex; align-items: center; gap: 4px; padding: 2px 4px; transition: color 0.2s;
}
.cmt-action-btn:hover { color: #333; }
.cmt-action-btn.active-like { color: #DD2A30; }
.cmt-action-btn.active-dislike { color: #555; }
.cmt-action-btn i { font-size: 13px; }

/* Reply section */
.cmt-replies { margin-left: 42px; padding-left: 16px; border-left: 2px solid #f0f0f0; margin-top: 8px; }
.cmt-replies .cmt-item { padding: 8px 0; }
.cmt-replies .cmt-avatar { width: 24px; height: 24px; font-size: 10px; }
.cmt-replies .cmt-body { margin-left: 34px; font-size: 13px; }
.cmt-replies .cmt-actions { margin-left: 34px; }

.cmt-toggle-replies {
    background: none; border: none; color: #DD2A30; font-size: 12px; font-weight: 700;
    cursor: pointer; padding: 4px 0; margin-left: 42px; margin-top: 4px;
}
.cmt-toggle-replies:hover { text-decoration: underline; }

/* Reply form inline */
.cmt-reply-form { margin-left: 42px; margin-top: 8px; display: none; }
.cmt-reply-form.open { display: block; }
.cmt-reply-form textarea { min-height: 50px; font-size: 13px; padding: 8px; }

/* Status badges */
.cmt-status { font-size: 10px; padding: 2px 6px; border-radius: 2px; text-transform: uppercase; font-weight: 700; }
.cmt-status.pending { background: #fff3cd; color: #856404; }
.cmt-status.rejected { background: #f8d7da; color: #721c24; }

.cmt-reject-msg { font-size: 12px; color: #721c24; background: #f8d7da; padding: 6px 10px; margin: 4px 0 8px 42px; }

/* Report modal */
.cmt-modal-overlay {
    display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 9999; align-items: center; justify-content: center;
}
.cmt-modal-overlay.open { display: flex; }
.cmt-modal {
    background: white; padding: 24px; max-width: 400px; width: 90%; position: relative;
}
.cmt-modal h4 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.cmt-modal label { display: block; padding: 6px 0; font-size: 13px; cursor: pointer; }
.cmt-modal label input { margin-right: 8px; }
.cmt-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.cmt-modal-cancel { background: #eee; border: none; padding: 8px 16px; cursor: pointer; font-size: 13px; }
.cmt-modal-submit { background: #DD2A30; color: white; border: none; padding: 8px 16px; cursor: pointer; font-size: 13px; font-weight: 700; }

/* Loading */
.cmt-loading { text-align: center; padding: 20px; color: #999; font-size: 13px; }
.cmt-empty { text-align: center; padding: 30px; color: #bbb; font-size: 14px; }

/* Pagination */
.cmt-pagination { display: flex; justify-content: center; gap: 4px; margin-top: 16px; }
.cmt-page-btn {
    background: #f5f5f5; border: none; padding: 6px 12px; font-size: 12px; cursor: pointer;
    color: #333; transition: all 0.2s;
}
.cmt-page-btn:hover, .cmt-page-btn.active { background: #DD2A30; color: white; }

/* Toast notification */
.cmt-toast {
    position: fixed; bottom: 20px; right: 20px; background: #333; color: white;
    padding: 12px 20px; font-size: 13px; z-index: 10000; opacity: 0;
    transition: opacity 0.3s; pointer-events: none;
}
.cmt-toast.show { opacity: 1; }
.cmt-toast.error { background: #DD2A30; }
.cmt-toast.success { background: #28a745; }

/* Responsive */
@media (max-width: 640px) {
    .cmt-body { margin-left: 0; }
    .cmt-actions { margin-left: 0; }
    .cmt-replies { margin-left: 16px; padding-left: 12px; }
    .cmt-reply-form { margin-left: 0; }
    .cmt-toggle-replies { margin-left: 0; }
}
