/**
 * AI Blog Generator — Frontend post styles.
 * Applied to generated blog content on the live site.
 * Gold editorial palette matches the luxury aibg-single.css design language.
 */

:root {
    --aibg-fe-gold: #c9a84c;
    --aibg-fe-gold-dark: #a0782a;
    --aibg-fe-gold-bg: #fdf8f0;
    --aibg-fe-dark: #1a1a2e;
    --aibg-fe-body: #334155;
    --aibg-fe-border: #e8e0d5;
    --aibg-fe-radius: 10px;
}

/* ── Tables ─────────────────────────────────────────────── */
.single-post article table {
    width: 100%;
    border-collapse: collapse;
    margin: 36px 0;
    background: #ffffff;
    border: 1px solid var(--aibg-fe-border);
    border-radius: var(--aibg-fe-radius);
    overflow: hidden;
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.06);
}

.single-post article table th {
    background: var(--aibg-fe-gold-bg);
    color: var(--aibg-fe-dark);
    font-weight: 700;
    text-align: left;
    padding: 14px 22px;
    border-bottom: 2px solid var(--aibg-fe-border);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.single-post article table td {
    padding: 14px 22px;
    border-bottom: 1px solid var(--aibg-fe-border);
    color: var(--aibg-fe-body);
    font-size: 16px;
}

.single-post article table tr:last-child td {
    border-bottom: none;
}

.single-post article table tr:nth-child(even) td {
    background: #fafaf9;
}

.single-post article table tr:hover td {
    background: var(--aibg-fe-gold-bg);
}

/* ── Blockquote ─────────────────────────────────────────── */
.single-post article blockquote {
    position: relative;
    margin: 40px 0;
    padding: 28px 36px 28px 56px;
    background: var(--aibg-fe-gold-bg);
    border-left: 4px solid var(--aibg-fe-gold);
    border-radius: 0 var(--aibg-fe-radius) var(--aibg-fe-radius) 0;
    font-style: italic;
    color: var(--aibg-fe-dark);
    font-size: 1.15em;
    line-height: 1.65;
}

.single-post article blockquote::before {
    content: '\201C';
    font-size: 72px;
    line-height: 1;
    color: var(--aibg-fe-gold);
    opacity: 0.4;
    position: absolute;
    top: 12px;
    left: 14px;
    font-family: Georgia, serif;
    font-style: normal;
}

/* ── Lists ──────────────────────────────────────────────── */
.single-post article ul,
.single-post article ol {
    margin-bottom: 28px;
    color: var(--aibg-fe-body);
    padding-left: 1.25em;
}

.single-post article ul li::marker {
    color: var(--aibg-fe-gold);
}

/* Step-by-Step Box (ol) */
.single-post article ol {
    counter-reset: aibg-step-counter;
    list-style: none;
    padding-left: 0;
}

.single-post article ol>li {
    position: relative;
    padding-left: 52px;
    margin-bottom: 18px;
}

.single-post article ol>li::before {
    counter-increment: aibg-step-counter;
    content: counter(aibg-step-counter);
    position: absolute;
    left: 0;
    top: 1px;
    width: 34px;
    height: 34px;
    background: var(--aibg-fe-gold);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
}

/* Strong text */
.single-post article ul>li strong,
.single-post article ol>li strong {
    color: var(--aibg-fe-dark);
}

/* ── FAQ Accordion ──────────────────────────────────────── */
.aibg-faq-accordion {
    margin-bottom: 14px;
    border: 1px solid var(--aibg-fe-border);
    border-radius: var(--aibg-fe-radius);
    background-color: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.aibg-faq-accordion:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
}

.aibg-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 22px;
    cursor: pointer;
    background-color: #ffffff;
    font-size: 17px;
    font-weight: 600;
    color: var(--aibg-fe-dark);
    transition: background-color 0.2s ease;
    list-style: none;
}

.aibg-faq-question::-webkit-details-marker {
    display: none;
}

.aibg-faq-question:hover {
    background-color: var(--aibg-fe-gold-bg);
}

.aibg-faq-question::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--aibg-fe-gold-dark);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

details.aibg-faq-accordion[open] .aibg-faq-question::after {
    content: '−';
}

details.aibg-faq-accordion[open] .aibg-faq-question {
    color: var(--aibg-fe-gold-dark);
    background-color: var(--aibg-fe-gold-bg);
    border-bottom: 1px solid var(--aibg-fe-border);
}

.aibg-faq-answer {
    padding: 18px 22px 22px;
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
    background-color: #fcfcfa;
    animation: aibg-fade-in 0.25s ease;
}

.aibg-faq-answer p:last-child {
    margin-bottom: 0;
}

@keyframes aibg-fade-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide internal prompts generated by AI Blog Generator */
.aibg-internal-prompt {
    display: none !important;
}