/*
 * Blog article-content styles for the MarketingWaitList site.
 * Unscoped so it matches HTML rendered from the posts' `Content` column
 * (which comes through MarkupString and carries no Blazor scope attribute).
 *
 * Aligned with the Wick design system + the 2026-05-20 marketing mock
 * (How to Start Algo Trading_style.html). Inter for headlines, Space Grotesk
 * for body, JetBrains Mono for labels/disclosures. Brand-green #00FF88,
 * brand-purple #A855F7.
 *
 * Mirrors TheWick.WebTooling/wwwroot/css/blog-preview.css (the admin preview
 * pane scopes the same rules under .blog-preview-surface). Keep them in sync.
 */

/* ===== BASE ===== */
.article-content {
    font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #E4E4E7;
    text-wrap: pretty;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #E4E4E7;
}

.article-content h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -2.5px;
    margin-top: 40px;
    margin-bottom: 20px;
}

.article-content h2 {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    margin-top: 40px;
    margin-bottom: 16px;
}

.article-content h3 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.3px;
    margin-top: 32px;
    margin-bottom: 12px;
}

.article-content p {
    margin-bottom: 24px;
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content strong {
    color: #ffffff;
    font-weight: 700;
}

.article-content a {
    color: #00FF88;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 136, 0.35);
    transition: border-color 0.15s, background 0.15s;
}

.article-content a:hover {
    border-bottom-color: #00FF88;
    background: rgba(0, 255, 136, 0.05);
}

.article-content ul,
.article-content ol {
    margin-bottom: 24px;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 3px solid #00FF88;
    padding: 4px 0 4px 20px;
    margin: 32px 0;
    font-style: italic;
    color: #A1A1AA;
}

.article-content code {
    background-color: #141414;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.article-content pre {
    background-color: #141414;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 24px;
}

.article-content pre code {
    background: none;
    padding: 0;
}

/* ===== HERO DISCLOSURE — full-width hairline band (NEW, compliance) ===== */
.article-content .hero-disclosure-wrap {
    margin: 32px 0 40px;
}

.article-content .hero-disclosure {
    padding: 20px 0;
    border-top: 1px solid #1E1E1E;
    border-bottom: 1px solid #1E1E1E;
    background: transparent;
    border-radius: 0;
}

/* ===== SHORT VERSION — purple-bordered TL;DR card at the top of an article ===== */
.article-content .short-version {
    border: 1px solid #1E1E1E;
    border-left: 3px solid #A855F7;
    background: #141414;
    border-radius: 16px;
    padding: 24px 32px;
    margin: 40px 0;
}

.article-content .short-version-label {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #71717A;
    margin-bottom: 20px;
}

.article-content .short-version p {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.7;
    color: #E4E4E7;
    margin: 0 0 16px;
}

.article-content .short-version p:last-child {
    margin-bottom: 0;
}

.article-content .hero-disclosure p {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 11px;
    line-height: 1.7;
    color: #71717A;
    margin: 0;
    letter-spacing: 0.1px;
}

.article-content .hero-disclosure p + p {
    margin-top: 12px;
}

.article-content .hero-disclosure p strong {
    color: #A1A1AA;
    font-weight: 700;
}

/* ===== APPROVED EDITORIAL CLASSES ===== */
.article-content .pull-quote {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.25em;
    line-height: 1.4;
    font-weight: 600;
    color: #E4E4E7;
    background-color: rgba(0, 255, 136, 0.06);
    border-left: 4px solid #00FF88;
    padding: 20px 24px;
    border-radius: 6px;
    margin: 32px 0;
}

.article-content .callout {
    background-color: #141414;
    border: 1px solid #1E1E1E;
    border-radius: 16px;
    padding: 24px 32px;
    margin: 40px 0;
    position: relative;
    overflow: hidden;
}

.article-content .callout::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
}

.article-content .callout-label {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    font-weight: 700;
    color: #71717A;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.article-content .callout p {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: #A1A1AA;
    margin-bottom: 0;
}

.article-content .section-eyebrow {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00FF88;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 48px;
    margin-bottom: 12px;
}

.article-content .section-eyebrow::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00FF88;
    animation: blogPulse 2s infinite;
}

@keyframes blogPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.article-content .section-head {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    color: #E4E4E7;
    margin-top: 16px;
    margin-bottom: 16px;
}

.article-content .direct-answer {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.65;
    font-weight: 500;
    color: #E4E4E7;
    margin-bottom: 20px;
}

/* ===== TWO-COLUMN ===== */
.article-content .two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.article-content .col-block {
    background-color: #141414;
    border: 1px solid #1E1E1E;
    border-radius: 10px;
    padding: 28px;
}

.article-content .col-block-label {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    font-weight: 700;
    color: #71717A;
    margin-bottom: 14px;
}

.article-content .col-block-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #E4E4E7;
    margin-bottom: 14px;
}

.article-content .col-block p {
    margin-bottom: 0;
    font-size: 15px;
    line-height: 1.65;
    color: #A1A1AA;
}

/* ===== KEY TAKEAWAYS ===== */
.article-content .takeaways {
    margin: 48px 0;
}

.article-content .takeaways-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00FF88;
    margin-bottom: 16px;
}

.article-content .takeaways-label::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00FF88;
    animation: blogPulse 2s infinite;
}

.article-content .takeaways-list {
    background: #141414;
    border: 1px solid #1E1E1E;
    border-radius: 16px;
    overflow: hidden;
}

.article-content .takeaway-item {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: baseline;
    padding: 16px 24px;
    border-bottom: 1px solid #1E1E1E;
}

.article-content .takeaway-item:last-child {
    border-bottom: none;
}

.article-content .takeaway-n {
    flex-shrink: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #00FF88;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.article-content .takeaway-text {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #E4E4E7;
    text-wrap: pretty;
}

/* ===== FAQ ===== */
/* Supports both <div class="faq-item"> with JS-toggled .open class AND
   <details class="faq-item"> using the native [open] attribute (no JS). */
.article-content .faq-section {
    margin: 48px 0;
}

.article-content .faq-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00FF88;
    margin-bottom: 12px;
}

.article-content .faq-eyebrow::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00FF88;
    animation: blogPulse 2s infinite;
}

.article-content .faq-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    color: #E4E4E7;
    margin-bottom: 16px;
}

.article-content .faq-item {
    background: #141414;
    border: 1px solid #1E1E1E;
    border-radius: 16px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.article-content .faq-item.open,
.article-content .faq-item[open] {
    border-color: #71717A;
}

.article-content .faq-q {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #E4E4E7;
    letter-spacing: -0.2px;
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    user-select: none;
    list-style: none;
}

.article-content .faq-q::-webkit-details-marker {
    display: none;
}

.article-content .faq-q::after {
    content: '▸';
    color: #71717A;
    font-size: 12px;
    flex-shrink: 0;
    transition: transform 0.2s, color 0.2s;
}

.article-content .faq-item.open .faq-q::after,
.article-content .faq-item[open] .faq-q::after {
    transform: rotate(90deg);
    color: #00FF88;
}

.article-content .faq-a {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #A1A1AA;
    padding: 0 20px 20px;
    display: block;
}

.article-content .faq-item:not(.open):not([open]) .faq-a {
    display: none;
}

.article-content .faq-a p {
    margin: 0 0 12px;
}

.article-content .faq-a p:last-child {
    margin-bottom: 0;
}

/* ===== RELATED POSTS ===== */
.article-content .related {
    margin: 56px 0 24px;
}

.article-content .related-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #71717A;
    margin-bottom: 24px;
}

.article-content .related-label::before {
    content: "";
    width: 16px;
    height: 1px;
    background: #1E1E1E;
}

.article-content .related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.article-content .related-card {
    background: #141414;
    border: 1px solid #1E1E1E;
    border-radius: 16px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}

.article-content .related-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    opacity: 0;
    transition: opacity 0.2s;
}

.article-content .related-card.retail::before {
    background: linear-gradient(90deg, transparent, #00FF88, transparent);
}

.article-content .related-card.quant::before {
    background: linear-gradient(90deg, transparent, #A855F7, transparent);
}

.article-content .related-card:hover {
    border-color: #71717A;
    transform: translateY(-2px);
}

.article-content .related-card:hover::before {
    opacity: 1;
}

.article-content .related-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 4px 8px;
    border-radius: 4px;
    margin-bottom: 16px;
    line-height: 1;
    background: rgba(0, 255, 136, 0.06);
    color: #00FF88;
    border: 1px solid rgba(0, 255, 136, 0.35);
}

.article-content .related-tag.quant {
    background: rgba(168, 85, 247, 0.06);
    color: #A855F7;
    border-color: rgba(168, 85, 247, 0.35);
}

.article-content .related-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.3px;
    color: #E4E4E7;
    margin-bottom: 8px;
}

.article-content .related-read-time {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 10px;
    color: #71717A;
}

/* ===== IMAGES ===== */
.article-content figure.blog-image {
    margin: 32px 0;
    text-align: center;
}

.article-content figure.blog-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.article-content figure.blog-image figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: #71717A;
    font-style: italic;
    text-align: center;
}

.article-content figure.blog-image.blog-image-wide {
    width: 120%;
    max-width: 1000px;
    margin-left: -10%;
    margin-right: -10%;
}

.article-content figure.blog-image.blog-image-full-bleed {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    max-width: 100vw;
}

.article-content figure.blog-image.blog-image-full-bleed img {
    border-radius: 0;
    width: 100%;
}

.article-content figure.blog-image.blog-image-inline {
    max-width: 400px;
    float: right;
    margin: 8px 0 16px 24px;
}

/* ===== STOP LISTS ===== */
.article-content .stop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 32px 0;
}

.article-content .stop-list {
    background: #141414;
    border: 1px solid #1E1E1E;
    border-radius: 16px;
    overflow: hidden;
    margin: 32px 0;
}

.article-content .stop-list-head {
    padding: 12px 24px;
    border-bottom: 1px solid #1E1E1E;
}

.article-content .stop-list-head--stop {
    background: rgba(250, 204, 21, 0.05);
    border-bottom-color: rgba(250, 204, 21, 0.18);
}

.article-content .stop-list-head--continue {
    background: rgba(0, 255, 136, 0.06);
    border-bottom-color: rgba(0, 255, 136, 0.2);
}

.article-content .stop-list-label {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.article-content .stop-list-head--stop .stop-list-label {
    color: #FACC15;
}

.article-content .stop-list-head--continue .stop-list-label {
    color: #00FF88;
}

.article-content .stop-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 24px;
    border-bottom: 1px solid #1E1E1E;
}

.article-content .stop-item:last-child {
    border-bottom: none;
}

.article-content .stop-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 11px;
    font-weight: 700;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.article-content .stop-icon.yes {
    background: rgba(250, 204, 21, 0.1);
    color: #FACC15;
    border: 1px solid rgba(250, 204, 21, 0.25);
}

.article-content .stop-icon.no {
    background: rgba(0, 255, 136, 0.08);
    color: #00FF88;
    border: 1px solid rgba(0, 255, 136, 0.25);
}

.article-content .stop-title {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #E4E4E7;
    margin-bottom: 4px;
    letter-spacing: -0.2px;
}

.article-content .stop-desc {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 13px;
    color: #A1A1AA;
    line-height: 1.65;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
    .article-content {
        font-size: 15px;
    }
    .article-content .two-col,
    .article-content .related-grid,
    .article-content .stop-grid {
        grid-template-columns: 1fr;
    }
    .article-content .takeaway-item {
        grid-template-columns: 36px 1fr;
        gap: 12px;
    }
    .article-content figure.blog-image.blog-image-wide,
    .article-content figure.blog-image.blog-image-full-bleed {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
    }
    .article-content figure.blog-image.blog-image-inline {
        float: none;
        max-width: 100%;
        margin: 16px 0;
    }
}
