/*
 * Article Design System v1.0
 * Enhanced layout, typography & components for single blog posts
 * Scoped to .blog-content and .breadcrumbs within ryancv theme
 */

/* ── Breadcrumbs ─────────────────────────────────────── */
.breadcrumbs {
    margin: 0 0 18px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(120,204,109,.15);
}
.rank-math-breadcrumb p {
    margin: 0;
    font-size: 0.75rem;
    color: #888;
    letter-spacing: .02em;
}
.rank-math-breadcrumb a {
    color: #78cc6d !important;
    text-decoration: none;
}
.rank-math-breadcrumb a:hover { text-decoration: underline; }
.rank-math-breadcrumb .separator { margin: 0 5px; opacity: .4; }
.rank-math-breadcrumb .last { color: #bbb; }

/* ── Typography enhancements ─────────────────────────── */
.blog-content {
    font-size: 0.97rem;
    line-height: 1.78;
    color: #d4d8dc;
}

/* First paragraph — lead */
.blog-content > p:first-of-type,
.blog-content .art-lead {
    font-size: 1.08rem;
    line-height: 1.7;
    color: #e2e8ef;
    font-weight: 400;
    border-left: 3px solid #78cc6d;
    padding-left: 16px;
    margin-bottom: 28px;
}

/* Headings inside content */
.blog-content h2.wp-block-heading,
.blog-content h2:not(.art-no-style) {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e8edf2;
    margin: 36px 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(120,204,109,.22);
    letter-spacing: -.01em;
}
.blog-content h3.wp-block-heading,
.blog-content h3:not(.art-no-style) {
    font-size: 1.02rem;
    font-weight: 700;
    color: #c8d4e0;
    margin: 28px 0 10px;
}
.blog-content h4.wp-block-heading,
.blog-content h4:not(.art-no-style) {
    font-size: 0.92rem;
    font-weight: 700;
    color: #9ab0c4;
    margin: 20px 0 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Strong & emphasis */
.blog-content strong { color: #e2e8ef; font-weight: 700; }
.blog-content em { color: #a8c4d8; font-style: italic; }
.blog-content p { margin-bottom: 16px; }

/* ── Links ───────────────────────────────────────────── */
.blog-content a:not(.wp-block-button__link) {
    color: #78cc6d !important;
    border-bottom: 1px solid rgba(120,204,109,.3);
    text-decoration: none;
    transition: border-color .15s, color .15s;
}
.blog-content a:not(.wp-block-button__link):hover {
    border-bottom-color: #78cc6d;
    text-decoration: none;
}

/* ── Lists ───────────────────────────────────────────── */
.blog-content ul.wp-block-list,
.blog-content ul {
    padding: 0;
    margin: 0 0 20px 0;
}
.blog-content ul.wp-block-list > li,
.blog-content ul > li {
    padding-left: 22px;
    margin: 10px 0;
    position: relative;
}
.blog-content ul.wp-block-list > li::before,
.blog-content ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    background: #78cc6d;
    border-radius: 50%;
    opacity: .7;
}

.blog-content ol.wp-block-list,
.blog-content ol {
    list-style: none;
    counter-reset: art-counter;
    padding: 0;
    margin: 0 0 20px 0;
}
.blog-content ol.wp-block-list > li,
.blog-content ol > li {
    counter-increment: art-counter;
    padding: 10px 10px 10px 44px;
    margin: 8px 0;
    position: relative;
    border-left: 2px solid rgba(120,204,109,.2);
    border-radius: 0 4px 4px 0;
    background: rgba(120,204,109,.04);
}
.blog-content ol.wp-block-list > li::before,
.blog-content ol > li::before {
    content: counter(art-counter);
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 800;
    color: #78cc6d;
    width: 20px;
    text-align: center;
}
/* Nested lists inside ol */
.blog-content ol > li ul,
.blog-content ol > li ol {
    margin: 10px 0 0;
    border: none;
    background: none;
}
.blog-content ol > li ul > li,
.blog-content ol > li ol > li {
    padding-left: 18px;
    background: none;
    border: none;
}

/* ── Blockquote / pull quote ─────────────────────────── */
.blog-content blockquote,
.blog-content .wp-block-pullquote {
    margin: 28px 0;
    padding: 20px 24px;
    background: rgba(120,204,109,.07);
    border-left: 3px solid #78cc6d;
    border-radius: 0 8px 8px 0;
    color: #b8ccd8;
    font-style: italic;
    font-size: 1.04rem;
    line-height: 1.65;
}
.blog-content blockquote p { color: inherit; }
.blog-content blockquote cite,
.blog-content blockquote footer {
    display: block;
    margin-top: 10px;
    font-size: 0.78rem;
    font-style: normal;
    color: #78cc6d;
    font-weight: 600;
    letter-spacing: .04em;
}

/* ── Figure & images ─────────────────────────────────── */
.blog-content figure {
    margin: 28px 0;
    border-radius: 8px;
    overflow: hidden;
}
.blog-content figure img {
    border-radius: 8px;
    display: block;
    max-width: 100%;
    height: auto;
}
.blog-content figcaption,
.blog-content .wp-element-caption {
    margin-top: 8px;
    font-size: 0.76rem;
    color: #6a8499;
    text-align: center;
    font-style: italic;
    line-height: 1.5;
}
/* Centered figures with border */
.blog-content .wp-block-image.aligncenter figure,
.blog-content center figure {
    border: 1px solid rgba(120,204,109,.15);
    border-radius: 8px;
    padding: 4px;
    background: rgba(10,20,30,.4);
}

/* ── Custom design components ────────────────────────── */

/* Highlight / insight box */
.blog-content .art-highlight,
.blog-content .wp-block-group.art-highlight {
    background: rgba(120,204,109,.08);
    border: 1px solid rgba(120,204,109,.25);
    border-radius: 8px;
    padding: 20px 24px;
    margin: 28px 0;
}
.blog-content .art-highlight > *:first-child { margin-top: 0; }
.blog-content .art-highlight > *:last-child  { margin-bottom: 0; }

/* Key quote — larger emphasis */
.blog-content .art-quote {
    font-size: 1.18rem;
    font-weight: 600;
    color: #78cc6d;
    line-height: 1.55;
    text-align: center;
    margin: 32px auto;
    max-width: 600px;
    padding: 0 20px;
    position: relative;
}
.blog-content .art-quote::before {
    content: '\201C';
    font-size: 4rem;
    color: rgba(120,204,109,.2);
    position: absolute;
    left: -10px;
    top: -20px;
    line-height: 1;
    font-family: Georgia, serif;
}

/* Key takeaway box */
.blog-content .art-takeaway {
    background: linear-gradient(135deg, rgba(120,204,109,.1) 0%, rgba(120,204,109,.04) 100%);
    border: 1px solid rgba(120,204,109,.3);
    border-radius: 10px;
    padding: 22px 26px;
    margin: 32px 0;
}
.blog-content .art-takeaway::before {
    content: 'Key Takeaway';
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #78cc6d;
    margin-bottom: 10px;
}
.blog-content .art-takeaway > *:last-child { margin-bottom: 0; }

/* Stat / number callout */
.blog-content .art-stat {
    text-align: center;
    padding: 20px;
    margin: 24px 0;
}
.blog-content .art-stat .art-stat-num {
    font-size: 3rem;
    font-weight: 800;
    color: #78cc6d;
    line-height: 1;
    display: block;
}
.blog-content .art-stat .art-stat-label {
    font-size: 0.82rem;
    color: #8aa0b4;
    margin-top: 6px;
    display: block;
}

/* Framework / steps row */
.blog-content .art-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin: 28px 0;
}
.blog-content .art-step {
    background: rgba(15,30,50,.6);
    border: 1px solid rgba(120,204,109,.18);
    border-radius: 8px;
    padding: 18px;
    text-align: center;
}
.blog-content .art-step-num {
    width: 32px;
    height: 32px;
    background: rgba(120,204,109,.15);
    border: 1px solid rgba(120,204,109,.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #78cc6d;
}
.blog-content .art-step-title {
    font-size: 0.84rem;
    font-weight: 700;
    color: #d4dce4;
    margin-bottom: 6px;
}
.blog-content .art-step-desc {
    font-size: 0.78rem;
    color: #7a95aa;
    line-height: 1.5;
}

/* Comparison table */
.blog-content .art-compare {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin: 28px 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(120,204,109,.2);
}
.blog-content .art-compare-col {
    padding: 20px;
}
.blog-content .art-compare-col:first-child {
    background: rgba(180,60,60,.07);
    border-right: 1px solid rgba(120,204,109,.1);
}
.blog-content .art-compare-col:last-child {
    background: rgba(120,204,109,.07);
}
.blog-content .art-compare-head {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.blog-content .art-compare-col:first-child .art-compare-head { color: #e07070; }
.blog-content .art-compare-col:last-child .art-compare-head  { color: #78cc6d; }
.blog-content .art-compare ul { margin: 0; }
.blog-content .art-compare ul > li::before { opacity: .6; }

/* Stage / timeline item */
.blog-content .art-stage {
    display: flex;
    gap: 16px;
    margin: 20px 0;
    padding: 18px;
    background: rgba(10,20,35,.5);
    border: 1px solid rgba(120,204,109,.12);
    border-radius: 8px;
}
.blog-content .art-stage-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: rgba(120,204,109,.14);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #78cc6d;
    border: 1px solid rgba(120,204,109,.35);
}
.blog-content .art-stage-body { flex: 1; min-width: 0; }
.blog-content .art-stage-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #cdd8e4;
    margin-bottom: 4px;
}
.blog-content .art-stage-desc {
    font-size: 0.84rem;
    color: #7a95aa;
    line-height: 1.55;
}

/* Infographic / SVG container */
.blog-content .art-infographic {
    margin: 32px 0;
    padding: 24px;
    background: rgba(8,18,32,.6);
    border: 1px solid rgba(120,204,109,.18);
    border-radius: 12px;
    overflow-x: auto;
}
.blog-content .art-infographic svg {
    display: block;
    max-width: 100%;
    height: auto;
}
.blog-content .art-infographic-caption {
    text-align: center;
    font-size: 0.74rem;
    color: #5a7a8e;
    margin-top: 12px;
    font-style: italic;
}

/* Episode badge */
.blog-content .art-ep-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #78cc6d;
    border: 1px solid rgba(120,204,109,.45);
    border-radius: 3px;
    padding: 3px 8px;
    margin-bottom: 16px;
}

/* ── Rounded hero image (like the 108px ones at top) ─── */
.blog-content .alignleft.is-style-rounded {
    border-radius: 50% !important;
    border: 3px solid rgba(120,204,109,.3);
    box-shadow: 0 4px 16px rgba(0,0,0,.3);
    margin-right: 20px;
    margin-bottom: 12px;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 640px) {
    .blog-content .art-compare { grid-template-columns: 1fr; }
    .blog-content .art-compare-col:first-child { border-right: none; border-bottom: 1px solid rgba(120,204,109,.1); }
    .blog-content h2.wp-block-heading { font-size: 1.05rem; }
    .blog-content > p:first-of-type { font-size: 1rem; }
    .blog-content .art-steps { grid-template-columns: 1fr; }
}

/* ── Quick Answer (GEO / AEO) ────────────────────────── */
.art-quick-answer {
    border-left: 3px solid #78cc6d;
    background: rgba(120,204,109,0.055);
    border-radius: 0 8px 8px 0;
    padding: 1.05rem 1.4rem 1.05rem 1.3rem;
    margin: 0 0 2rem;
}
.art-quick-answer::before {
    content: 'Quick Answer';
    display: block;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #78cc6d;
    margin-bottom: .5rem;
}
.art-quick-answer p {
    margin: 0;
    font-size: .96rem;
    line-height: 1.68;
    color: #c8d8e8;
}

/* ── Related Articles (Entity Linking cluster) ────────── */
.art-related {
    margin: 3rem 0 0;
    padding: 1.3rem 1.4rem;
    background: rgba(120,204,109,0.04);
    border-top: 1px solid rgba(120,204,109,0.12);
    border-radius: 8px;
}
.art-related-label {
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: #78cc6d;
    margin-bottom: .85rem;
}
.art-related-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}
.art-related-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #c0d2e4;
    text-decoration: none;
    font-size: .88rem;
    padding: .45rem .6rem;
    border-radius: 5px;
    transition: background .15s, color .15s;
}
.art-related-list li a:hover {
    background: rgba(120,204,109,0.09);
    color: #78cc6d;
}
.art-related-min {
    font-size: .7rem;
    color: #4a6a82;
    margin-left: 1rem;
    white-space: nowrap;
    flex-shrink: 0;
}
