/* === Blog Article Styles === */

/* Back link */
.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 28px;
    transition: gap 0.2s;
}
.blog-back:hover {
    gap: 10px;
}

/* Blog Hero */
.blog-hero {
    padding: 140px 0 60px;
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--bg) 100%);
}
.blog-hero .container {
    max-width: 800px;
}
.blog-hero h1 {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}
.blog-intro {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}
.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}
.blog-meta-dot {
    color: var(--text-light);
}

/* Blog Stats Bar */
.blog-stats-bar {
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
}
.blog-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.blog-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.blog-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Blog Body */
.blog-body {
    padding: 64px 0 80px;
}
.blog-content {
    max-width: 720px;
    margin: 0 auto;
}
.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 48px;
    margin-bottom: 16px;
    color: var(--text);
}
.blog-content h2:first-child {
    margin-top: 0;
}
.blog-content p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 16px;
}
.blog-content a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(79, 70, 229, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.2s;
}
.blog-content a:hover {
    text-decoration-color: var(--primary);
}

/* Blog Table */
.blog-table-wrap {
    margin: 32px 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.blog-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.blog-table thead {
    background: var(--bg-alt);
}
.blog-table th {
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.blog-table td {
    padding: 14px 18px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.blog-table tr:last-child td {
    border-bottom: none;
}
.speed-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
}
.speed-badge.fast {
    background: #dcfce7;
    color: #16a34a;
}
.speed-badge.medium {
    background: #dbeafe;
    color: #2563eb;
}
.speed-badge.slow {
    background: #fef3c7;
    color: #d97706;
}
.speed-badge.very-slow {
    background: #fee2e2;
    color: #dc2626;
}

/* Callout Boxes */
.blog-callout {
    margin: 32px 0;
    padding: 28px 32px;
    border-radius: var(--radius);
    border-left: 4px solid;
}
.blog-callout.green {
    background: #f0fdf4;
    border-left-color: #22c55e;
}
.blog-callout.red {
    background: #fef2f2;
    border-left-color: #ef4444;
}
.blog-callout h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}
.blog-callout ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    margin: 0;
}
.blog-callout ul li {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}
.blog-callout.green ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}
.blog-callout.red ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}

/* Process Steps */
.blog-process {
    margin: 32px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.blog-process::before {
    content: '';
    position: absolute;
    left: 22px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: var(--border);
}
.process-step {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}
.process-num {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.process-content {
    flex: 1;
    padding-top: 4px;
}
.process-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}
.process-content p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}

/* Highlight Stat */
.blog-highlight {
    margin: 40px 0;
    padding: 40px;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
    border-radius: var(--radius);
    text-align: center;
}
.blog-highlight-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}
.blog-highlight-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
    display: block;
}

/* Blog CTA Box */
.blog-cta-box {
    margin-top: 48px;
    padding: 48px;
    background: var(--bg-dark);
    border-radius: var(--radius);
    text-align: center;
}
.blog-cta-box .btn {
    background: #fff;
    color: var(--bg-dark);
    font-weight: 700;
}
.blog-cta-box .btn:hover {
    background: #e2e8f0;
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

/* Strategy Headers */
.strategy-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 56px;
    margin-bottom: 16px;
}
.strategy-header:first-child {
    margin-top: 0;
}
.strategy-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
}
.strategy-header h2 {
    margin: 0 !important;
}

/* Two Column Cards */
.two-col-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0;
}
.two-col-cards .blog-callout {
    margin: 0;
}

/* Blog Tip */
.blog-tip {
    margin: 24px 0;
    padding: 20px 24px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.blog-tip strong {
    color: #b45309;
}
.blog-tip a {
    color: var(--primary);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(79, 70, 229, 0.3);
    text-underline-offset: 3px;
}
.blog-tip a:hover {
    text-decoration-color: var(--primary);
}

/* Reason Blocks */
.reason-block {
    margin: 40px 0;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}
.reason-block:last-of-type {
    border-bottom: none;
}
.reason-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.reason-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}
.reason-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

/* Code Blocks */
.code-block {
    margin: 24px 0;
    background: var(--bg-dark);
    border-radius: var(--radius);
    padding: 24px 28px;
    overflow-x: auto;
}
.code-label {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.code-block pre {
    margin: 0;
    background: none;
    padding: 0;
    border-radius: 0;
}
.code-block code {
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.88rem;
    color: #e2e8f0;
    line-height: 1.6;
}

/* Amber Callout */
.blog-callout.amber {
    background: #fffbeb;
    border-left-color: #f59e0b;
}
.blog-callout .callout-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}
.blog-callout .callout-text:last-child {
    margin-bottom: 0;
}

/* Social Grid */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 28px 0;
}
.social-card {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}
.social-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.social-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.social-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Implementation Steps */
.impl-steps {
    margin: 32px 0;
    padding: 32px;
    background: var(--bg-alt);
    border-radius: var(--radius);
}
.impl-steps h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
}
.impl-step {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}
.impl-step:last-child {
    margin-bottom: 0;
}
.impl-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}
.impl-content h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text);
}
.impl-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

/* Decision Cards */
.decision-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
}
.decision-card.featured {
    border-color: var(--primary);
    background: #fafafe;
    box-shadow: var(--shadow-lg);
}
.decision-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}
.decision-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.decision-card ul li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding-left: 20px;
    position: relative;
}
.decision-card ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}
.decision-card.featured ul li::before {
    background: var(--primary);
}

/* === Responsive === */
@media (max-width: 768px) {
    .two-col-cards {
        grid-template-columns: 1fr;
    }
    .social-grid {
        grid-template-columns: 1fr;
    }
    .strategy-header {
        margin-top: 40px;
    }
    .strategy-num {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    .impl-steps {
        padding: 24px 20px;
    }
    .blog-stats-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .blog-stat-value {
        font-size: 1.6rem;
    }
    .blog-callout {
        padding: 20px 20px;
    }
    .blog-highlight {
        padding: 28px 20px;
    }
    .blog-highlight-value {
        font-size: 2.2rem;
    }
    .blog-cta-box {
        padding: 32px 20px;
    }
    .blog-table-wrap {
        margin: 24px -24px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .process-step {
        gap: 14px;
    }
    .process-num {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    .blog-process::before {
        left: 17px;
    }
}
