/* News Article Page Styles */

.article-page {
    padding: 2rem 0 4rem;
    background: var(--color-bg-light);
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.breadcrumb a {
    color: var(--color-accent-blue);
    text-decoration: none;
    transition: color var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb span {
    color: var(--color-text-muted);
}

/* Article Header */
.article-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.article-header .article-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-header .category {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-accent-blue-light);
    color: var(--color-accent-blue);
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
}

.article-header time {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.article-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.article-header .article-image {
    margin-bottom: 2rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.article-header .article-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-header .article-tags {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-header .tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-accent-blue-light);
    color: var(--color-accent-blue);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-base);
}

.article-header .tag:hover {
    background: var(--color-accent-blue);
    color: var(--color-text);
    transform: translateY(-2px);
}

/* Article Body */
.article-body {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-primary);
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.article-body h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-accent-blue);
}

.article-body h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 2rem 0 1rem;
}

.article-body h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 1.5rem 0 1rem;
}

.article-body p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
    text-align: left;
}

.article-body ul,
.article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

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

.article-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: var(--color-bg-light);
    border-left: 4px solid var(--color-accent-blue);
    border-radius: 8px;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-text);
}

.article-body img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.article-body .highlight {
    background: var(--color-accent-blue-light);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    color: var(--color-accent-blue);
    font-weight: 600;
}

.article-body .article-notice {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    border-left: 4px solid var(--color-accent-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.article-body .article-notice p {
    margin-bottom: 0;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Article Footer */
.article-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
}

.share-buttons h3 {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.share-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-links a {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--transition-base);
}

.share-twitter {
    background: #1DA1F2;
    color: white;
}

.share-facebook {
    background: #4267B2;
    color: white;
}

.share-linkedin {
    background: #0077B5;
    color: white;
}

.share-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Related Articles */
.related-articles {
    max-width: 800px;
    margin: 4rem auto 0;
}

.related-articles h2 {
    font-size: 1.75rem;
    color: var(--color-text);
    margin-bottom: 2rem;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.related-article {
    background: var(--color-primary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: all var(--transition-base);
    text-decoration: none;
}

.related-article:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.related-article img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.related-article-content {
    padding: 1.5rem;
}

.related-article h3 {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.related-article time {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .article-page {
        padding: 1rem 0 2rem;
    }

    .breadcrumb {
        margin: 1rem 0;
        padding: 0.5rem 0;
    }

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

    .article-header .article-image img {
        height: 250px;
    }

    .article-body {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }

    .article-body h2 {
        font-size: 1.5rem;
    }

    .article-body h3 {
        font-size: 1.25rem;
    }

    .article-body p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .share-links {
        justify-content: center;
    }

    .share-links a {
        padding: 0.625rem 1.25rem;
        font-size: 0.8125rem;
    }
}

@media (max-width: 480px) {
    .article-header .article-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .article-body {
        padding: 1.5rem 1rem;
    }

    .article-body h2 {
        font-size: 1.375rem;
    }

    .share-links {
        flex-direction: column;
        align-items: center;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .article-footer,
    .related-articles,
    .header,
    .footer {
        display: none;
    }

    .article-body {
        box-shadow: none;
        border: none;
    }
}