/*
Theme Name: Acerola
Theme URI: 
Author: Raiphy
Author URI: instagram.com/raiphy
Description: Tema WordPress minimalista, leve e otimizado para SEO, desenvolvido para blogs de tecnologia e aplicativos.
Version: 1.2.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acerola-theme
Tags: minimalista, leve, otimizado, seo, blog, tecnologia, aplicativos
*/

/* Reset e estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

a {
    color: #404040;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #0066cc;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container principal */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Container para single posts - centralizado e mais largo */
.single-container {
    max-width: 900px; /* Aumentado de 800px para 900px */
    margin: 0 auto;
    padding: 0 15px;
}

/* Removidos os estilos do cabeçalho antigo */

/* Seções de conteúdo */
.content-section {
    margin: 30px 0;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #404040;
    /* Removida a linha azul abaixo dos títulos */
}

/* Seção sem título */
.no-title {
    margin-top: 0;
}

/* Layout de duas colunas */
.main-content-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-top: 30px;
}

.main-content {
    flex: 0 0 70%;
    max-width: 70%;
    padding-right: 30px;
}

.sidebar {
    flex: 0 0 30%;
    max-width: 30%;
}

/* Seção de Destaques - Layout Atualizado */
.featured-posts-container {
    display: flex;
    gap: 20px;
}

.featured-post-main {
    flex: 0 0 60%;
    max-width: 60%;
}

.featured-posts-secondary {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.featured-post {
    position: relative;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-post:hover {
    transform: translateY(-5px);
}

.featured-post-image {
    position: relative;
    overflow: hidden;
}

.featured-post-main .featured-post-image {
    height: 350px;
}

.featured-posts-secondary .featured-post-image {
    height: 180px;
}

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

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

.featured-post-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(0, 102, 204, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.featured-post-category a {
    color: #fff;
}

.featured-post-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.featured-post-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.3;
}

.featured-post-title a {
    color: #404040; /* Alterada a cor dos títulos para preto #404040 */
}

.featured-post-main .featured-post-title {
    font-size: 24px;
}

.featured-post-excerpt {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.featured-post-meta {
    font-size: 12px;
    color: #888;
    margin-top: auto;
}

/* Cards de artigos populares */
.posts-list {
    margin-bottom: 20px;
}

.horizontal-card {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.horizontal-card:hover {
    transform: translateY(-3px);
}

.horizontal-card-image {
    flex: 0 0 120px;
    max-width: 120px;
    height: 90px;
}

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

.horizontal-card-content {
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.horizontal-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 20px;
}

.horizontal-card-title a {
    color: #404040; /* Alterada a cor dos títulos para preto #404040 */
}

/* Últimos posts na sidebar */
.sidebar-section {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.latest-posts-list {
    margin-bottom: 20px;
}

.latest-post {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.latest-post:last-child {
    border-bottom: none;
}

.latest-post-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.latest-post-title a {
    color: #404040; /* Alterada a cor dos títulos para preto #404040 */
}

/* Cores de categorias */
.category-border-blue {
    border-left: 4px solid #0066cc;
}

.category-border-green {
    border-left: 4px solid #00cc66;
}

.category-border-purple {
    border-left: 4px solid #9933cc;
}

.category-border-orange {
    border-left: 4px solid #ff9900;
}

.category-border-red {
    border-left: 4px solid #ff3366;
}

/* Botão Ver Mais */
.load-more-container {
    text-align: center;
    margin: 20px 0;
}

.load-more-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: #0066cc;
    color: #fff;
    text-align: center;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.load-more-btn:hover {
    background-color: #004499;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

/* Rodapé */
.site-footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-widget-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    margin-bottom: 10px;
}

.footer-widget a {
    color: #ccc;
}

.footer-widget a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #aaa;
}

/* Formulário de contato */
.contact-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}

.form-control:focus {
    border-color: #0066cc;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.2);
}

.submit-btn {
    background-color: #0066cc;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: #004499;
}

/* Estilos para Single Post - Minimalista */
.single-article {
    background-color: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
    margin-top: 40px;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 42px; /* Tamanho da fonte do título para desktop */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #404040;
}

.entry-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.entry-meta span {
    margin-right: 15px;
}

.entry-content {
    font-size: 16px; /* Tamanho da fonte do texto do artigo */
    line-height: 1.8;
    color: #333;
    margin-bottom: 30px;
}

.entry-content p {
    margin-bottom: 20px;
}
.entry-content h2 {
    font-size: 1.7em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #00000;

    }

.entry-content h3 {
    font-size: 1.4em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #00000;

    }
    
.entry-content h4 {
    font-size: 1.1em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #00000;
}

.entry-content ul, 
.entry-content ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tags-links {
    margin-bottom: 20px;
}

.tag-label {
    font-weight: 600;
    margin-right: 5px;
}

/* Botões de Compartilhamento */
.share-buttons {
    margin: 30px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.share-title {
    font-size: 16px;
    font-weight: 600;
    margin-right: 15px;
    margin-bottom: 0px;
    color: #00000;
}

.share-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f5f5f5;
    color: #333;
    transition: all 0.3s ease;
}

.share-facebook:hover {
    background-color: #3b5998;
    color: #fff;
}

.share-whatsapp:hover {
    background-color: #25d366;
    color: #fff;
}

.share-email:hover {
    background-color: #ea4335;
    color: #fff;
}

.share-twitter:hover {
    background-color: #1da1f2;
    color: #fff;
}

/* Seção do Autor */
.author-section {
    display: flex;
    align-items: center;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin: 40px 0;
}

.author-avatar {
    flex: 0 0 100px;
    margin-right: 20px;
}

.rounded-avatar {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #404040;
}

.author-description {
    font-size: 14px;
    color: #666;
}

/* Artigos Relacionados */
.related-posts {
    margin: 40px 0;
}

.related-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #404040;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.related-post:hover {
    transform: translateY(-5px);
}

.related-post-thumbnail {
    display: block;
    height: 180px;
    overflow: hidden;
}

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

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

.related-post-title {
    font-size: 16px;
    font-weight: 600;
    padding: 15px;
    line-height: 1.3;
}

.related-post-title a {
    color: #404040;
}

/* Navegação entre posts */
.post-navigation {
    margin: 40px 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.nav-links {
    display: flex;
    justify-content: space-between;
}

.nav-previous,
.nav-next {
    flex: 0 0 48%;
}

.nav-subtitle {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.nav-title {
    font-size: 16px;
    font-weight: 500;
    color: #404040;
}

/* Responsividade */
@media (max-width: 992px) {
    .main-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
    }
    
    .sidebar {
        flex: 0 0 100%;
        max-width: 100%;
        margin-top: 30px;
    }
    
    .featured-posts-container {
        flex-direction: column;
    }
    
    .featured-post-main,
    .featured-posts-secondary {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .featured-post-main .featured-post-image {
        height: 300px;
    }
    
    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .featured-post-main .featured-post-image {
        height: 250px;
    }
    
    .entry-title {
        font-size: 30px; /* Tamanho da fonte do título para celular */
    }
    
    .author-section {
        flex-direction: column;
        text-align: center;
    }
    
    .author-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    /* Remover contorno branco em artigos no mobile */
    .single-article,
    .page-article,
    .post,
    .featured-post,
    .horizontal-card,
    .related-post {
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
    }
    
    /* Ajustar espaçamento para conteúdo */
    .entry-content {
        padding: 0;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .featured-post-main .featured-post-image,
    .featured-post-secondary .featured-post-image {
        height: 200px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .featured-post-title, 
    .horizontal-card-title {
        font-size: 16px;
    }
}

/* Ajustes para compatibilidade com o novo header */
body.admin-bar .custom-site-header.sticky-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .custom-site-header.sticky-header {
        top: 46px;
    }
}

/* Ajuste para espaçamento após o header */
.custom-site-header + #primary {
    margin-top: 30px;
}

/* Ajuste para menu mobile */
body.menu-open {
    overflow: hidden;
}

/* Ajuste para overlay de pesquisa */
body.search-open {
    overflow: hidden;
}

/* Classe para esconder o header ao rolar para baixo */
.custom-site-header.header-hidden {
    transform: translateY(-100%);
}

/* Remover contorno branco em artigos */
.single-article,
.page-article,
.post {
    background-color: transparent;
    box-shadow: none;
    border: none;
    padding: 0;
}

/* Ajustes para o conteúdo principal */
#primary {
    padding: 0;
    margin-top: 20px;
}

#main {
    padding: 0;
    margin: 0;
}