/* ============================================================
   Aetrum Blog — Shared Styles
   Loaded alongside ../css/styles.css which provides all
   CSS custom properties, nav, footer, and button styles.
   ============================================================ */

/* ── Blog layout ─────────────────────────────────────────── */

.blog-main {
    min-height: calc(100vh - 78px);
    padding-bottom: 80px;
}

.blog-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-container--wide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── Breadcrumb / back link ───────────────────────────────── */

.breadcrumb {
    padding: 32px 0 0;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.breadcrumb a {
    color: var(--text-soft);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent-primary);
}

/* ── Article header ───────────────────────────────────────── */

.article-header {
    padding: 32px 0 40px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 32px;
}

.article-banner {
    margin-bottom: 48px;
}

.article-banner-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.article-category {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--pill-border);
}

.article-date {
    font-size: 13px;
    color: var(--text-soft);
}

.article-reading-time {
    font-size: 13px;
    color: var(--text-soft);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.article-reading-time::before {
    content: "·";
    color: var(--text-soft);
}

.article-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}

.article-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 24px;
    font-weight: 400;
}

.article-byline {
    font-size: 14px;
    color: var(--text-soft);
    font-weight: 500;
}

.article-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.article-tag {
    font-size: 11px;
    color: var(--text-soft);
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    border-radius: 999px;
    padding: 3px 10px;
}

/* ── Article body typography ──────────────────────────────── */

.article-body {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-main);
}

.article-body p {
    margin: 0 0 24px;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--text-main);
    margin: 56px 0 20px;
    padding-top: 8px;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-main);
    margin: 40px 0 16px;
}

.article-body ul {
    margin: 0 0 24px;
    padding-left: 0;
    list-style: none;
}

.article-body ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.article-body ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: 600;
}

.article-body strong {
    font-weight: 600;
    color: var(--text-main);
}

/* Lead statement — "There is a better model." */
.lead-statement {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--accent-primary) !important;
    margin: 32px 0 !important;
    line-height: 1.4 !important;
}

/* ── Three Levels cards ───────────────────────────────────── */

.level-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0 40px;
}

.level-card {
    background: var(--card-bg-soft);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px 28px;
    border-left: 4px solid transparent;
    box-shadow: var(--shadow-card);
}

.level-card--1 {
    border-left-color: #f97316;
}

.level-card--2 {
    border-left-color: #3b82f6;
}

.level-card--3 {
    border-left-color: #10b981;
}

.level-card-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.level-card--1 .level-card-label { color: #f97316; }
.level-card--2 .level-card-label { color: #3b82f6; }
.level-card--3 .level-card-label { color: #10b981; }

.level-card-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 8px;
}

.level-card-body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* ── Decision Loop steps ──────────────────────────────────── */

.loop-steps {
    margin: 32px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.loop-step {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 16px;
    padding: 28px 0;
    border-bottom: 1px solid var(--card-border);
}

.loop-step:last-child {
    border-bottom: none;
}

.loop-step-number {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent-soft);
    background: var(--accent-soft);
    color: var(--accent-primary);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 3px;
}

.loop-step-content {
    flex: 1;
}

.loop-step-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 10px;
}

.loop-step-body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

/* ── Prompt callouts (Try: / Example:) ────────────────────── */

.prompt-callout {
    background: var(--accent-soft);
    border: 0;
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 8px 8px 0;
    margin: 20px 0 8px;
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-muted);
    font-style: normal;
}

.prompt-callout strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

/* ── Prompt Patterns by Role ──────────────────────────────── */

.role-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 32px 0 40px;
}

.role-card {
    background: var(--card-bg-soft);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 24px 28px;
    box-shadow: var(--shadow-card);
}

.role-card-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-card-title::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
}

.role-card-body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 16px;
}

.role-card-body ul {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.role-card-body ul li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 8px;
    font-size: 15px;
    color: var(--text-muted);
}

.role-card-body ul li::before {
    content: "–";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

/* ── Mindset list ─────────────────────────────────────────── */

.mindset-list {
    margin: 24px 0 !important;
    padding: 20px 24px !important;
    background: var(--bg-subtle) !important;
    border-radius: 10px !important;
    border: 1px solid var(--card-border) !important;
}

/* ── CTA section ──────────────────────────────────────────── */

.article-cta {
    margin: 64px 0 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f172a 100%);
    border-radius: 16px;
    padding: 40px 40px;
    color: #f1f5f9;
}

.article-cta-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #60a5fa;
    margin: 0 0 16px;
}

.article-cta-body {
    font-size: 16px;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0 0 24px;
}

.article-cta-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cta-btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #3b82f6 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 999px;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
}

.cta-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cta-btn-ghost {
    display: inline-block;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 0;
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.cta-btn-ghost:hover {
    color: #f1f5f9;
}

/* ── Post footer nav ──────────────────────────────────────── */

.post-footer-nav {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--card-border);
    font-size: 13px;
}

.post-footer-nav a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.post-footer-nav a:hover {
    color: var(--accent-primary);
}

/* ══════════════════════════════════════════════════════════
   Blog listing page
   ══════════════════════════════════════════════════════════ */

.blog-listing-hero {
    padding: 64px 0 48px;
    border-bottom: 1px solid var(--card-border);
    margin-bottom: 56px;
}

.blog-listing-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin: 0 0 12px;
}

.blog-listing-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin: 0 0 12px;
}

.blog-listing-description {
    font-size: 17px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* ── Post cards grid ──────────────────────────────────────── */

.post-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 80px;
}

.post-card {
    background: var(--card-bg-soft);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--accent-primary);
}

.post-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.post-card-category {
    display: inline-block;
    background: var(--accent-soft);
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--pill-border);
}

.post-card-date {
    font-size: 13px;
    color: var(--text-soft);
}

.post-card-reading-time {
    font-size: 13px;
    color: var(--text-soft);
}

.post-card-reading-time::before {
    content: "·";
    margin-right: 6px;
    color: var(--text-soft);
}

.post-card-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-main);
    margin: 0 0 10px;
    letter-spacing: -0.01em;
}

.post-card-subtitle {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0 0 20px;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.post-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-card-tag {
    font-size: 11px;
    color: var(--text-soft);
    background: var(--chip-bg);
    border: 1px solid var(--chip-border);
    border-radius: 999px;
    padding: 3px 10px;
}

.post-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (min-width: 640px) {
    .role-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .blog-container {
        padding: 0 16px;
    }

    .blog-container--wide {
        padding: 0 16px;
    }

    .article-header {
        padding: 24px 0 32px;
        margin-bottom: 36px;
    }

    .article-cta {
        padding: 28px 24px;
    }

    .loop-step {
        grid-template-columns: 44px 1fr;
        gap: 12px;
    }

    .post-card {
        padding: 24px;
    }

    .blog-listing-hero {
        padding: 40px 0 32px;
    }

    .article-cta-actions {
        flex-direction: column;
    }
}
