/* ===== SINGLE ARTICLE VIEW ===== */
.article-full {
    max-width: 820px;
    margin: 0 auto;
}

.article-full .article-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 28px;
    background: var(--bg-secondary);
    min-height: 360px;
}
.article-full .article-hero img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}
.article-full .article-hero .hero-placeholder {
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
    color: var(--text-muted);
    opacity: 0.4;
}
.article-full .article-hero .category-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--gradient-red);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(255, 59, 59, 0.3);
    z-index: 1;
}

.article-full .article-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

/* ===== ARTICLE META ===== */
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
}
.article-meta .author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-meta .author .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.article-meta .author .name {
    font-weight: 500;
    color: var(--text-primary);
}
.article-meta .author .role {
    font-size: 11px;
    color: var(--text-muted);
}
.article-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.article-meta .meta-divider {
    color: rgba(255, 255, 255, 0.15);
}
.article-meta .meta-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}
.article-meta .meta-actions button,
.article-meta .meta-actions a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: var(--transition);
}
.article-meta .meta-actions button:hover,
.article-meta .meta-actions a:hover {
    background: var(--bg-card-hover);
    color: var(--accent-red);
    border-color: var(--accent-red);
}
.article-meta .meta-actions button.active {
    background: var(--accent-red-glow);
    color: var(--accent-red);
    border-color: var(--accent-red);
}

/* ===== ARTICLE CONTENT ===== */
.article-content {
    font-size: 16px;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
}
.article-content > *:last-child {
    margin-bottom: 0;
}
.article-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 32px 0 16px;
    letter-spacing: -0.3px;
}
.article-content h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
}
.article-content p {
    margin-bottom: 1.2em;
}
.article-content a {
    color: var(--accent-red);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.article-content a:hover {
    color: var(--accent-red-light);
}
.article-content blockquote {
    border-left: 3px solid var(--accent-red);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-primary);
}
.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-left: 24px;
}
.article-content ul {
    list-style: disc;
}
.article-content ol {
    list-style: decimal;
}
.article-content li {
    margin-bottom: 8px;
}
.article-content img {
    border-radius: var(--radius);
    margin: 24px 0;
    width: 100%;
}
.article-content figure {
    margin: 24px 0;
}
.article-content figcaption {
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
}
.article-content pre {
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 16px;
    overflow-x: auto;
    font-size: 14px;
    margin: 20px 0;
    border: 1px solid rgba(255, 255, 255, 0.04);
}
.article-content code {
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}
.article-content pre code {
    background: none;
    padding: 0;
}
.article-content hr {
    border: none;
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 32px 0;
}
.article-content .lead {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 24px;
}

/* ===== SHARE BUTTONS ===== */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
    margin: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}
.share-buttons .share-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 4px;
}
.share-buttons .share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: var(--transition);
}
.share-buttons .share-btn:hover {
    background: var(--accent-red);
    color: #fff;
    border-color: var(--accent-red);
    transform: translateY(-2px);
}
.share-buttons .share-btn.copy-link {
    width: auto;
    padding: 0 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    gap: 6px;
}

/* ===== COMMENTS SECTION ===== */
.comments-section {
    margin-top: 40px;
}
.comments-section .comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.comments-section .comments-header h3 {
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.comments-section .comments-header .count {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 10px;
    border-radius: 50px;
}

.comment-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 28px;
}
.comment-form textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 300;
    font-family: var(--font-main);
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: var(--transition);
    margin-bottom: 12px;
}
.comment-form textarea:focus {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px var(--accent-red-glow);
}
.comment-form textarea::placeholder {
    color: var(--text-muted);
}
.comment-form .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.comment-item .comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.comment-item .comment-body {
    flex: 1;
    min-width: 0;
}
.comment-item .comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.comment-item .comment-author {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.comment-item .comment-date {
    font-size: 12px;
    color: var(--text-muted);
}
.comment-item .comment-text {
    font-size: 14px;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.6;
}
.comment-item .comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}
.comment-item .comment-actions button {
    font-size: 12px;
    color: var(--text-muted);
    padding: 0;
}
.comment-item .comment-actions button:hover {
    color: var(--accent-red);
}

.comment-replies {
    margin-top: 16px;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 59, 59, 0.15);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.comment-replies .comment-item .comment-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.comments-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px dashed rgba(255, 255, 255, 0.06);
}

/* ===== RELATED ARTICLES ===== */
.related-articles {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.related-articles h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.related-articles h3 .accent {
    color: var(--accent-red);
}
.related-articles .articles-grid {
    margin-bottom: 0;
}

/* ===== VIEW PAGE RESPONSIVE ===== */
@media (max-width: 768px) {
    .article-full .article-title {
        font-size: 24px;
    }
    .article-full .article-hero,
    .article-full .article-hero img,
    .article-full .article-hero .hero-placeholder {
        min-height: 220px;
    }
    .article-meta {
        gap: 10px;
    }
    .article-meta .meta-actions {
        margin-left: 0;
        width: 100%;
    }
    .article-content {
        font-size: 15px;
    }
    .article-content h2 {
        font-size: 20px;
    }
    .share-buttons {
        justify-content: center;
    }
    .comment-item {
        gap: 10px;
    }
    .comment-item .comment-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .article-full .article-title {
        font-size: 20px;
    }
    .article-full .article-hero,
    .article-full .article-hero img,
    .article-full .article-hero .hero-placeholder {
        min-height: 180px;
    }
}

/* ===== ENHANCED ARTICLE VIEW ===== */
.reading-progress {
    position: fixed;
    top: 3px;
    left: 0;
    height: 3px;
    background: var(--gradient-red);
    z-index: 10001;
    width: 0;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
}

.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 300;
}

.breadcrumbs a {
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.breadcrumbs a:hover { color: var(--accent-red); }
.breadcrumbs .sep { opacity: 0.4; }
.breadcrumbs .current { color: var(--text-muted); }

.article-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}

.article-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.badge-breaking {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-red-glow);
    color: var(--accent-red);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    border: 1px solid rgba(255, 59, 59, 0.2);
}

.article-lead {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 300;
}

.article-body-wrap {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
}

.article-toc {
    position: sticky;
    top: calc(var(--header-height) + 60px);
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.toc-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toc-list a {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 0 4px 10px;
    border-left: 2px solid transparent;
    transition: var(--transition);
    line-height: 1.4;
}

.toc-list a.toc-h3 {
    padding-left: 20px;
    font-size: 11px;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--accent-red);
    border-left-color: var(--accent-red);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 0;
}

.article-tags .tag {
    font-size: 12px;
    padding: 4px 14px;
    background: var(--bg-secondary);
    border-radius: 50px;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.article-tags .tag:hover {
    background: var(--accent-red-glow);
    color: var(--accent-red);
    border-color: rgba(255, 59, 59, 0.2);
}

.author-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 32px;
}

.author-card-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.author-card strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.author-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

.article-sidebar-sticky {
    position: sticky;
    top: calc(var(--header-height) + 60px);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.sidebar-article-link {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    line-height: 1.4;
    font-weight: 300;
}

.sidebar-article-link:hover { color: var(--accent-red); }

.comment-form-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 14px;
}

.comment-form-user .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.comment-login-hint {
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-sidebar-sticky { display: none; }
}

@media (max-width: 768px) {
    .article-body-wrap { grid-template-columns: 1fr; }
    .article-toc { position: static; margin-bottom: 20px; }
    .article-lead { font-size: 16px; }
}

@media print {
    .reading-progress, .breadcrumbs, .article-toc, .article-sidebar-sticky,
    .share-buttons, .comments-section, .related-articles, .header, .sidebar,
    .right-sidebar, .mobile-bottom-nav, .footer { display: none !important; }
    .article-full { max-width: 100%; }
}
