/* Shared Blog Post Template Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.7;
    font-size: 17px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 16px 6%;
    z-index: 1000;
    border-bottom: 1px solid #eaeaea;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 18px;
    font-weight: 700;
    color: #0079BF;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #0079BF;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fc 50%, #f0e6f6 100%);
    padding: 140px 6% 100px;
    margin-bottom: 60px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 520px;
}

.breadcrumbs {
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: #0079BF;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: #999;
    margin: 0 6px;
    font-size: 13px;
    font-weight: 500;
}

.hero-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.15;
    color: #111;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-excerpt {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-author {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.hero-author:hover {
    color: #0079BF;
}

.hero-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.hero-meta-separator {
    color: #999;
}

.hero-date {
    color: #666;
    font-size: 14px;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    width: 100%;
    max-width: 580px;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-image img {
        max-width: 100%;
    }
}

/* Article Container */
.article-wrapper {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6%;
}

/* Left Sidebar */
.left-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.toc-section {
    margin-bottom: 0;
}

.toc-title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 16px;
}

.toc-list {
    list-style: none;
}

.toc-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.toc-number {
    color: #999;
    font-size: 13px;
    min-width: 16px;
}

.toc-list a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    transition: color 0.2s;
}

.toc-list a:hover,
.toc-list a.active {
    color: #111;
}

.article-content {
    min-width: 0;
    max-width: 800px;
}

.share-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #eee;
}

.share-title {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
}

.share-buttons {
    display: flex;
    gap: 10px;
}

.share-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: #666;
}

.share-btn:hover {
    border-color: #0079BF;
    color: #0079BF;
}

@media (max-width: 900px) {
    .article-wrapper {
        display: flex;
        flex-direction: column;
        padding: 0 24px;
    }

    .left-sidebar {
        position: static;
        display: contents;
    }

    .toc-section {
        order: 1;
        margin-bottom: 32px;
        padding-bottom: 32px;
        border-bottom: 1px solid #eee;
    }

    .article-content {
        order: 2;
    }

    .share-section {
        order: 3;
        margin-top: 40px;
        padding-top: 32px;
        border-top: 1px solid #eee;
    }
}

/* Article Body */
.article-body h2 {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin: 48px 0 20px;
    letter-spacing: -0.3px;
}

.article-body h3 {
    font-size: 22px;
    font-weight: 600;
    color: #222;
    margin: 36px 0 16px;
}

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

.article-body ul, .article-body ol {
    margin: 20px 0 24px 24px;
}

.article-body li {
    margin-bottom: 12px;
    color: #333;
}

.article-body a:not(.cta-btn) {
    color: #0079BF;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:not(.cta-btn):hover {
    text-decoration: none;
}

/* Highlight */
.highlight {
    color: #0079BF;
    font-weight: 600;
}

/* Callout Boxes */
.callout {
    background: #f8fafc;
    border-left: 4px solid #0079BF;
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
}

.callout.tip {
    background: #f0fdf4;
    border-left-color: #22c55e;
}

.callout.warning {
    background: #fef2f2;
    border-left-color: #dc2626;
}

.callout-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.callout.tip .callout-title { color: #16a34a; }
.callout.warning .callout-title { color: #dc2626; }

/* Stat Box */
.stat-box {
    background: #0079BF;
    color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    margin: 28px 0;
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
}

.stat-label {
    font-size: 16px;
    opacity: 0.9;
}

/* Quote */
.quote {
    background: #f8fafc;
    border-left: 4px solid #0079BF;
    padding: 20px 24px;
    margin: 28px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

.quote small {
    font-style: normal;
    color: #888;
}

/* Comparison Boxes */
.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 0;
}

.comparison-box {
    padding: 24px;
    border-radius: 12px;
}

.comparison-box.bad {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.comparison-box.good {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.comparison-box h4 {
    margin-bottom: 12px;
    font-weight: 600;
}

.comparison-box ul {
    margin: 0 0 0 20px;
}

@media (max-width: 600px) {
    .comparison {
        grid-template-columns: 1fr;
    }
}

/* Do/Don't Boxes */
.do-dont {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 28px 0;
}

.do-box, .dont-box {
    padding: 24px;
    border-radius: 12px;
}

.do-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.do-box h4 {
    color: #166534;
    margin-bottom: 12px;
    font-weight: 600;
}

.dont-box {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.dont-box h4 {
    color: #991b1b;
    margin-bottom: 12px;
    font-weight: 600;
}

.do-box ul, .dont-box ul {
    margin: 0 0 0 20px;
}

@media (max-width: 600px) {
    .do-dont {
        grid-template-columns: 1fr;
    }
}

/* Tip Box */
.tip-box {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 28px 0;
}

.tip-box .tip-title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
}

.tip-box p {
    margin: 0;
    color: #78350f;
}

/* Example SMS */
.example-sms {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin: 20px 0;
}

.example-sms .label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example-sms .message {
    color: #333;
    line-height: 1.6;
}

.example-sms.good {
    background: #f0fdf4;
    border-color: #22c55e;
}

.example-sms.bad {
    background: #fef2f2;
    border-color: #dc2626;
}

.example-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.example-sms.good .example-label {
    color: #16a34a;
}

.example-sms.bad .example-label {
    color: #dc2626;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #0079BF 0%, #00a8e8 100%);
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin: 48px 0;
}

.cta-box h3 {
    color: white;
    font-size: 24px;
    margin-bottom: 16px;
}

.cta-box p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 24px;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #0079BF;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Author Section (Sidebar) */
.author-section {
    margin-bottom: 40px;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.author-name {
    font-weight: 600;
    color: #111;
    font-size: 14px;
}

.author-title {
    color: #666;
    font-size: 13px;
}

/* Key Point Box */
.key-point {
    background: linear-gradient(135deg, #0079BF 0%, #00a8e8 100%);
    color: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    margin: 32px 0;
}

.key-point .big {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.key-point .subtitle {
    font-size: 16px;
    opacity: 0.9;
}

/* Lifecycle Flow */
.lifecycle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 32px 0;
    flex-wrap: wrap;
    gap: 12px;
}

.lifecycle-step {
    background: #f0f7fc;
    padding: 20px 24px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.lifecycle-step .icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.lifecycle-step .label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.lifecycle-arrow {
    font-size: 24px;
    color: #0079BF;
    font-weight: 700;
}

@media (max-width: 768px) {
    .lifecycle {
        flex-direction: column;
    }
    .lifecycle-arrow {
        transform: rotate(90deg);
    }
}

/* Tables */
.article-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.article-table th,
.article-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.article-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #111;
}

.article-table tr:hover {
    background: #fafafa;
}

/* Role Comparison Grid */
.role-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}

.role-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.role-box h4 {
    color: #0079BF;
    margin-bottom: 16px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.role-box ul {
    margin: 0;
    padding-left: 20px;
}

.role-box li {
    margin-bottom: 8px;
    color: #444;
}

@media (max-width: 600px) {
    .role-comparison {
        grid-template-columns: 1fr;
    }
}

/* Pricing Box */
.pricing-box {
    background: #f0fdf4;
    border: 1px solid #22c55e;
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
}

.pricing-box h4 {
    color: #16a34a;
    margin-bottom: 12px;
    font-size: 18px;
}

.pricing-box p {
    margin-bottom: 0;
    color: #166534;
}

/* Step Box */
.step-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
}

.step-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 28px;
    height: 28px;
    background: #0079BF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.step-text {
    color: #333;
    padding-top: 3px;
}

/* Related Articles */
.related-section {
    max-width: 900px;
    margin: 80px auto;
    padding: 0 24px;
}

.related-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 32px;
    color: #111;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.related-card {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s;
}

.related-card:hover {
    transform: translateY(-4px);
}

.related-card img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
}

.related-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111;
    margin-bottom: 8px;
    line-height: 1.4;
}

.related-card p {
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid #e5e5e5;
    padding: 40px 6%;
    margin-top: 80px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.footer-links a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #111;
}

.footer-tagline {
    color: #999;
    font-size: 14px;
}

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
