/* =============================================
   Blog Pages - Centralized Stylesheet
   Used by all HTML files inside /blogs/
   ============================================= */

/* Page Layout */
.article-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 2rem;
    align-items: start;
}

/* Article Card */
.article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    color: #0f172a;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 2rem;
}

.sidebar-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0b2545;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
}

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

.related-item {
    margin-bottom: 0.75rem;
}

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

.related-link {
    font-size: 0.925rem;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    display: inline-block;
    transition: color 0.2s ease, transform 0.2s ease;
}

.related-link:hover {
    color: #1e3a8a;
    transform: translateX(2px);
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.825rem;
    font-weight: 700;
    color: #1d4ed8;
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    transition: transform 0.25s ease;
}

.back-link:hover {
    transform: translateX(-3px);
}

/* Article Header */
.article-header {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.article-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0b2545;
    margin-bottom: 1rem;
}

.article-lead {
    font-size: 1.15rem;
    color: #475569;
    line-height: 1.6;
}

/* Article Content */
.article-content {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #334155;
}

.article-content h2 {
    font-size: 1.65rem;
    font-weight: 700;
    color: #0b2545;
    margin: 2.25rem 0 1rem;
    letter-spacing: -0.01em;
}

.article-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
    margin: 1.75rem 0 0.75rem;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Code Block */
.code-block {
    background: #0f172a;
    color: #f8fafc;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid #1e293b;
}

.code-block code {
    font-family: inherit;
}

/* Inline Code */
.inline-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    background: #f1f5f9;
    color: #0f172a;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

/* Callout Box */
.callout-box {
    background: #eff6ff;
    border-left: 4px solid #1d4ed8;
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.75rem 0;
    color: #1e40af;
    font-size: 0.975rem;
}

/* Step Images */
.blog-step-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: 0.75rem 0 2rem;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .article-card {
        padding: 2rem 1.5rem;
    }

    .article-title {
        font-size: 2rem;
    }
}
