/* ========================================
   Article Page Styles
   ======================================== */

.article-page {
    padding: 80px 0 48px;
    min-height: 70vh;
}

.article-hero {
    margin-bottom: 32px;
}

.article-hero .article-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 12px;
}

.article-hero h1 {
    font-size: 26px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text);
    margin-bottom: 12px;
}

.article-meta-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}
.article-meta-bar span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Article Body */
.article-body {
    max-width: 720px;
}

.article-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin-top: 36px;
    margin-bottom: 14px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.article-body h2:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.article-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-top: 24px;
    margin-bottom: 10px;
}

.article-body p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 14px;
}

.article-body ul, .article-body ol {
    margin: 10px 0 18px 20px;
}
.article-body ul li, .article-body ol li {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.8;
    list-style: disc;
    margin-bottom: 6px;
}
.article-body ol li {
    list-style: decimal;
}

.article-body strong {
    color: var(--text);
}

.article-body a {
    color: var(--primary);
}

/* Image Figures */
.article-figure {
    margin: 24px 0;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.article-figure .figure-img {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.article-figure svg {
    width: 100%;
    display: block;
}

.article-figure figcaption {
    padding: 10px 16px;
    font-size: 12px;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    line-height: 1.5;
}

/* Data Tables */
.data-table-wrap {
    overflow-x: auto;
    margin: 16px 0 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 480px;
}
.data-table thead {
    background: var(--bg-alt);
}
.data-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.data-table tr:last-child td {
    border-bottom: none;
}
.data-table .up { color: var(--green); font-weight: 600; }
.data-table .down { color: var(--red); font-weight: 600; }

/* Info Boxes */
.info-box {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.7;
}
.info-box p { font-size: 14px; margin-bottom: 6px; }
.info-box p:last-child { margin-bottom: 0; }

.info-box.warning {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    color: #78350f;
}
.info-box.tip {
    background: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}
.info-box.note {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    color: #1e40af;
}

/* Key Points Box */
.key-points {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin: 20px 0;
}
.key-points h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}
.key-points ul {
    margin: 0 0 0 18px;
}
.key-points li {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    list-style: disc;
    margin-bottom: 4px;
}

/* Breadcrumb */
.breadcrumb {
    padding: 12px 0;
    font-size: 13px;
    color: var(--text-light);
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}
.breadcrumb a:hover {
    color: var(--primary);
}
.breadcrumb span {
    margin: 0 6px;
    color: var(--text-light);
}

/* Related Articles */
.related-articles {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--border);
}
.related-articles h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.related-card {
    display: flex;
    gap: 12px;
    padding: 14px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: box-shadow 0.2s;
}
.related-card:hover {
    box-shadow: var(--shadow);
    text-decoration: none;
}
.related-card .related-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 4px;
}
.related-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
}

/* Article Disclaimer */
.article-disclaimer {
    margin-top: 32px;
    padding: 16px 20px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius);
    font-size: 12px;
    color: #78350f;
    line-height: 1.7;
}
.article-disclaimer strong {
    color: #92400e;
}

/* Share / Author */
.author-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 24px 0;
}
.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}
.author-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.author-info p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 0;
}

@media (min-width: 600px) {
    .article-hero h1 { font-size: 32px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
    .article-hero h1 { font-size: 38px; }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
}
