/* Article Page Styles */

/* Article Hero */
.article-page {
    padding-bottom: 4rem;
}

.article-hero {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 0;
}

.article-meta-top {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.article-meta-top .category {
    background-color: var(--primary-color);
    color: white;
    margin-bottom: 0;
}

.reading-time {
    display: inline-block;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.article-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: white;
}

.article-meta-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.author-image {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

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

.author-name {
    font-weight: 600;
}

.publish-date {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

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

/* Featured Image */
.article-featured-image {
    margin-top: -2rem;
    margin-bottom: 3rem;
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.image-caption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-color);
    text-align: center;
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* Article Content */
.article-content {
    font-size: 1.125rem;
    line-height: 1.8;
}

.article-lead {
    font-size: 1.35rem;
    line-height: 1.6;
    color: var(--dark-color);
    font-weight: 500;
    margin-bottom: 2rem;
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

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

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

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

.article-content blockquote {
    margin: 2.5rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--light-gray);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.article-content blockquote p {
    font-size: 1.25rem;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.article-content blockquote cite {
    font-size: 0.875rem;
    color: var(--gray-color);
    font-style: normal;
}

.article-figure {
    margin: 2.5rem 0;
}

.article-figure img {
    width: 100%;
    border-radius: var(--border-radius);
}

.article-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-color);
    text-align: center;
}

.article-conclusion {
    margin-top: 3rem;
    padding: 2rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.article-tags {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.article-tags span {
    font-weight: 600;
}

.article-tags .tag {
    position: static;
    background-color: var(--light-gray);
    color: var(--dark-color);
    transition: var(--transition);
}

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

/* Sidebar */
.sidebar-widget {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--light-gray);
}

.author-profile {
    text-align: center;
}

.author-image-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 1rem;
}

.author-profile h4 {
    margin-bottom: 0.5rem;
}

.author-profile p {
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.sidebar-form {
    margin-top: 1rem;
}

.sidebar-form input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
}

.sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-article {
    display: flex;
    gap: 0.75rem;
}

.sidebar-article-image {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.sidebar-article-content h4 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.sidebar-article:hover .sidebar-article-content h4 {
    color: var(--primary-color);
}

.sidebar-article-date {
    font-size: 0.75rem;
    color: var(--gray-color);
}

.sidebar-ad {
    text-align: center;
}

.sidebar-ad .ad-label {
    margin-bottom: 0.5rem;
}

.sidebar-ad .ad-placeholder {
    height: 250px;
}

/* Related Articles */
.related-articles {
    background-color: var(--light-gray);
    padding: 4rem 0;
    margin-top: 4rem;
}

.related-articles h2 {
    margin-bottom: 2rem;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Comments Section */
.article-comments {
    padding: 4rem 0;
}

.article-comments h2 {
    margin-bottom: 2rem;
}

.comment-count {
    font-size: 1rem;
    color: var(--gray-color);
    font-weight: normal;
}

.comment-form-container {
    background-color: white;
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
}

.comment-form-container h3 {
    margin-bottom: 1.5rem;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-form .form-group {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--border-radius);
}

.comment-form textarea {
    resize: vertical;
}

.comment-form .form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.comment-form .form-consent input {
    width: auto;
    margin-top: 0.25rem;
}

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

.comment {
    display: flex;
    gap: 1.5rem;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-content {
    flex: 1;
}

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

.comment-header h4 {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-badge {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
}

.comment-date {
    font-size: 0.875rem;
    color: var(--gray-color);
}

.comment-body {
    margin-bottom: 1rem;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment.reply {
    margin-top: 1.5rem;
    margin-left: 2rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--light-gray);
}

.comments-pagination {
    margin-top: 3rem;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .article-layout {
        grid-template-columns: 1.5fr 1fr;
        gap: 2rem;
    }
    
    .article-title {
        font-size: 2.5rem;
    }
    
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .article-meta-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .article-title {
        font-size: 2rem;
    }
    
    .article-content {
        font-size: 1rem;
    }
    
    .article-lead {
        font-size: 1.2rem;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 576px) {
    .article-hero {
        padding: 2rem 0;
    }
    
    .article-featured-image {
        margin-top: -1rem;
    }
    
    .comment {
        flex-direction: column;
        gap: 1rem;
    }
    
    .comment.reply {
        margin-left: 1rem;
        padding-left: 1rem;
    }
}