/*!
 * BeyondChats article components
 * ----------------------------------------------------------------------
 * Loaded by mu-plugins/beyondchats-articles.php on single post views.
 * Mirrors the engagement components used by drmalpani's seo-optimizer
 * (info-box, key-stat-box, blockquote, faq-section, consultation-footer)
 * but uses the BeyondChats brand palette:
 *
 *   --bc-primary   #2962FF  (electric blue)
 *   --bc-accent    #64ED80  (signal green)
 *   --bc-ink       #001433  (navy heading text)
 *   --bc-body      #1f2a44  (paragraph text)
 *   --bc-muted     #4f5d75  (secondary text)
 *   --bc-surface   #f5f8ff  (light blue tint backgrounds)
 *   --bc-border    #dde3ee
 *
 * Strategy: Gutenberg core blocks (paragraph/heading/list/quote/image)
 * are styled by the Blocksy theme. We only override the four bespoke
 * components so they stand out as engagement hooks without conflicting
 * with the rest of the theme.
 *
 * Iterate: edit this file in place. Bust the browser cache by changing
 * the ?ver=… query string in mu-plugins/beyondchats-articles.php.
 */

.latest-article-wrapper {
    --bc-primary: #2962FF;
    --bc-primary-dark: #1f4ee0;
    --bc-accent: #64ED80;
    --bc-accent-dark: #3acb55;
    --bc-ink: #001433;
    --bc-body: #1f2a44;
    --bc-muted: #4f5d75;
    --bc-surface: #f5f8ff;
    --bc-border: #dde3ee;
}

/* ---------------------------------------------------------------------
 * info-box: highlighted callout for "Key Takeaway", "Did you know?", etc.
 * Suggested HTML:
 *   <div class="info-box">
 *       <strong>Key Takeaway:</strong>
 *       <p>One concise sentence.</p>
 *   </div>
 * ------------------------------------------------------------------ */
.latest-article-wrapper .info-box,
.entry-content .info-box {
    background-color: var(--bc-surface, #f5f8ff);
    border-left: 4px solid var(--bc-primary, #2962FF);
    padding: 1.5rem;
    margin: 2.5rem 0;
    border-radius: 0 12px 12px 0;
}

.latest-article-wrapper .info-box strong,
.entry-content .info-box strong {
    color: var(--bc-ink, #001433);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

.latest-article-wrapper .info-box p,
.entry-content .info-box p {
    margin: 0;
    color: var(--bc-body, #1f2a44);
    line-height: 1.65;
    font-size: 1rem;
}

@media screen and (max-width: 575px) {
    .latest-article-wrapper .info-box,
    .entry-content .info-box {
        padding: 1.25rem;
        margin: 2rem 0;
    }
    .latest-article-wrapper .info-box p,
    .entry-content .info-box p {
        font-size: 0.95rem;
    }
}


/* ---------------------------------------------------------------------
 * key-stat-box: oversized metric callout.
 * Suggested HTML:
 *   <div class="key-stat-box">
 *       <span class="stat-number">98%</span>
 *       <p class="stat-text">of WhatsApp messages are opened within 3 minutes.</p>
 *   </div>
 * ------------------------------------------------------------------ */
.latest-article-wrapper .key-stat-box,
.entry-content .key-stat-box {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: linear-gradient(135deg, #f5f8ff 0%, #ffffff 100%);
    border: 1px solid var(--bc-border, #dde3ee);
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin: 3rem 0;
    box-shadow: 0 6px 24px rgba(41, 98, 255, 0.06);
}

.latest-article-wrapper .key-stat-box .stat-number,
.entry-content .key-stat-box .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bc-primary, #2962FF);
    line-height: 1;
    letter-spacing: -0.04em;
    flex-shrink: 0;
}

.latest-article-wrapper .key-stat-box .stat-text,
.entry-content .key-stat-box .stat-text {
    font-size: 1.0625rem;
    color: var(--bc-body, #1f2a44);
    font-weight: 500;
    line-height: 1.55;
    margin: 0;
}

@media screen and (max-width: 575px) {
    .latest-article-wrapper .key-stat-box,
    .entry-content .key-stat-box {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        padding: 1.5rem;
        margin: 2rem 0;
    }
    .latest-article-wrapper .key-stat-box .stat-number,
    .entry-content .key-stat-box .stat-number {
        font-size: 2.5rem;
    }
    .latest-article-wrapper .key-stat-box .stat-text,
    .entry-content .key-stat-box .stat-text {
        font-size: 1rem;
    }
}


/* ---------------------------------------------------------------------
 * blockquote / wp-block-quote (Gutenberg pull-quote)
 * Used for emphatic 1-2 sentence statements.
 * ------------------------------------------------------------------ */
.entry-content blockquote.wp-block-quote,
.entry-content blockquote,
.latest-article-wrapper blockquote {
    margin: 2.5rem 0;
    padding: 1.25rem 1.75rem;
    background-color: var(--bc-surface, #f5f8ff);
    border-left: 4px solid var(--bc-primary, #2962FF);
    border-radius: 0 8px 8px 0;
    position: relative;
    quotes: none;
}

.entry-content blockquote.wp-block-quote p,
.entry-content blockquote p,
.latest-article-wrapper blockquote p {
    font-size: 1.125rem;
    font-style: italic;
    font-weight: 500;
    color: var(--bc-ink, #001433);
    line-height: 1.65;
    margin: 0;
    quotes: none;
}

.entry-content blockquote.wp-block-quote p::before,
.entry-content blockquote p::before,
.latest-article-wrapper blockquote p::before {
    content: "\201C";
    font-family: Georgia, serif;
    font-size: 2rem;
    color: var(--bc-primary, #2962FF);
    margin-right: 0.25rem;
    vertical-align: -0.4rem;
    line-height: 0;
}

.entry-content blockquote.wp-block-quote p::after,
.entry-content blockquote p::after,
.latest-article-wrapper blockquote p::after {
    content: none;
}

@media screen and (max-width: 575px) {
    .entry-content blockquote.wp-block-quote,
    .entry-content blockquote,
    .latest-article-wrapper blockquote {
        margin: 2rem 0;
        padding: 1rem 1.25rem;
    }
    .entry-content blockquote.wp-block-quote p,
    .entry-content blockquote p,
    .latest-article-wrapper blockquote p {
        font-size: 1.05rem;
    }
}


/* ---------------------------------------------------------------------
 * faq-section + faq-item: bottom-bordered Q&A list.
 * Suggested HTML:
 *   <div class="faq-section">
 *       <h3>Frequently Asked Questions</h3>
 *       <div class="faq-item">
 *           <h4>Q: How does pricing work?</h4>
 *           <p>A: Per-conversation, billed monthly.</p>
 *       </div>
 *       ... more items ...
 *   </div>
 * ------------------------------------------------------------------ */
.entry-content .faq-section,
.latest-article-wrapper .faq-section {
    background: transparent;
    margin: 3rem 0 2rem 0;
    padding: 0;
}

.entry-content .faq-section > h3,
.latest-article-wrapper .faq-section > h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bc-ink, #001433);
    margin: 0 0 1.75rem 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bc-border, #dde3ee);
}

.entry-content .faq-section .faq-item,
.latest-article-wrapper .faq-section .faq-item {
    padding: 0 0 1.25rem 0;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--bc-border, #dde3ee);
}

.entry-content .faq-section .faq-item:last-child,
.latest-article-wrapper .faq-section .faq-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.entry-content .faq-section .faq-item h4,
.latest-article-wrapper .faq-section .faq-item h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--bc-ink, #001433);
    margin: 0 0 0.5rem 0;
    padding: 0;
    line-height: 1.45;
    border: none;
}

.entry-content .faq-section .faq-item p,
.latest-article-wrapper .faq-section .faq-item p {
    margin: 0;
    color: var(--bc-muted, #4f5d75);
    font-size: 1rem;
    line-height: 1.65;
}

@media screen and (max-width: 575px) {
    .entry-content .faq-section,
    .latest-article-wrapper .faq-section {
        margin: 2rem 0;
    }
    .entry-content .faq-section > h3,
    .latest-article-wrapper .faq-section > h3 {
        font-size: 1.25rem;
        margin-bottom: 1.25rem;
    }
    .entry-content .faq-section .faq-item h4,
    .latest-article-wrapper .faq-section .faq-item h4 {
        font-size: 1.05rem;
    }
    .entry-content .faq-section .faq-item p,
    .latest-article-wrapper .faq-section .faq-item p {
        font-size: 0.95rem;
    }
}


/* ---------------------------------------------------------------------
 * consultation-footer: the closing CTA paragraph.
 * Detected & wrapped automatically by FormatterStage when the final
 * paragraph contains a beyondchats.com link.
 * ------------------------------------------------------------------ */
.entry-content .consultation-footer,
.latest-article-wrapper .consultation-footer {
    background-color: #ffffff;
    box-shadow: 0 8px 28px rgba(0, 20, 51, 0.08);
    border-left: 4px solid var(--bc-primary, #2962FF);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin: 2.5rem 0 1rem 0;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--bc-body, #1f2a44);
}

.entry-content .consultation-footer strong,
.entry-content .consultation-footer b,
.latest-article-wrapper .consultation-footer strong,
.latest-article-wrapper .consultation-footer b {
    color: var(--bc-ink, #001433);
    font-weight: 700;
}

.entry-content .consultation-footer a,
.latest-article-wrapper .consultation-footer a {
    color: var(--bc-primary, #2962FF);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(41, 98, 255, 0.35);
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.entry-content .consultation-footer a:hover,
.latest-article-wrapper .consultation-footer a:hover {
    color: var(--bc-primary-dark, #1f4ee0);
    text-decoration-color: var(--bc-primary-dark, #1f4ee0);
}

.entry-content .consultation-footer p,
.latest-article-wrapper .consultation-footer p {
    margin: 0;
}

.entry-content .consultation-footer p + p,
.latest-article-wrapper .consultation-footer p + p {
    margin-top: 0.625rem;
}

@media screen and (max-width: 575px) {
    .entry-content .consultation-footer,
    .latest-article-wrapper .consultation-footer {
        padding: 1.125rem 1.25rem;
        font-size: 0.9375rem;
        margin: 2rem 0 0.75rem 0;
    }
}


/* ---------------------------------------------------------------------
 * Ordered lists inside articles — drop the dull default numbering for
 * a brand-coloured numeral that matches the heading accent.
 * ------------------------------------------------------------------ */
.entry-content > ol.wp-block-list,
.latest-article-wrapper ol.wp-block-list {
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    counter-reset: bc-ol;
    list-style: none;
}

.entry-content > ol.wp-block-list > li,
.latest-article-wrapper ol.wp-block-list > li {
    position: relative;
    padding-left: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--bc-body, #1f2a44);
    line-height: 1.7;
    counter-increment: bc-ol;
}

.entry-content > ol.wp-block-list > li::before,
.latest-article-wrapper ol.wp-block-list > li::before {
    content: counter(bc-ol) ".";
    position: absolute;
    left: -1.5rem;
    font-weight: 700;
    color: var(--bc-primary, #2962FF);
}
