/**
 * BT 内容审核插件 - 前端样式
 *
 * 仅包含前端页面所需的样式（举报按钮、举报弹窗、通知等）
 * 后台管理页面样式请使用 admin.css
 *
 * @package BT_Content_Moderation
 * @version 1.0.0
 */

/* ========================================
   举报按钮（前端）
   ======================================== */

.bt-cm-report-btn-wrap {
    clear: both;
}

.bt-cm-report-btn {
    color: #646970 !important;
    border-color: #dcdcde !important;
    background: #f6f7f7 !important;
    transition: all 0.2s ease;
}

.bt-cm-report-btn:hover {
    color: #d63638 !important;
    border-color: #d63638 !important;
    background: #fff !important;
}

.bt-cm-report-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.bt-cm-report-count {
    font-size: 11px;
    color: #d63638;
}

/* ========================================
   弹窗样式
   ======================================== */

#bt-cm-report-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 160000;
}

.bt-cm-report-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.bt-cm-report-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 1;
}

.bt-cm-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f1;
}

.bt-cm-report-header h3 {
    margin: 0;
    font-size: 16px;
}

.bt-cm-report-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #646970;
    line-height: 1;
    padding: 0;
}

.bt-cm-report-close:hover {
    color: #d63638;
}

.bt-cm-report-body {
    padding: 20px;
}

.bt-cm-report-field {
    margin-bottom: 15px;
}

.bt-cm-report-field label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 13px;
}

.bt-cm-report-field label .required {
    color: #d63638;
}

.bt-cm-report-field select,
.bt-cm-report-field textarea,
.bt-cm-report-field input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.bt-cm-report-field textarea {
    resize: vertical;
}

.bt-cm-report-checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-weight: 400 !important;
    cursor: pointer;
}

.bt-cm-report-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.bt-cm-report-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px 20px;
    border-top: 1px solid #f0f0f1;
}

/* ========================================
   前端通知样式
   ======================================== */

.bt-cm-frontend-notifications {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 20px;
    margin: 20px 0;
}

.bt-cm-notification-title {
    margin: 0 0 15px;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bt-cm-notification-title .dashicons {
    color: #2271b1;
}

.bt-cm-notification-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bt-cm-notification-item {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border-bottom: 1px solid #f0f0f1;
    position: relative;
    transition: background 0.2s;
}

.bt-cm-notification-item:last-child {
    border-bottom: none;
}

.bt-cm-notification-item.bt-cm-unread {
    background: #f0f6fc;
}

.bt-cm-notification-item:hover {
    background: #f6f7f7;
}

.bt-cm-notification-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f1;
    border-radius: 50%;
    margin-right: 12px;
}

.bt-cm-notification-item.bt-cm-unread .bt-cm-notification-icon {
    background: #2271b1;
    color: #fff;
}

.bt-cm-notification-icon .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.bt-cm-notification-content {
    flex: 1;
    min-width: 0;
}

.bt-cm-notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.bt-cm-notification-header strong {
    font-size: 14px;
}

.bt-cm-notification-time {
    font-size: 12px;
    color: #646970;
    flex-shrink: 0;
}

.bt-cm-notification-message {
    margin: 0;
    font-size: 13px;
    color: #50575e;
    line-height: 1.5;
    white-space: pre-line;
}

.bt-cm-unread-dot {
    width: 8px;
    height: 8px;
    background: #2271b1;
    border-radius: 50%;
    flex-shrink: 0;
    margin-left: 8px;
    margin-top: 6px;
}

.bt-cm-notification-pagination {
    text-align: center;
    padding: 12px 0 0;
}

.bt-cm-notification-count-text {
    font-size: 13px;
    color: #646970;
}

/* ========================================
   前端内容状态
   ======================================== */

.bt-cm-content-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    margin: 8px 0;
}

.bt-cm-content-status .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.bt-cm-status-approved {
    background: #d1e7dd;
    color: #0a3622;
}

.bt-cm-status-pending {
    background: #fff3cd;
    color: #664d03;
}

.bt-cm-status-suspicious {
    background: #f8d7da;
    color: #842029;
}

.bt-cm-status-rejected {
    background: #f8d7da;
    color: #842029;
}

.bt-cm-status-returned {
    background: #cff4fc;
    color: #055160;
}

.bt-cm-status-reason {
    font-size: 12px;
    color: #646970;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   响应式
   ======================================== */

@media screen and (max-width: 782px) {
    .bt-cm-report-dialog {
        width: 95vw;
    }
}
