/* ─── AI GEO Updater — Frontend CSS ──────────────────────── */

/* ─── cp-box base ─────────────────────────────────────────── */
.cp-box {
    border-left: 4px solid #2271b1;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 22px 0;
    font-size: 15px;
    line-height: 1.7;
    background: #f4f8fd;
    position: relative;
    box-shadow: 0 1px 6px rgba(0,0,0,.06);
}

/* ─── Expert / Definition ─────────────────────────────────── */
.box-expert {
    border-color: #2271b1;
    background: #eef5fc;
}
.box-expert > strong:first-child {
    display: block;
    margin-bottom: 5px;
    color: #2271b1;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ─── Quote ───────────────────────────────────────────────── */
.box-quote {
    border-color: #6c44a8;
    background: #f5f0fb;
    font-style: italic;
}
.box-quote > strong:first-child {
    display: block;
    margin-bottom: 6px;
    color: #6c44a8;
    font-size: 13px;
    font-style: normal;
}
.box-quote em { font-size: 16px; color: #3d1f6e; }
.box-quote .author {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #7c56b2;
    font-style: normal;
    font-weight: 600;
}

/* ─── Tip ─────────────────────────────────────────────────── */
.box-tip {
    border-color: #00a32a;
    background: #edfaef;
}
.box-tip > strong:first-child { color: #00a32a; }

/* ─── Warning ─────────────────────────────────────────────── */
.box-warning {
    border-color: #dba617;
    background: #fef9ec;
}
.box-warning > strong:first-child { color: #996800; }

/* ─── FAQ Details ─────────────────────────────────────────── */
.cp-faq-details {
    border: 1px solid #dcdcde;
    border-radius: 6px;
    margin: 10px 0;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .2s;
}
.cp-faq-details:hover { box-shadow: 0 2px 8px rgba(0,0,0,.08); }

.cp-faq-details summary {
    padding: 13px 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1d2327;
    user-select: none;
    transition: background .15s;
}
.cp-faq-details summary::-webkit-details-marker { display: none; }
.cp-faq-details summary::after {
    content: '+';
    font-size: 22px;
    color: #2271b1;
    font-weight: 300;
    transition: transform .2s;
    flex-shrink: 0;
    margin-left: 10px;
}
.cp-faq-details[open] summary {
    background: #f4f8fd;
    border-bottom: 1px solid #dcdcde;
}
.cp-faq-details[open] summary::after {
    content: '−';
}
.cp-faq-details[open] summary:hover { background: #eef5fc; }

.cp-faq-content {
    padding: 14px 18px;
    font-size: 15px;
    line-height: 1.7;
    color: #3c434a;
}

/* ─── Comparison Table ────────────────────────────────────── */
.entry-content table,
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0,0,0,.07);
    border-radius: 6px;
    overflow: hidden;
}
.entry-content table caption,
.post-content table caption {
    font-weight: 700;
    font-size: 15px;
    padding: 12px;
    text-align: left;
    color: #1d2327;
    background: #f0f6fc;
    border-bottom: 2px solid #2271b1;
}
.entry-content table th,
.entry-content table td,
.post-content table th,
.post-content table td {
    padding: 11px 14px;
    border: 1px solid #dcdcde;
    text-align: left;
}
.entry-content table thead th,
.post-content table thead th {
    background: #2271b1;
    color: #fff;
    font-weight: 600;
    border-color: #1a5a99;
}
.entry-content table tbody tr:nth-child(even),
.post-content table tbody tr:nth-child(even) {
    background: #f8fafc;
}
.entry-content table tbody tr:hover,
.post-content table tbody tr:hover {
    background: #eef5fc;
}

/* ─── Mobile ──────────────────────────────────────────────── */
@media (max-width: 600px) {
    .cp-box {
        padding: 12px 14px;
        font-size: 14px;
        margin: 16px 0;
    }
    .cp-faq-details summary { padding: 11px 14px; font-size: 14px; }
    .cp-faq-content { padding: 11px 14px; font-size: 14px; }

    .entry-content table,
    .post-content table {
        font-size: 13px;
        display: block;
        overflow-x: auto;
    }
}
