/**
 * Mobilya Blog AI — Front-end Styles
 *
 * Rich content element styles for AI-generated articles on kavela.furniture.
 * Applied only on posts with _msai_generated = 1.
 *
 * Elements:
 *  .msai-snippet-box      — Featured snippet / hızlı cevap kutusu
 *  .msai-callout          — Info / tip / warning callout boxes
 *  .msai-pullquote        — Pull quote / highlight quote
 *  .msai-table-wrap       — Responsive table wrapper
 *  .msai-table            — Comparison / data table
 *  .msai-steps            — Step-by-step numbered guide
 *  .msai-figure           — Image placeholder / figure block
 *  .msai-faq              — FAQ accordion section
 */

/* ─── Base reset for our elements ────────────────────────────────── */
.msai-snippet-box,
.msai-callout,
.msai-pullquote,
.msai-table-wrap,
.msai-table,
.msai-steps,
.msai-figure,
.msai-faq {
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.7;
}

/* ─── Featured Snippet Box ───────────────────────────────────────── */
/* Triggers Google's "Hızlı Cevap" / featured snippet panel */
.msai-snippet-box {
    background: #eef6ff;
    border-left: 5px solid #2b8cee;
    border-radius: 0 0.625rem 0.625rem 0;
    padding: 1rem 1.375rem;
    margin: 0 0 1.75rem;
}

.msai-snippet-box p {
    margin: 0;
    font-size: 1rem;
    color: #1e293b;
}

.msai-snippet-box strong {
    color: #2b8cee;
}

/* ─── Callout Boxes ──────────────────────────────────────────────── */
.msai-callout {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
    font-size: 0.9375rem;
}

.msai-callout-icon {
    font-size: 1.25rem;
    line-height: 1.4;
    flex-shrink: 0;
    user-select: none;
}

.msai-callout > div {
    flex: 1;
    color: #1e293b;
}

.msai-callout > div strong {
    display: block;
    margin-bottom: 0.2rem;
}

/* Info — blue-tinted */
.msai-callout--info {
    background: #eff8ff;
    border: 1px solid #bae0fd;
}

.msai-callout--info strong { color: #0369a1; }

/* Tip — green-tinted */
.msai-callout--tip {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.msai-callout--tip strong { color: #15803d; }

/* Warning — amber-tinted */
.msai-callout--warn {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.msai-callout--warn strong { color: #b45309; }

/* ─── Pull Quote ─────────────────────────────────────────────────── */
.msai-pullquote {
    position: relative;
    border-left: 4px solid #2b8cee;
    background: #f8fafc;
    margin: 2rem 0;
    padding: 1.25rem 1.5rem 1.25rem 1.75rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.msai-pullquote::before {
    content: '\201C';
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-size: 3rem;
    color: #2b8cee;
    opacity: 0.25;
    line-height: 1;
    font-family: Georgia, serif;
}

.msai-pullquote p {
    margin: 0;
    font-size: 1.0625rem;
    font-style: italic;
    color: #334155;
    font-weight: 500;
}

/* ─── Comparison / Data Table ────────────────────────────────────── */
.msai-table-wrap {
    overflow-x: auto;
    margin: 1.75rem 0;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.msai-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 480px;
}

.msai-table thead tr {
    background: #2b8cee;
    color: #fff;
}

.msai-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.msai-table td {
    padding: 0.625rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: top;
}

.msai-table tbody tr:last-child td {
    border-bottom: none;
}

.msai-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.msai-table tbody tr:hover {
    background: #eff8ff;
    transition: background 0.15s;
}

/* ─── Step-by-Step Guide ─────────────────────────────────────────── */
.msai-steps {
    list-style: none;
    margin: 1.5rem 0;
    padding: 0;
    counter-reset: msai-step;
}

.msai-steps li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.875rem 1.125rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    counter-increment: msai-step;
}

.msai-steps li::before {
    content: counter(msai-step);
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    background: #2b8cee;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1;
    margin-top: 0.05rem;
}

.msai-steps li strong {
    color: #1e293b;
}

/* ─── Image Placeholder / Figure ─────────────────────────────────── */
.msai-figure {
    margin: 1.75rem 0;
    text-align: center;
}

.msai-figure-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 0.625rem;
    padding: 2rem 1.5rem;
    color: #64748b;
    font-size: 0.875rem;
    min-height: 180px;
}

.msai-figure-icon {
    font-size: 2.25rem;
    opacity: 0.6;
}

.msai-figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
    color: #64748b;
    font-style: italic;
    text-align: center;
}

/* ─── FAQ Section ────────────────────────────────────────────────── */
.msai-faq {
    margin: 2.25rem 0;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    overflow: hidden;
}

.msai-faq > h2 {
    background: #f8fafc;
    margin: 0;
    padding: 1rem 1.375rem;
    font-size: 1.125rem;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
}

.msai-faq-item {
    padding: 1rem 1.375rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s;
}

.msai-faq-item:last-child {
    border-bottom: none;
}

.msai-faq-item:hover {
    background: #f8fafc;
}

.msai-faq-q {
    margin: 0 0 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.msai-faq-q::before {
    content: 'S:';
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: #2b8cee;
    padding: 0.1rem 0.375rem;
    border-radius: 0.25rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
    letter-spacing: 0.02em;
}

.msai-faq-a {
    margin: 0;
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.7;
    padding-left: 2rem;
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
    .msai-callout {
        flex-direction: column;
        gap: 0.375rem;
    }

    .msai-callout-icon {
        font-size: 1.125rem;
    }

    .msai-steps li {
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .msai-pullquote {
        padding: 1rem 1.125rem 1rem 1.25rem;
    }

    .msai-faq-a {
        padding-left: 0;
    }
}
