/* ==========================================
   ARTICLE LAYOUT - Docs & Blog detail pages
   ========================================== */

.article-section { background: var(--bg-dark); }

.article-container {
    max-width: 760px;
    margin: 0 auto;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.article-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
}

.article-date {
    font-size: 13px;
    color: var(--text-muted);
}

.article-reading-time {
    font-size: 13px;
    color: var(--text-muted);
}

.article-body h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 40px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.3;
}

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

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

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

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

.article-body .callout {
    background: rgba(16, 185, 129, 0.06);
    border-left: 3px solid var(--primary);
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 24px 0;
}

.article-body .callout p {
    margin-bottom: 0;
    font-size: 15px;
}

.article-body .steps-list {
    list-style: none;
    padding-left: 0;
    counter-reset: step-counter;
}

.article-body .steps-list li {
    counter-increment: step-counter;
    padding-left: 40px;
    position: relative;
    margin-bottom: 16px;
}

.article-body .steps-list li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.12);
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06) 0%, rgba(13, 148, 136, 0.06) 100%);
    border: 2px dashed rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 28px 0;
    color: var(--text-muted);
}

.article-image-placeholder svg {
    color: var(--primary);
    opacity: 0.6;
}

.article-image-placeholder span {
    font-size: 13px;
    font-weight: 500;
}

.article-screenshot {
    width: 100%;
    border-radius: 12px;
    margin: 28px 0;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    image-rendering: -webkit-optimize-contrast;
}

.article-screenshot.mobile {
    width: 280px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Navigation between articles */
.article-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.article-nav-link {
    text-decoration: none;
    padding: 16px 20px;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: var(--transition);
    flex: 1;
}

.article-nav-link:hover {
    border-color: rgba(16, 185, 129, 0.4);
}

.article-nav-link .nav-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.article-nav-link .nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.article-nav-link.next {
    text-align: right;
}

/* Blog hero image */
.blog-hero-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(13, 148, 136, 0.08) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .article-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .article-body h2 { font-size: 21px; }
    .article-body h3 { font-size: 17px; }
    .article-body p { font-size: 15px; }
    .article-nav { flex-direction: column; }
}

@media (max-width: 480px) {
    .article-body .callout {
        padding: 16px;
    }
    
    .article-nav-link {
        padding: 12px 16px;
    }
    
    .article-body h2 {
        font-size: 19px;
    }
    
    .article-body h3 {
        font-size: 16px;
    }
}
