/* Article Page Styles - Dark Theme */
.article-container {
    padding: 3rem 0;
    background: var(--bg-primary);
    min-height: 80vh;
}

.article-header {
    background: var(--bg-primary);
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.reading-time {
    color: var(--text-light);
    font-size: 0.85rem;
}

.article-title {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: 300;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

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

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-secondary);
}

.author-name {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.publish-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.featured-image {
    width: 100%;
    max-width: 800px;
    height: 400px;
    overflow: hidden;
    margin: 2rem auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

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

.article-body h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
    font-weight: 400;
}

.article-body p {
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
    margin: 1.25rem 0;
    padding-left: 1.5rem;
    color: var(--text-secondary);
}

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

.article-body blockquote {
    border-left: 3px solid var(--primary-color);
    padding-left: 1.25rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.article-body a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.article-body a:hover {
    border-bottom-color: var(--primary-color);
}

.article-footer {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.author-bio {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    align-items: center;
}

.bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.bio-content h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
}

.bio-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Related Articles */
.related-articles {
    margin-top: 3rem;
    padding: 3rem 0;
    background: var(--bg-secondary);
}

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

.related-articles h2::after {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.related-card {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    cursor: pointer;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.related-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: var(--bg-secondary);
}

.related-card-content {
    padding: 1.25rem;
}

.related-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.related-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.related-card h3 a:hover {
    color: var(--primary-color);
}

.related-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* Comments Section */
.comments-section {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem 1rem;
}

.comments-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 300;
}

.comment-form {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    resize: vertical;
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--bg-secondary);
    min-height: 100px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.comment-form-footer {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.comment-form-footer input {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: var(--bg-secondary);
}

.comment-form-footer input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-primary);
}

.comment-form-footer button {
    padding: 0.6rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.comment-form-footer button:hover {
    background: var(--primary-dark);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.comment img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-secondary);
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    align-items: center;
}

.comment-header strong {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.comment-header span {
    color: var(--text-light);
    font-size: 0.8rem;
}

.comment-content p {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .article-title {
        font-size: 1.75rem;
    }
    
    .article-body {
        padding: 1.5rem 1rem;
        font-size: 0.95rem;
    }
    
    .featured-image {
        height: 250px;
    }
    
    .author-bio {
        flex-direction: column;
        text-align: center;
    }
    
    .bio-avatar {
        margin: 0 auto;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .comment-form-footer {
        flex-direction: column;
    }
    
    .comment-form-footer input {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .share-buttons,
    .related-articles,
    .comments-section,
    .back-to-top {
        display: none;
    }
    
    .article-container {
        padding: 0;
    }
    
    .article-body {
        padding: 1rem 0;
    }
}