/**
 * WebBiz Toolkit - Q&A 區塊編輯器樣式
 */

/* 編輯器區塊容器 - 共用 */
.webbiz-qa-editor {
    margin: 16px 0;
    overflow: hidden;
}

/* 問題區域 - 共用 */
.webbiz-qa-editor__question {
    display: flex;
    align-items: flex-start;
    padding: 16px;
}

/* 答案區域 - 共用 */
.webbiz-qa-editor__answer {
    display: flex;
    align-items: flex-start;
    padding: 16px;
}

/* Q/A 標籤 - 共用 */
.webbiz-qa-editor__label {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    margin-right: 12px;
    margin-top: 2px;
}

/* 輸入區域 - 共用 */
.webbiz-qa-editor__question-input,
.webbiz-qa-editor__answer-input {
    flex: 1;
    min-height: 24px;
    line-height: 1.6;
}

.webbiz-qa-editor__question-input {
    font-weight: 600;
    font-size: 16px;
}

.webbiz-qa-editor__answer-input {
    font-size: 15px;
}

/* ===========================================
   樣式 1：簡約 (minimal)
   =========================================== */
.webbiz-qa-editor.webbiz-qa--minimal {
    border: none;
    border-bottom: var(--webbiz-qa-border-width, 1px) solid var(--webbiz-qa-border-color, #e5e7eb);
    border-radius: var(--webbiz-qa-border-radius, 0);
    background: transparent;
}

.webbiz-qa--minimal .webbiz-qa-editor__question {
    padding: 16px 0;
    background: var(--webbiz-qa-question-bg, transparent);
}

.webbiz-qa--minimal .webbiz-qa-editor__answer {
    padding: 0 0 16px 0;
    background: var(--webbiz-qa-answer-bg, transparent);
}

.webbiz-qa--minimal .webbiz-qa-editor__label {
    width: 24px;
    height: 24px;
    font-size: 12px;
    background: var(--webbiz-qa-q-badge-bg, #f1f5f9);
    color: var(--webbiz-qa-q-badge-color, #64748b);
    border-radius: 4px;
}

.webbiz-qa--minimal .webbiz-qa-editor__label--answer {
    background: var(--webbiz-qa-a-badge-bg, #f1f5f9);
    color: var(--webbiz-qa-a-badge-color, #10b981);
}

.webbiz-qa--minimal .webbiz-qa-editor__question-input {
    color: var(--webbiz-qa-question-color, #1e293b);
    font-size: var(--webbiz-qa-question-font-size, 16px);
}

.webbiz-qa--minimal .webbiz-qa-editor__answer-input {
    color: var(--webbiz-qa-answer-color, #64748b);
    font-size: var(--webbiz-qa-answer-font-size, 15px);
}

/* ===========================================
   樣式 2：卡片 (card)
   =========================================== */
.webbiz-qa-editor.webbiz-qa--card {
    border: var(--webbiz-qa-border-width, 1px) solid var(--webbiz-qa-border-color, #e5e7eb);
    border-radius: var(--webbiz-qa-border-radius, 12px);
    background: transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.webbiz-qa--card .webbiz-qa-editor__question {
    padding: 18px 20px;
    background: var(--webbiz-qa-question-bg, #fafafa);
    border-bottom: var(--webbiz-qa-border-width, 1px) solid var(--webbiz-qa-border-color, #e5e7eb);
}

.webbiz-qa--card .webbiz-qa-editor__answer {
    padding: 18px 20px;
    background: var(--webbiz-qa-answer-bg, #fff);
}

.webbiz-qa--card .webbiz-qa-editor__label {
    background: var(--webbiz-qa-q-badge-bg, #3b82f6);
    color: var(--webbiz-qa-q-badge-color, #fff);
}

.webbiz-qa--card .webbiz-qa-editor__label--answer {
    background: var(--webbiz-qa-a-badge-bg, #10b981);
    color: var(--webbiz-qa-a-badge-color, #fff);
}

.webbiz-qa--card .webbiz-qa-editor__question-input {
    color: var(--webbiz-qa-question-color, #1e293b);
    font-size: var(--webbiz-qa-question-font-size, 16px);
}

.webbiz-qa--card .webbiz-qa-editor__answer-input {
    color: var(--webbiz-qa-answer-color, #475569);
    font-size: var(--webbiz-qa-answer-font-size, 15px);
}
