/* ============================================
   SA-Flow — Blog Stylesheet
   ============================================ */

/* --- Blog Page --- */
.blog-page {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.blog-header {
    text-align: center;
    margin-bottom: 64px;
}

.blog-header .section-desc {
    margin: 0 auto;
}

/* --- Blog Grid --- */
.blog-grid {
    display: grid;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.blog-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.blog-card-icon {
    font-size: 40px;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border-radius: var(--radius);
}

.blog-card-content {
    flex: 1;
}

.blog-card-date {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 8px 0 10px;
    letter-spacing: -0.01em;
}

.blog-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.blog-card-cta {
    display: inline-block;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

/* --- Article Page --- */
.blog-article {
    padding-top: 100px;
    padding-bottom: 80px;
}

.article-header {
    max-width: 720px;
    margin: 0 auto 48px;
}

.article-back {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 24px;
    transition: color var(--transition-fast);
}

.article-back:hover {
    color: var(--accent-hover);
}

.article-header h1 {
    font-size: clamp(28px, 4.5vw, 44px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 12px 0 20px;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

/* --- Article Body --- */
.article-body {
    max-width: 720px;
    margin: 0 auto;
}

.article-lead {
    font-size: 19px;
    line-height: 1.7;
    color: var(--text);
    font-weight: 400;
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--border);
}

.article-body h2 {
    font-size: 26px;
    font-weight: 700;
    margin: 48px 0 16px;
    letter-spacing: -0.02em;
}

.article-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 32px 0 12px;
}

.article-body p {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.article-body a {
    color: var(--accent);
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(1, 69, 242, 0.3);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--transition-fast);
}

.article-body a:hover {
    text-decoration-color: var(--accent);
}

.article-body ul,
.article-body ol {
    margin: 16px 0 24px;
    padding-left: 24px;
}

.article-body li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

/* --- Article Table --- */
.article-table-wrap {
    overflow-x: auto;
    margin: 24px 0 32px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.article-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.article-table th {
    background: var(--bg);
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}

.article-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: top;
}

.article-table tr:last-child td {
    border-bottom: none;
}

/* --- Article CTA --- */
.article-cta {
    margin: 56px 0 40px;
    padding: 40px;
    background: var(--accent);
    border-radius: var(--radius-lg);
    text-align: center;
    color: #fff;
}

.article-cta h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #fff;
}

.article-cta p {
    font-size: 16px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}

.article-cta .btn {
    background: #fff;
    color: var(--accent);
}

.article-cta .btn:hover {
    background: #f0f4ff;
    transform: translateY(-1px);
}

/* --- Related Articles --- */
.article-related {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.article-related h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 16px;
    color: var(--text);
}

.article-related ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-related li {
    margin-bottom: 10px;
}

.article-related a {
    font-size: 16px;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.article-related a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* --- Nav active state --- */
.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .blog-page {
        padding-top: 100px;
    }

    .blog-card {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }

    .blog-card-icon {
        width: 52px;
        height: 52px;
        font-size: 32px;
    }

    .blog-card h2 {
        font-size: 18px;
    }

    .article-header h1 {
        font-size: 26px;
    }

    .article-body h2 {
        font-size: 22px;
    }

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

    .article-meta {
        flex-wrap: wrap;
    }
}