/* ==========================================
   Article Page Styles
   ========================================== */

/* Breadcrumb */
.breadcrumb-container {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.breadcrumb {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.breadcrumb .separator {
    color: var(--text-light);
}

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

/* Article Container */
.article-container {
    max-width: 1100px;
}

/* Article Header */
.article-header {
    padding: 3rem 0 2rem;
    background: var(--bg-primary);
}

.article-category {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 6px;
    margin-bottom: 1.25rem;
}

.article-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 2rem;
    max-width: 900px;
}

/* Article Meta */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 1.5rem;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info .author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.meta-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.article-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat svg {
    opacity: 0.6;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.share-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    transition: all var(--transition-fast);
}

.share-btn.twitter {
    background: #000;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.linkedin {
    background: #0a66c2;
}

.share-btn.copy {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.share-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Hero Image */
.article-hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    max-height: none;
    overflow: visible;
    position: relative;
}

.article-hero img.hero-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: cover;
    display: block;
    border-radius: 16px 16px 0 0;
}

.hero-caption {
    padding: 1rem 1.5rem;
    background: var(--bg-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    border-radius: 0 0 16px 16px;
    margin-bottom: 1rem;
}

.caption-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.caption-credit {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Article Body */
.article-body {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.article-body .content-wrapper {
    display: block;
    max-width: 800px;
    margin: 0 auto;
}

/* Main Content */
.article-content {
    font-family: 'Merriweather', Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.85;
    color: var(--text-secondary);
}

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

.article-content p.lead {
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 300;
    border-left: 4px solid var(--primary);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.article-content h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1.25rem;
    line-height: 1.3;
}

.article-content h3 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

/* Article Figures (Images in content) */
.article-figure {
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.article-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.article-figure figcaption {
    padding: 1rem 1.25rem;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.article-figure .caption-text {
    font-style: italic;
}

.article-figure .caption-credit {
    font-size: 0.75rem;
}

/* Blockquote */
.article-content blockquote {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    position: relative;
}

.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.3;
    line-height: 1;
}

.article-content blockquote p {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-left: 2rem;
}

.article-content blockquote cite {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: normal;
    padding-left: 2rem;
    display: block;
}

/* Article Sidebar */
.article-sidebar {
    position: relative;
}

.sidebar-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Table of Contents */
.toc-card,
.related-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.toc-card h3,
.related-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toc-list a {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 6px;
    transition: all var(--transition-fast);
    display: block;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--primary);
    background: rgba(230, 57, 70, 0.1);
}

/* Related Articles */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-item {
    display: flex;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.related-item:hover {
    background: var(--bg-secondary);
}

.related-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.related-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-item:hover span {
    color: var(--primary);
}

/* Newsletter Sidebar */
.newsletter-sidebar {
    background: linear-gradient(135deg, var(--secondary), #2a4a6f);
    color: white;
    border: none;
}

.newsletter-sidebar h3 {
    color: white;
}

.newsletter-sidebar p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.newsletter-form-small {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.newsletter-form-small input {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.newsletter-form-small input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form-small button {
    padding: 0.75rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.newsletter-form-small button:hover {
    background: var(--primary-dark);
}

/* Article Tags */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-light);
    margin-top: 2rem;
}

.tags-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tag {
    padding: 0.4rem 1rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: 20px;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-light);
}

.tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Author Bio */
.author-bio {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    margin-top: 2rem;
}

.bio-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 3px solid var(--border-color);
}

.bio-content h4 {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
}

.bio-content h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.bio-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.bio-social {
    display: flex;
    gap: 1rem;
}

.bio-social a {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

.bio-social a:hover {
    text-decoration: underline;
}

/* More News Section */
.more-news {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.more-news .section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.more-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .article-body .content-wrapper {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        display: none;
    }
}

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

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

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .meta-divider {
        display: none;
    }

    .hero-caption {
        flex-direction: column;
        align-items: flex-start;
    }

    .article-content {
        font-size: 1.05rem;
    }

    .article-content p.lead {
        font-size: 1.15rem;
    }

    .author-bio {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .bio-social {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .share-buttons {
        width: 100%;
        flex-wrap: wrap;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }
}