/* Article Page Styles */

.article-page {
    background: var(--background);
    min-height: calc(100vh - 64px - 200px);
}

.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

/* Breadcrumb for article pages */
.article-page .breadcrumb {
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.breadcrumb-category {
    color: var(--primary-color);
}

/* Article Content */
.article-content {
    background: var(--background);
}

.article-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.article-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
}

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

.article-category {
    background: var(--primary-light);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
}

/* Article Body */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-secondary);
}

.article-body h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 40px 0 16px;
    padding-top: 16px;
}

.article-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
}

.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 12px;
}

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

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

.article-body li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.article-body ol {
    list-style: decimal;
}

.article-body ul {
    list-style: disc;
}

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

.article-body a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.article-body a:hover {
    text-decoration: none;
}

.article-body code {
    background: var(--background-light);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-family: 'SF Mono', Monaco, Consolas, monospace;
    font-size: 14px;
    color: var(--text-primary);
}

/* Info and Warning boxes */
.article-body .info-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary-color);
    padding: 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
}

.article-body .info-box p {
    margin: 0;
}

.article-body .warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 24px 0;
}

.article-body .warning-box p {
    margin: 0;
}

/* Article Feedback in article page */
.article-content .article-feedback {
    margin-top: 48px;
    padding-top: 32px;
}

/* Related Articles */
.related-articles {
    margin-top: 48px;
    padding: 24px;
    background: var(--background-light);
    border-radius: var(--radius-md);
}

.related-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.related-list a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition);
}

.related-list a:hover {
    color: var(--primary-color);
}

/* Still Need Help for article pages */
.still-need-help-article {
    background: var(--background-light);
    padding: 48px 24px;
    text-align: center;
}

.still-need-help-article .help-container {
    max-width: 500px;
    margin: 0 auto;
}

.still-need-help-article .help-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.still-need-help-article .help-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Table of Contents (optional for longer articles) */
.toc {
    background: var(--background-light);
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 32px;
}

.toc-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toc-list a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color var(--transition);
}

.toc-list a:hover {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 640px) {
    .article-container {
        padding: 24px 16px 48px;
    }

    .article-title {
        font-size: 26px;
    }

    .article-body {
        font-size: 15px;
    }

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

    .article-body h3 {
        font-size: 17px;
    }

    .related-articles {
        padding: 20px 16px;
    }

    .still-need-help-article {
        padding: 32px 16px;
    }
}

/* Print styles for articles */
@media print {
    .navbar,
    .mobile-menu,
    .article-feedback,
    .related-articles,
    .still-need-help-article,
    .footer {
        display: none !important;
    }

    .article-container {
        max-width: 100%;
        padding: 0;
    }

    .article-title {
        font-size: 24px;
    }

    .article-body {
        font-size: 12pt;
    }
}
