/* Cleaned up article.css to rely on style.css for cards */

/* ========= COMPACT HERO HEADER FOR SINGLE PAGES ========= */
.hero-header-compact {
    padding: 20px 40px;
    margin: 0;
    border-radius: 0;
}

.hero-header-compact .hero-top-bar {
    margin-bottom: 0;
}

.hero-header-compact .hero-title {
    font-size: 1.75rem;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-header-compact .hero-logo {
    font-size: 1.75rem;
}

@media (max-width: 768px) {
    .hero-header-compact {
        padding: 16px 20px;
    }

    .hero-header-compact .hero-title {
        font-size: 1.4rem;
    }

    .hero-header-compact .hero-logo {
        font-size: 1.4rem;
    }
}

/* ========= ARTICLE CARD WRAPPER ========= */
.article-card {
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 40px;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .article-card {
        padding: 24px 20px;
        border-radius: 12px;
    }
}

/* .page-container.compact max-width removed - using global 1400px from style.css for consistency */

/* ========= CONTENT WRAPPERS ========= */
.article-content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0 60px;
}

.cluster-content-wrapper {
    padding: 20px 0 60px;
}

/* ========= NARROW READABLE CONTAINER (legacy) ========= */
.article-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px 20px 60px;
}

/* Header Typography */
.article-header {
    text-align: center;
    margin-bottom: 40px;
}

.article-h1 {
    font-size: 2.2rem;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 24px 0 16px;
}

@media (max-width: 768px) {
    .article-h1 {
        font-size: 1.6rem;
    }
}

/* Meta Badges Row */
.article-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    font-size: 0.7rem;
}

.article-badges>* {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 22px;
    line-height: 1;
    box-sizing: border-box;
    text-decoration: none;
    transition: transform 0.2s;
    vertical-align: middle;
    margin: 0;
}

.article-badges a:hover {
    transform: translateY(-2px);
}

/* Category specific overrides to match height */
.category-tag {
    padding: 0 12px;
    /* Remove vertical padding, rely on flex centering */
}

.pill {
    padding: 0 10px;
}

/* Meta Info Row */
.article-meta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 500;
    flex-wrap: wrap;
}

.article-meta-row i {
    margin-right: 6px;
    opacity: 0.7;
}

/* Share Buttons */
.article-share {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    transition: transform 0.2s, opacity 0.2s;
}

.share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.share-tg {
    background: #229ED9;
}

.share-vk {
    background: #0077FF;
}

.share-wa {
    background: #25D366;
}

.share-fb {
    background: #1877F2;
}

.share-tw {
    background: #1DA1F2;
}

/* Lead Text */
.article-lead {
    font-size: 1.25rem;
    /* 20px */
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 32px;
    border-left: 4px solid var(--purple-500);
    padding-left: 20px;
}

/* Main Body Text */
.article-body {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-primary);
}

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

.article-body h2 {
    font-size: 1.8rem;
    margin: 48px 0 24px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 32px 0 16px;
    font-weight: 700;
}

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

.article-body li {
    margin-bottom: 8px;
}

.article-body a {
    color: var(--blue-600);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.article-body a:hover {
    color: var(--blue-500);
}

/* "Original Source" Block */
.source-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 50px 0;
}

.source-icon-box {
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--purple-500);
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.source-content h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 700;
}

.source-content p {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.btn-source {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none !important;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.btn-source:hover {
    background: var(--gray-50);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Image */
.article-hero-image {
    width: 100%;
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-md);
}

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

.image-caption {
    position: absolute;
    bottom: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-top-left-radius: 12px;
    backdrop-filter: blur(4px);
}

/* Related Content Section */
.related-articles-section {
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 30px;
}

/* Grid Override for Related */
/* Using homepage logic: .news-column.layout-grid */
.results-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 640px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}

/* Header for Single Pages */
.single-page-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    margin-bottom: 32px;
}

/* .header-inner styles removed - using global styles from style.css for consistency */

.header-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-emoji {
    font-size: 1.5rem;
}

/* Badges & Pills */
.category-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
}

.pill.status {
    text-transform: capitalize;
}

.status--published {
    color: #10B981;
    background: rgba(16, 185, 129, 0.1);
}

.status--moderation {
    color: #F59E0B;
    background: rgba(245, 158, 11, 0.1);
}

.status--new {
    color: #3B82F6;
    background: rgba(59, 130, 246, 0.1);
}

/* Breadcrumbs (Custom override for centered layout) */
.centered-breadcrumbs {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.centered-breadcrumbs a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

.centered-breadcrumbs a:hover {
    color: var(--purple-500);
}

.breadcrumb-sep {
    margin: 0 8px;
    opacity: 0.5;
}