
/* Blog Page Styles - Design Clean e Moderno */

/* Layout Principal */
.blog-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Filtros do Blog */
.blog-filters {
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.filters-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.filter-options select {
    padding: 0.75rem 1rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    background: white;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
}

.filter-options select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Posts do Blog */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.blog-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.blog-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.post-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .post-image img {
    transform: scale(1.05);
}

.blog-categoria {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: #667eea;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-content {
    padding: 1.5rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.85rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.post-content h2 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 600;
}

.post-content p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.btn-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.btn-read-more:hover {
    color: #5a67d8;
}

/* Estado vazio do blog */
.blog-vazio {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.blog-vazio i {
    font-size: 3rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.blog-vazio h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.blog-vazio p {
    color: #6b7280;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.blog-vazio .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.blog-vazio .btn-secondary:hover {
    background: #5a67d8;
}

/* Paginação do Blog */
.blog-main .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.blog-main .pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #e1e5e9;
    background: white;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.blog-main .pagination-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.blog-main .pagination-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.blog-main .pagination-btn i {
    font-size: 14px;
}

/* Sidebar */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #f1f3f4;
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e1e5e9;
    font-weight: 600;
}

/* Posts Populares */
.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.popular-post:hover {
    background: #f9fafb;
}

.popular-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.post-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.post-categoria {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    align-self: flex-start;
}

.post-info h4 {
    font-size: 0.9rem;
    color: #1f2937;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.post-info .post-meta {
    font-size: 0.75rem;
    color: #6b7280;
    margin: 0;
    gap: 0.5rem;
}

.post-info .post-meta span {
    background: transparent;
    padding: 0;
}

.post-info .btn-read-more {
    font-size: 0.8rem;
    padding: 0;
    align-self: flex-start;
}

/* Newsletter */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.2s ease;
    background: white;
}

.newsletter-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.newsletter-form button {
    padding: 0.75rem 1rem;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.newsletter-form button:hover {
    background: #5a67d8;
}

/* Lista de Categorias */
.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: #1f2937;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: #f9fafb;
    font-weight: 500;
    font-size: 0.9rem;
}

.category-list a:hover {
    background: #f3f4f6;
    color: #667eea;
}

.category-list a i {
    color: #667eea;
    margin-right: 0.5rem;
    font-size: 1rem;
}

.category-list .count {
    background: #667eea;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Página de Post Individual */
.single-post {
    padding: 2rem 0;
    background: #f9fafb;
    min-height: 100vh;
    margin: 2rem 0;
}

.post-layout {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.post-main {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #f1f3f4;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #6b7280;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.breadcrumb a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #5a67d8;
}

.breadcrumb i {
    font-size: 0.8rem;
    color: #9ca3af;
}

.breadcrumb span {
    color: #1f2937;
    font-weight: 600;
}

/* Header do Post */
.post-header {
    margin-bottom: 2rem;
}

.post-header .post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

.post-header .post-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.75rem;
    background: #f9fafb;
    border-radius: 6px;
}

.post-header .post-meta .categoria {
    background: #667eea;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.post-header h1 {
    font-size: 2.5rem;
    color: #1f2937;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.post-excerpt {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.6;
    font-style: italic;
    background: #f9fafb;
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid #667eea;
}

/* Imagem Principal */
.post-featured-image {
    margin-bottom: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.post-featured-image:hover img {
    transform: scale(1.02);
}

/* Conteúdo do Post */
.post-content {
    line-height: 1.7;
}

.post-text {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 2rem;
}

.post-text h2, .post-text h3, .post-text h4 {
    color: #1f2937;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.post-text h2 {
    font-size: 1.8rem;
    border-bottom: 2px solid #e1e5e9;
    padding-bottom: 0.5rem;
}

.post-text h3 {
    font-size: 1.4rem;
}

.post-text h4 {
    font-size: 1.2rem;
}

.post-text p {
    margin-bottom: 1.5rem;
}

.post-text ul, .post-text ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.post-text li {
    margin-bottom: 0.5rem;
}

.post-text blockquote {
    border-left: 3px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
    background: #f9fafb;
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
}

/* Tags do Post */
.post-tags {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.post-tags span {
    font-weight: 600;
    color: #1f2937;
    margin-right: 1rem;
    font-size: 0.9rem;
}

.post-tags a {
    display: inline-block;
    background: #667eea;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    margin: 0.2rem;
    transition: background-color 0.2s ease;
    font-weight: 500;
}

.post-tags a:hover {
    background: #5a67d8;
}

/* Compartilhamento */
.post-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
}

.post-share span {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
}

.post-share a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: transform 0.2s ease;
    font-size: 1rem;
}

.post-share a:hover {
    transform: translateY(-2px);
}

.post-share .facebook {
    background: #1877f2;
}

.post-share .twitter {
    background: #1da1f2;
}

.post-share .whatsapp {
    background: #25d366;
}

/* Posts Relacionados */
.related-posts {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e1e5e9;
}

.related-posts h3 {
    font-size: 1.5rem;
    color: #1f2937;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.related-post {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f1f3f4;
}

.related-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.related-post img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post:hover img {
    transform: scale(1.05);
}

.related-content {
    padding: 1.5rem;
}

.related-content .categoria {
    background: #667eea;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.related-content h4 {
    font-size: 1.1rem;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 600;
}

.related-content .post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.related-content .btn-read-more {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.related-content .btn-read-more:hover {
    color: #5a67d8;
}

/* Sidebar do Post */
.post-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.post-sidebar .sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    border: 1px solid #f1f3f4;
}

.post-sidebar .sidebar-widget h3 {
    font-size: 1.2rem;
    color: #1f2937;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e1e5e9;
    font-weight: 600;
}

/* Responsividade */
@media (max-width: 1200px) {
    .blog-layout, .post-layout {
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        padding: 2rem 1rem;
    }
}

@media (max-width: 992px) {
    .blog-layout, .post-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .blog-sidebar, .post-sidebar {
        order: -1;
    }
    
    .post-header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) { 
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-options select {
        min-width: auto;
        width: 100%;
    }
    
    .post-content, .post-main {
        padding: 1.5rem;
    }
    
    .post-content h2, .post-header h1 {
        font-size: 1.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .blog-main .pagination {
        gap: 0.5rem;
    }
    
    .blog-main .pagination-btn {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }
    
    .sidebar-widget {
        padding: 1.5rem;
    }
    
    .related-grid {
        grid-template-columns: 1fr;
    }
    
    .post-share {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .blog-layout, .post-layout {
        padding: 1rem;
    }
    
    .blog-filters {
        padding: 1.5rem;
    }
    
    .post-image {
        height: 200px;
    }
    
    .post-content, .post-main {
        padding: 1rem;
    }
    
    .blog-main .pagination-btn {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .popular-post {
        flex-direction: column;
        text-align: center;
    }
    
    .popular-post img {
        width: 100%;
        height: 120px;
    }
    
    .post-header h1 {
        font-size: 1.5rem;
    }
    
    .post-text {
        font-size: 1rem;
    }
} 