/* ========== Blog — Shared Styles ========== */

:root {
    --primary: #5856d6;
    --primary-light: #7a78e8;
    --primary-dark: #4644a8;
    --primary-subtle: rgba(88, 86, 214, 0.08);
    --teal: #0d9488;
    --teal-light: #14b8a6;
    --teal-dark: #0f766e;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --bg: #ffffff;
    --bg-secondary: #fbfbfd;
    --bg-tertiary: #f5f5f7;
    --border: rgba(0, 0, 0, 0.06);
    --border-strong: rgba(0, 0, 0, 0.1);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ========== Navigation ========== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(88, 86, 214, 0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
}

.nav-breadcrumb img {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-breadcrumb .crumb-parent {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.nav-breadcrumb .crumb-parent:hover { color: white; }

.nav-breadcrumb .crumb-sep {
    color: rgba(255, 255, 255, 0.35);
    font-weight: 400;
    font-size: 0.85rem;
}

.nav-breadcrumb .crumb-current {
    color: white;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover { color: white; }

/* ========== Article Header ========== */
.article-header {
    padding: 120px 24px 32px;
    max-width: 720px;
    margin: 0 auto;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.article-meta .divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-tertiary);
}

.article-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* ========== Article Body ========== */
.article-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px 80px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-body h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-body p {
    margin-bottom: 20px;
}

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

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

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

.article-body a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.article-body a:hover {
    color: var(--primary-light);
}

.article-body code {
    background: var(--bg-tertiary);
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 0.92em;
    font-family: "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    color: var(--primary-dark);
}

/* ========== CTA Section ========== */
.cta-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 40px 36px;
    text-align: center;
    margin-top: 48px;
}

.cta-box h2 {
    margin-top: 0;
    margin-bottom: 12px;
    color: var(--text);
    font-size: 1.5rem;
}

.cta-box p {
    margin-bottom: 24px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.cta-button {
    display: inline-block;
    padding: 14px 36px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, transform 0.2s ease;
}

.cta-button:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* ========== Footer ========== */
.footer {
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 40px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left {
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--primary); }

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-links { display: none; }

    .article-header {
        padding: 100px 20px 24px;
    }

    .article-body {
        padding: 0 20px 60px;
    }

    .cta-box {
        padding: 32px 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 20px;
    }
}
