/* ================================================================
   BAZI ARTICLE PAGES
   Reusable CSS for all /bazi/ content pages
   ================================================================ */


/* ── Hero ── */

.ba-hero {
    text-align: center;
    padding: 3rem 1.5rem 1.5rem;
    max-width: 780px;
    margin: 0 auto;
}

.ba-breadcrumb {
    font-size: 0.78rem;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.ba-breadcrumb a {
    color: var(--color-text, #e8e0d4);
    text-decoration: none;
}

.ba-breadcrumb a:hover {
    color: var(--color-accent, #E8C547);
}

.ba-breadcrumb span {
    margin: 0 0.4rem;
}

.ba-hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--color-text, #e8e0d4);
    letter-spacing: -0.01em;
}

.ba-hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: 0.6;
    max-width: 640px;
    margin: 0 auto;
    font-weight: 500;
}

.ba-zh {
    font-family: 'Noto Serif SC', 'Songti SC', serif;
    font-weight: 600;
    color: var(--color-accent, #E8C547);
}


/* ── Article Body ── */

.ba-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

.ba-section {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ba-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.ba-section-label {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent, #E8C547);
    margin-bottom: 0.5rem;
    opacity: 0.7;
}

.ba-section h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--color-text, #e8e0d4);
}

.ba-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.5rem 0 0.5rem;
    color: var(--color-text, #e8e0d4);
}

.ba-body {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--color-text, #e8e0d4);
    opacity: 0.85;
    margin: 0 0 1rem;
}

.ba-body:last-child {
    margin-bottom: 0;
}

.ba-body strong {
    opacity: 1;
    color: var(--color-text, #e8e0d4);
}


/* ── Lead paragraph (first paragraph, slightly larger) ── */

.ba-lead {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--color-text, #e8e0d4);
    opacity: 0.75;
    margin: 0 0 1.5rem;
}


/* ── Pullquote ── */

.ba-pullquote {
    font-family: 'Crimson Pro', serif;
    font-size: 1.25rem;
    font-weight: 600;
    font-style: italic;
    line-height: 1.6;
    color: var(--color-accent, #E8C547);
    padding: 1.25rem 0;
    margin: 1.25rem 0;
    border-top: 1px solid rgba(232, 197, 71, 0.15);
    border-bottom: 1px solid rgba(232, 197, 71, 0.15);
    text-align: center;
    opacity: 0.85;
}


/* ── Stat Row ── */

.ba-stat-row {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.25rem 0;
    margin: 1.25rem 0;
    flex-wrap: wrap;
}

.ba-stat-item {
    text-align: center;
    min-width: 100px;
}

.ba-stat-number {
    display: block;
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-accent, #E8C547);
    line-height: 1.1;
}

.ba-stat-desc {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.5;
    margin-top: 0.35rem;
}


/* ── Info Box (callout, reassurance, note) ── */

.ba-infobox {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.ba-infobox--accent {
    background: rgba(232, 197, 71, 0.04);
    border-color: rgba(232, 197, 71, 0.12);
}

.ba-infobox h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: var(--color-text, #e8e0d4);
}

.ba-infobox p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0 0 0.75rem;
    opacity: 0.85;
}

.ba-infobox p:last-child {
    margin-bottom: 0;
}


/* ── Analogy Box ── */

.ba-analogy {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.25rem 0;
}

.ba-analogy-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.ba-analogy p {
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
    opacity: 0.85;
}


/* ── Pillar Cards (compact, for "what is bazi" style pages) ── */

.ba-pillar-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin: 1.25rem 0;
}

.ba-pillar-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    transition: border-color 0.2s ease;
}

.ba-pillar-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.ba-pillar-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 0.1rem;
}

.ba-pillar-info h4 {
    font-size: 0.88rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--color-text, #e8e0d4);
}

.ba-pillar-info p {
    font-size: 0.85rem;
    line-height: 1.55;
    margin: 0;
    opacity: 0.7;
}


/* ── Comparison Row ── */

.ba-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.25rem 0;
}

.ba-compare-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1rem 1.25rem;
}

.ba-compare-col h4 {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent, #E8C547);
    margin: 0 0 0.5rem;
    opacity: 0.7;
}

.ba-compare-col p {
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.85;
}


/* ── Internal Links ── */

.ba-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.25rem 0;
}

.ba-link {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--color-text, #e8e0d4);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ba-link:hover {
    background: rgba(232, 197, 71, 0.08);
    border-color: rgba(232, 197, 71, 0.25);
}


/* ── CTA Block ── */

.ba-cta {
    background: rgba(232, 197, 71, 0.06);
    border: 1px solid rgba(232, 197, 71, 0.15);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    margin: 2rem 0;
}

.ba-cta h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent, #E8C547);
    margin: 0 0 0.5rem;
}

.ba-cta p {
    font-size: 0.92rem;
    line-height: 1.6;
    opacity: 0.7;
    max-width: 480px;
    margin: 0 auto 1.25rem;
}

.ba-cta-btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    background: var(--color-accent, #E8C547);
    color: #1a1a2e;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.ba-cta-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}


/* ── FAQ ── */

.ba-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 1rem 0;
}

.ba-faq-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.ba-faq-item summary {
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--color-text, #e8e0d4);
    transition: background 0.2s ease;
}

.ba-faq-item summary::-webkit-details-marker { display: none; }

.ba-faq-item summary::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.5;
}

.ba-faq-item[open] summary::after { content: '\2212'; }

.ba-faq-item summary:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ba-faq-item p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.65;
    opacity: 0.85;
}


/* ── Inline body links ── */

.ba-article a:not(.ba-link):not(.ba-cta-btn) {
    color: var(--color-accent, #E8C547);
    text-decoration: none;
    border-bottom: 1px solid rgba(232, 197, 71, 0.25);
    transition: border-color 0.2s ease;
}

.ba-article a:not(.ba-link):not(.ba-cta-btn):hover {
    border-bottom-color: var(--color-accent, #E8C547);
}


/* ── Responsive ── */

@media (max-width: 600px) {
    .ba-hero-title {
        font-size: 1.5rem;
    }

    .ba-hero-subtitle {
        font-size: 1rem;
    }

    .ba-article {
        padding: 0 1rem 2rem;
    }

    .ba-section h2 {
        font-size: 1.2rem;
    }

    .ba-pullquote {
        font-size: 1.1rem;
    }

    .ba-stat-row {
        gap: 1rem;
    }

    .ba-stat-number {
        font-size: 1.6rem;
    }

    .ba-compare {
        grid-template-columns: 1fr;
    }
}