/* 
 * TechVida - Blog Stylesheet
 * Theme: Gadgets and Electronics Store
 * Language: Portuguese
 */

/* Import main styles */
@import url('style.css');

/* ====== BLOG PAGE SPECIFICS ====== */
.blog-header {
    background-color: hsl(var(--primary-color));
    color: white;
    text-align: center;
    padding: 6rem 0;
}

.blog-header h1 {
    color: white;
    margin-bottom: 2rem;
}

.blog-header p {
    font-size: 1.8rem;
    max-width: 700px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    padding: 6rem 0;
}

.blog-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-btn {
    padding: 1rem 2rem;
    background: white;
    border: 1px solid hsl(var(--gray-300));
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: hsl(var(--primary-color));
    color: white;
    border-color: hsl(var(--primary-color));
}

/* ====== ARTICLE PAGE ====== */
.article-header {
    background-color: hsl(var(--background-alt));
    padding: 6rem 0;
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    color: hsl(var(--text-medium));
    font-size: 1.4rem;
}

.article-meta div {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.article-meta svg {
    width: 1.8rem;
    height: 1.8rem;
}

.article-cover {
    margin-top: 4rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 6rem 0;
}

.article-content p {
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    line-height: 1.7;
}

.article-content h2 {
    margin-top: 4rem;
    margin-bottom: 2rem;
}

.article-content h3 {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
}

.article-image {
    margin: 4rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.article-content ul, .article-content ol {
    margin-bottom: 2.5rem;
    margin-left: 2rem;
    list-style: disc;
}

.article-content li {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    line-height: 1.7;
}

blockquote {
    margin: 4rem 0;
    padding: 2rem 3rem;
    border-left: 5px solid hsl(var(--primary-color));
    background-color: hsl(var(--background-alt));
    font-style: italic;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 4rem;
}

.article-tag {
    padding: 0.8rem 1.5rem;
    background-color: hsl(var(--gray-100));
    border-radius: var(--border-radius-sm);
    font-size: 1.4rem;
    transition: var(--transition);
}

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

.share-article {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid hsl(var(--gray-200));
}

.share-article h3 {
    margin-bottom: 2rem;
}

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

.share-btn {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(var(--gray-200));
    transition: var(--transition);
}

.share-btn:hover {
    background-color: hsl(var(--primary-color));
}

.share-btn svg {
    width: 2rem;
    height: 2rem;
    fill: hsl(var(--text-dark));
    transition: var(--transition);
}

.share-btn:hover svg {
    fill: white;
}

.related-articles {
    background-color: hsl(var(--background-alt));
    padding: 6rem 0;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.related-articles .section-header {
    margin-bottom: 4rem;
}

.comments-section {
    padding: 6rem 0;
}

.comments-section .section-header {
    margin-bottom: 4rem;
}

.comment {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid hsl(var(--gray-200));
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
    background-color: hsl(var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: hsl(var(--gray-600));
}

.comment-content {
    flex: 1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.comment-author {
    font-weight: 700;
}

.comment-date {
    color: hsl(var(--text-medium));
    font-size: 1.4rem;
}

.comment-reply {
    margin-top: 2rem;
    margin-left: 8rem;
}

.comment-form {
    margin-top: 4rem;
}

.comment-form textarea {
    width: 100%;
    height: 15rem;
    padding: 1.5rem;
    border: 1px solid hsl(var(--gray-300));
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    resize: vertical;
}

.comment-form textarea:focus {
    border-color: hsl(var(--primary-color));
}

.comment-form-actions {
    display: flex;
    justify-content: flex-end;
}

/* ====== RESPONSIVE STYLES ====== */
@media (max-width: 992px) {
    .article-content {
        padding: 4rem 2rem;
    }
}

@media (max-width: 768px) {
    .blog-header {
        padding: 4rem 0;
    }
    
    .article-header {
        padding: 4rem 0;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .comment {
        flex-direction: column;
    }
    
    .comment-reply {
        margin-left: 0;
    }
}

@media (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}
