/* Estilos específicos para a página de blog */

/* Navegação Ativa */
.nav-links a.active {
    color: #9d4edd;
}

.nav-links a.active::after {
    width: 100%;
}

/* Hero do Blog */
.blog-hero {
    background: linear-gradient(135deg, rgba(26, 17, 66, 0.9) 0%, rgba(61, 18, 95, 0.9) 100%);
    padding: 140px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 800 800'%3E%3Cg fill='none' stroke='%23404' stroke-width='1'%3E%3Cpath d='M769 229L1037 260.9M927 880L731 737 520 660 309 538 40 599 295 764 126.5 879.5 40 599-197 493 102 382-31 229 126.5 79.5-69-63'/%3E%3Cpath d='M-31 229L237 261 390 382 603 493 308.5 537.5 101.5 381.5M370 905L295 764'/%3E%3Cpath d='M520 660L578 842 731 737 840 599 603 493 520 660 295 764 309 538 390 382 539 269 769 229 577.5 41.5 370 105 295 -36 126.5 79.5 237 261 102 382 40 599 -69 737 127 880'/%3E%3Cpath d='M520-140L578.5 42.5 731-63M603 493L539 269 237 261 370 105M902 382L539 269M390 382L102 382'/%3E%3Cpath d='M-222 42L126.5 79.5 370 105 539 269 577.5 41.5 927 80 769 229 902 382 603 493 731 737M295-36L577.5 41.5M578 842L295 764M40-201L127 80M102 382L-261 269'/%3E%3C/g%3E%3Cg fill='%23505'%3E%3Ccircle cx='769' cy='229' r='5'/%3E%3Ccircle cx='539' cy='269' r='5'/%3E%3Ccircle cx='603' cy='493' r='5'/%3E%3Ccircle cx='731' cy='737' r='5'/%3E%3Ccircle cx='520' cy='660' r='5'/%3E%3Ccircle cx='309' cy='538' r='5'/%3E%3Ccircle cx='295' cy='764' r='5'/%3E%3Ccircle cx='40' cy='599' r='5'/%3E%3Ccircle cx='102' cy='382' r='5'/%3E%3Ccircle cx='127' cy='80' r='5'/%3E%3Ccircle cx='370' cy='105' r='5'/%3E%3Ccircle cx='578' cy='42' r='5'/%3E%3Ccircle cx='237' cy='261' r='5'/%3E%3Ccircle cx='390' cy='382' r='5'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.1;
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(78, 221, 152, 0.6);
    background: linear-gradient(to right, #9d4edd, #4edd98);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.blog-hero p {
    font-size: 1.2rem;
    color: #d1c7e2;
    max-width: 700px;
    margin: 0 auto;
}

/* Layout principal do blog */
.blog-main {
    padding: 80px 0;
    background-color: rgba(12, 10, 29, 0.7);
}

.blog-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 40px;
    max-width: 100%;
}

/* Overflow para componentes com conteúdo longo */
.blog-content, .sidebar-widget {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* Estilos para o conteúdo principal */
.blog-content {
    background: rgba(26, 17, 66, 0.5);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(157, 78, 221, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(157, 78, 221, 0.1);
}

/* Esconder artigos não selecionados */
.featured-article.hidden {
    display: none;
}

/* Cabeçalho do artigo */
.article-header {
    margin-bottom: 30px;
}

.article-header h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: #fff;
    line-height: 1.3;
    text-shadow: 0 0 10px rgba(78, 221, 152, 0.4);
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #9d4edd;
}

/* Imagem principal do artigo */
.article-featured-image {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(157, 78, 221, 0.4);
}

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

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

/* Conteúdo do artigo */
.article-body {
    color: #e2d8f3;
    line-height: 1.7;
}

.article-body h3 {
    font-size: 1.8rem;
    margin: 30px 0 20px;
    color: #fff;
    text-shadow: 0 0 8px rgba(78, 221, 152, 0.4);
}

.article-body h4 {
    font-size: 1.4rem;
    margin: 25px 0 15px;
    color: #9d4edd;
}

.article-body h5 {
    font-size: 1.1rem;
    margin: 20px 0 10px;
    color: #4edd98;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul, 
.article-body ol {
    margin: 0 0 20px 25px;
}

.article-body li {
    margin-bottom: 10px;
}

/* Posts relacionados */
.related-posts {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(157, 78, 221, 0.2);
}

.related-posts ol {
    margin-left: 0;
    list-style-position: inside;
}

.related-posts li {
    margin-bottom: 15px;
}

.related-posts a {
    color: #4edd98;
    text-decoration: none;
    transition: color 0.3s;
}

.related-posts a:hover {
    color: #9d4edd;
    text-decoration: underline;
}

/* Estilo para as caixas de recursos */
.resources-box {
    background: rgba(157, 78, 221, 0.1);
    border-left: 3px solid #9d4edd;
    padding: 20px 25px;
    margin-top: 30px;
    border-radius: 5px;
}

.resources-box h4 {
    margin-top: 0;
    color: #4edd98;
}

.resources-box ul {
    margin-bottom: 0;
}

.resources-box a {
    color: #9d4edd;
    text-decoration: none;
    transition: color 0.3s;
}

.resources-box a:hover {
    color: #4edd98;
    text-decoration: underline;
}

/* Estilo para seção de FAQs */
.faq-section {
    margin-top: 40px;
    background: rgba(78, 221, 152, 0.05);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid rgba(78, 221, 152, 0.2);
}

.faq-section h4 {
    color: #4edd98;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(157, 78, 221, 0.15);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h5 {
    color: #9d4edd;
    margin-bottom: 10px;
}

.final-note {
    font-style: italic;
    margin-top: 30px;
    padding: 15px;
    border-top: 1px dashed rgba(157, 78, 221, 0.3);
    border-bottom: 1px dashed rgba(157, 78, 221, 0.3);
    text-align: center;
    color: #d1c7e2;
}

/* Estilos para boxes de destaque no artigo de produtos */
.testimonial-box, .tip-box, .science-box, .insight-box, .example-box, .reflection-box, .action-steps, .note-box {
    margin: 25px 0;
    padding: 20px;
    border-radius: 8px;
    position: relative;
}

.testimonial-box {
    background: rgba(157, 78, 221, 0.08);
    border-left: 3px solid #9d4edd;
}

.tip-box {
    background: rgba(78, 221, 152, 0.08);
    border-left: 3px solid #4edd98;
}

.science-box {
    background: rgba(100, 149, 237, 0.08);
    border-left: 3px solid #6495ED;
}

.insight-box {
    background: rgba(255, 165, 0, 0.08);
    border-left: 3px solid #FFA500;
}

.example-box {
    background: rgba(106, 90, 205, 0.08);
    border-left: 3px solid #6A5ACD;
}

.reflection-box {
    background: rgba(220, 20, 60, 0.08);
    border-left: 3px solid #DC143C;
    font-style: italic;
}

.action-steps {
    background: rgba(50, 205, 50, 0.08);
    border: 1px solid rgba(50, 205, 50, 0.3);
    padding: 20px 25px;
}

.action-steps h4 {
    margin-top: 0;
    color: #32CD32;
}

.action-steps ol {
    margin-bottom: 0;
}

.note-box {
    background: rgba(255, 255, 224, 0.3);
    border: 1px dashed rgba(157, 78, 221, 0.3);
    font-size: 0.9rem;
    text-align: center;
}

/* Estilo para seção de FAQs */
.faq-section {
    margin-top: 40px;
    background: rgba(78, 221, 152, 0.05);
    border-radius: 8px;
    padding: 25px;
    border: 1px solid rgba(78, 221, 152, 0.2);
}

.faq-section h4 {
    color: #4edd98;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(157, 78, 221, 0.15);
}

.faq-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-item h5 {
    color: #9d4edd;
    margin-bottom: 10px;
}

.final-note {
    font-style: italic;
    margin-top: 30px;
    padding: 15px;
    border-top: 1px dashed rgba(157, 78, 221, 0.3);
    border-bottom: 1px dashed rgba(157, 78, 221, 0.3);
    text-align: center;
    color: #d1c7e2;
}

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

.sidebar-widget {
    background: rgba(26, 17, 66, 0.5);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(157, 78, 221, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(157, 78, 221, 0.1);
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid;
    border-image: linear-gradient(to right, #9d4edd, #4edd98) 1;
    display: inline-block;
}

/* Categorias */
.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: #d1c7e2;
    text-decoration: none;
    transition: all 0.3s;
    display: block;
    padding: 5px 0;
    position: relative;
    padding-left: 15px;
}

.category-list a:before {
    content: '•';
    color: #9d4edd;
    position: absolute;
    left: 0;
}

.category-list a:hover {
    color: #4edd98;
    transform: translateX(5px);
}

/* Posts populares */
.popular-posts {
    list-style: none;
}

.popular-posts li {
    margin-bottom: 15px;
}

.popular-posts a {
    display: flex;
    gap: 15px;
    text-decoration: none;
    align-items: center;
}

.thumb-img {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.popular-posts a:hover .thumb-img img {
    transform: scale(1.1);
}

.post-info {
    flex-grow: 1;
}

.post-info h4 {
    font-size: 1rem;
    color: #d1c7e2;
    margin-bottom: 5px;
    transition: color 0.3s;
}

.post-info span {
    font-size: 0.8rem;
    color: #9d4edd;
}

.popular-posts a:hover .post-info h4 {
    color: #4edd98;
}

/* Newsletter */
.newsletter p {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #d1c7e2;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-form input {
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid rgba(157, 78, 221, 0.3);
    background: rgba(26, 17, 66, 0.5);
    color: #fff;
    font-size: 0.9rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: rgba(78, 221, 152, 0.5);
    box-shadow: 0 0 10px rgba(78, 221, 152, 0.3);
}

.newsletter-form .btn {
    width: 100%;
    text-align: center;
}

/* Efeitos nos cards de artigo */
.article-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(157, 78, 221, 0.4);
}

/* Garantir que imagens não extravasem nos dispositivos móveis */
img {
    max-width: 100%;
    height: auto;
}

/* Responsividade */
@media (max-width: 1200px) {
    .blog-main {
        padding: 60px 0;
    }
    
    .blog-grid {
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar {
        margin-top: 40px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .article-body {
        font-size: 0.95rem;
    }
    
    .article-body ul, 
    .article-body ol {
        margin-left: 15px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 130px 0 50px;
    }
    
    .blog-hero h1 {
        font-size: 2.3rem;
    }
    
    .blog-main {
        padding: 40px 0;
    }
    
    .article-header h2 {
        font-size: 1.8rem;
    }
    
    .article-body h3 {
        font-size: 1.6rem;
        margin: 25px 0 15px;
    }
    
    .article-body h4 {
        font-size: 1.3rem;
        margin: 20px 0 10px;
    }
    
    .article-body h5 {
        font-size: 1rem;
        margin: 15px 0 10px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-sidebar {
        grid-template-columns: 1fr;
    }
    
    .popular-posts a {
        gap: 10px;
    }
    
    .sidebar-widget {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .blog-hero {
        padding: 110px 0 40px;
    }
    
    .blog-hero h1 {
        font-size: 1.8rem;
    }
    
    .blog-hero p {
        font-size: 0.95rem;
    }
    
    .blog-main {
        padding: 30px 0;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .article-header h2 {
        font-size: 1.5rem;
    }
    
    .article-body ul, 
    .article-body ol {
        margin-left: 10px;
    }
    
    .article-body {
        font-size: 0.9rem;
    }
    
    .sidebar-widget h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .blog-content {
        padding: 15px;
    }
    
    .article-header {
        margin-bottom: 20px;
    }
    
    .article-featured-image {
        margin-bottom: 20px;
    }
    
    .article-body h3 {
        font-size: 1.4rem;
        margin: 20px 0 15px;
    }
    
    .article-body h4 {
        font-size: 1.2rem;
    }
    
    .article-body p {
        margin-bottom: 15px;
    }
    
    .related-posts li {
        margin-bottom: 12px;
    }
    
    .related-posts {
        margin-top: 30px;
        padding-top: 20px;
    }
}

@media (max-width: 375px) {
    .blog-hero h1 {
        font-size: 1.6rem;
    }
    
    .article-header h2 {
        font-size: 1.3rem;
    }
    
    .article-body h3 {
        font-size: 1.2rem;
    }
    
    .article-body h4 {
        font-size: 1.1rem;
    }
    
    .sidebar-widget {
        padding: 15px;
    }
    
    .thumb-img {
        width: 60px;
        height: 60px;
    }
}