/**
 * 小栈AI V5 — 文章编辑页样式
 * 7-Tab Gutenberg面板 + 经典编辑器Metabox
 */

/* ═══ Gutenberg 面板头部 ═══ */
.xzd-ai-gutenberg-panel .components-panel__body-title {
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
}
.xzd-ai-gutenberg-panel .components-panel__body-title button {
    font-weight: 600;
}

/* ═══ Tab 导航 ═══ */
.xzd-editor-tabs .components-tab-panel__tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 12px;
    overflow-x: auto;
}
.xzd-editor-tabs .components-tab-panel__tabs .xzd-editor-tab {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    transition: color .15s, border-color .15s;
}
.xzd-editor-tabs .components-tab-panel__tabs .xzd-editor-tab:hover {
    color: #334155;
}
.xzd-editor-tabs .components-tab-panel__tabs .xzd-editor-tab.active-tab {
    color: #4f46e5;
    border-bottom-color: #4f46e5;
}

/* ═══ 面板内容区 ═══ */
.xzd-panel-section {
    padding: 2px 0;
}

/* ═══ 加载状态 ═══ */
.xzd-panel-section .components-spinner {
    margin: 0;
}

/* ═══ 通用按钮 ═══ */
.xzd-panel-section .components-button.is-small {
    font-size: 11px;
    min-height: 28px;
}

/* ═══ 对比Modal ═══ */
.xzd-editor-compare-modal {
    max-width: 680px !important;
    width: 90vw;
}

/* ═══ 块工具栏Popover ═══ */
.xzd-ai-popover .components-popover__content {
    padding: 0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
}

/* ═══ 通知组件间距 ═══ */
.xzd-panel-section .components-notice {
    margin: 6px 0;
    font-size: 11px;
}
.xzd-panel-section .components-notice .components-notice__content {
    font-size: 11px;
}

/* ═══ 经典编辑器 Metabox ═══ */
#xzd-ai-editor-tools .inside {
    padding: 0;
    margin: 0;
}

#xzd-editor-ai-panel {
    padding: 8px 10px;
}

.xzd-ai-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f1;
    gap: 8px;
}
.xzd-ai-row:last-of-type {
    border-bottom: none;
}

.xzd-ai-icon {
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.xzd-ai-label {
    flex: 1;
    font-weight: 500;
    font-size: 13px;
}

.xzd-ai-status {
    font-size: 11px;
    min-width: 70px;
    text-align: right;
}

.xzd-status-done {
    color: #10b981;
    font-weight: 500;
}

.xzd-status-none {
    color: #9ca3af;
}

.xzd-ai-divider {
    border-top: 1px solid #e5e7eb;
    margin: 10px 0;
}

.xzd-ai-quick-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.xzd-ai-quick-actions .button {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.xzd-ai-log {
    margin-top: 8px;
    padding: 8px 10px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    border: 1px solid #e5e7eb;
}

/* ═══ 已应用横幅 ═══ */
.xzd-editor-applied {
    background: #ecfdf5;
    border: 1px solid #86efac;
    border-radius: 6px;
    padding: 12px;
    margin: 4px 0 8px 0;
}

.xzd-editor-applied-icon {
    font-size: 18px;
    margin-bottom: 4px;
}

.xzd-editor-applied-text strong {
    display: block;
    font-size: 13px;
    color: #065f46;
    margin-bottom: 2px;
}

.xzd-editor-applied-text p {
    margin: 0;
    font-size: 11px;
    color: #6b7280;
}
