/* GEO Core Optimizer — Frontend Styles
 * Task 2.1: geo-direct-answer 區塊
 * Task 2.2: geo-entity 語義標記（視覺低干擾）
 */

/* ── 2.1 Direct Answer Block ────────────────────────────────────────── */

.geo-direct-answer {
    background: #f0f7ff;
    border-left: 4px solid #0066cc;
    border-radius: 0 8px 8px 0;
    padding: 16px 20px;
    margin: 20px 0 24px;
    font-size: 1rem;
    line-height: 1.7;
}

.geo-qa-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.geo-qa-icon {
    color: #0066cc;
    font-size: 0.75em;
    flex-shrink: 0;
    margin-top: 3px;
}

.geo-question-label {
    font-weight: 700;
    color: #1a3a5c;
    margin: 0;
    font-size: 1em;
    line-height: 1.5;
}

.geo-answer-body {
    padding-left: 20px;
}

.geo-answer-text {
    color: #333;
    margin: 0;
}

.geo-answer-text p {
    margin: 0 0 8px;
}

.geo-answer-text p:last-child {
    margin-bottom: 0;
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    .geo-direct-answer {
        background: #0d1f33;
        border-left-color: #4d9fff;
    }

    .geo-question-label {
        color: #a8d4ff;
    }

    .geo-answer-text {
        color: #dde8f5;
    }
}

/* ── 2.2 Entity Highlights（視覺低干擾，僅供除錯時可見）────────────── */

.geo-entity {
    /* 預設無視覺變化，不干擾閱讀體驗 */
}

.geo-abbr {
    text-decoration: underline dotted #999;
    cursor: help;
}

/* 若需要除錯視覺化，可在 body 加上 class="geo-debug" */
body.geo-debug .geo-entity[itemscope] > [itemprop="name"] {
    background: rgba(255, 200, 0, 0.15);
    border-bottom: 1px dotted #cc9900;
}
