/*
Theme Name: Acellere
Theme URI: https://acellere.site
Author: Miriam Rodrigues
Author URI: https://acellere.site
Description: Tema customizado para o blog Acellere, focado em performance, SGE e uma experiência de usuário premium para empreendedores.
Version: 1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: acellere
*/

/* O CSS principal será gerenciado via Tailwind, mas este arquivo é necessário para a declaração do tema. */

/* ===== ESTILOS PARA CONTEÚDO DE ARTIGOS ===== */

/* Container principal do conteúdo do artigo */
.article-content {
    font-size: var(--desktop-article-text-size, 18px);
    line-height: 1.6;
    color: var(--text-color, #5c6c70);
}

/* Títulos dentro do artigo */
.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    font-family: var(--font-family-headings, 'Lora', serif);
    color: var(--headings-color, #003b46);
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.article-content h1 {
    font-size: var(--desktop-h1-size, 2.5rem) !important;
}

.article-content h2 {
    font-size: var(--desktop-h2-size, 2.25rem) !important;
}

.article-content h3 {
    font-size: var(--desktop-h3-size, 2rem) !important;
}

.article-content h4 {
    font-size: var(--desktop-h4-size, 1.75rem) !important;
}

.article-content h5 {
    font-size: var(--desktop-h5-size, 1.5rem) !important;
}

.article-content h6 {
    font-size: var(--desktop-h6-size, 1.25rem) !important;
}

/* Parágrafos */
.article-content p {
    margin-bottom: 0rem;
    text-align: justify;
}

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

.article-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.article-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
}

.article-content li {
    line-height: 1.5;
}

/* Listas aninhadas */
.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Tabelas */
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 8px;
    overflow: scroll;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-content table th,
.article-content table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.article-content table th {
    background-color: var(--headings-color, #003b46);
    color: white;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 3px solid #e58b73;
}

.article-content table th,
.article-content table td {
    border-bottom: 1px solid #e5e7eb;
}

.article-content table tr:nth-child(even) {
    background-color: #f8f5f2;
}

.article-content table tr:hover {
    background-color: rgba(229, 139, 115, 0.08);
    border-left: 3px solid #e58b73;
}

/* Blockquotes */
.article-content blockquote {
    border-left: 4px solid var(--accent-color, #e58b73);
    background: #f9fafb;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    font-size: 1.1rem;
    border-radius: 0 8px 8px 0;
}

.article-content blockquote p {
    margin-bottom: 0;
}

.article-content blockquote cite {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-style: normal;
    color: var(--headings-color, #003b46);
}

/* Links */
.article-content a {
    color: var(--accent-color, #e58b73);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    transition: all 0.3s ease;
}

.article-content a:hover {
    color: var(--headings-color, #003b46);
    text-decoration-thickness: 3px;
}

/* Código */
.article-content code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9em;
    color: #1e293b;
}

.article-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 0rem 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* Imagens */
.article-content img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    /*margin: 2rem 0;*/
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    display: block;
}

/* Garantir que figuras e containers de imagem também se ajustem */
.article-content figure,
.article-content .wp-block-image,
.article-content .wp-caption {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Imagens dentro de figuras e blocos do WordPress */
.article-content figure img,
.article-content .wp-block-image img,
.article-content .wp-caption img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
}

/* Separadores */
.article-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--accent-color, #e58b73), transparent);
    margin: 3rem 0;
}

/* Destaque para texto forte */
.article-content strong,
.article-content b {
    font-weight: 700;
    color: var(--headings-color, #003b46);
}

/* Texto em itálico */
.article-content em,
.article-content i {
    font-style: italic;
    color: #8b9499;
}

/* Responsividade */
@media (max-width: 768px) {
    .article-content {
        font-size: var(--mobile-article-text-size, 16px);
    }

    .article-content h1 {
        font-size: var(--mobile-h1-size, 2rem) !important;
    }

    .article-content h2 {
        font-size: var(--mobile-h2-size, 1.75rem) !important;
    }

    .article-content h3 {
        font-size: var(--mobile-h3-size, 1.5rem) !important;
    }

    .article-content h4 {
        font-size: var(--mobile-h4-size, 1.25rem) !important;
    }

    .article-content h5 {
        font-size: var(--mobile-h5-size, 1.125rem) !important;
    }

    .article-content h6 {
        font-size: var(--mobile-h6-size, 1rem) !important;
    }

    /* Imagens em mobile - regras mais específicas */
    .article-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }

    /* Containers de imagem em mobile */
    .article-content figure,
    .article-content .wp-block-image,
    .article-content .wp-caption,
    .article-content div:has(img) {
        max-width: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        box-sizing: border-box !important;
    }

    /* Imagens dentro de qualquer container em mobile */
    .article-content figure img,
    .article-content .wp-block-image img,
    .article-content .wp-caption img,
    .article-content div img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    .article-content table {
        font-size: 0.9rem;
    }

    .article-content table th,
    .article-content table td {
        padding: 0.75rem 0.5rem;
    }

    .article-content blockquote {
        padding: 1rem 1.5rem;
        margin: 1.5rem 0;
    }
}

/* ===== ESTILOS PARA SHORTCODES ===== */

/* Caixa de Newsletter - Melhorada */
.article-content .newsletter-cta.my-12.p-6.rounded-lg,
.newsletter-cta.my-12.p-6.rounded-lg,
.newsletter-cta {
    background: linear-gradient(135deg, var(--headings-color, #003b46) 0%, #004a57 100%) !important;
    color: white !important;
    padding: 2.5rem 2rem !important;
    border-radius: 16px !important;
    text-align: left !important;
    /*margin: 3rem 0 !important;*/
    box-shadow: 0 12px 35px rgba(0, 59, 70, 0.25) !important;
    position: relative !important;
    overflow: hidden !important;
}

.newsletter-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(229, 139, 115, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.newsletter-cta h3 {
    color: white !important;
    font-family: var(--font-family-headings, 'Lora', serif) !important;
    font-weight: 700 !important;
    font-size: 1.75rem !important;
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.newsletter-cta p {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem !important;
    line-height: 1.4 !important;
    /*margin-bottom: 2rem !important;*/
    max-width: 550px !important;
    /*margin-left: auto !important;*/
    margin-right: auto !important;
    position: relative !important;
    z-index: 1 !important;
}

.newsletter-form {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.75rem !important;
    max-width: 450px !important;
    /*margin: 0 auto !important;*/
    position: relative !important;
    z-index: 1 !important;
}

.newsletter-form input[type="email"] {
    flex: 1 !important;
    padding: 0.625rem 0.875rem !important;
    border-radius: 50px !important;
    /*border: 2px solid rgba(255, 255, 255, 0.2) !important;*/
    background: rgba(255, 255, 255, 0.95) !important;
    color: var(--headings-color, #003b46) !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    outline: none !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}

.newsletter-form input[type="email"]::placeholder {
    color: #6b7280 !important;
    font-weight: 400 !important;
}

.newsletter-form input[type="email"]:focus {
    border-color: var(--accent-color, #e58b73) !important;
    box-shadow: 0 0 0 3px rgba(229, 139, 115, 0.2) !important;
    background: white !important;
}

.newsletter-form button {
    background: var(--accent-color, #e58b73) !important;
    color: white !important;
    font-weight: 700 !important;
    padding: 0.625rem 2rem !important;
    border-radius: 50px !important;
    border: none !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    /*box-shadow: 0 4px 15px rgba(229, 139, 115, 0.3) !important;*/
}

.newsletter-form button:hover {
    background: #d67a5c !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(229, 139, 115, 0.4) !important;
}

.newsletter-form button:active {
    transform: translateY(0) !important;
}

/* Responsividade para newsletter */
@media (max-width: 640px) {
    .newsletter-cta {
        padding: 2rem 1.5rem !important;
        margin: 2rem 0 !important;
    }

    .newsletter-cta h3 {
        font-size: 1.5rem !important;
    }

    .newsletter-cta p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem !important;
    }

    .newsletter-form {
        flex-direction: column !important;
        gap: 1rem !important;
        max-width: 100% !important;
    }

    .newsletter-form input[type="email"] {
        width: 100% !important;
    }

    .newsletter-form button {
        width: 100% !important;
        padding: 0.75rem 2rem !important;
    }
}

/* Caixa de Afiliados - Melhorada */
.affiliate-box {
    background: #f8f5f2 !important;
    border-left: 4px solid var(--headings-color, #003b46) !important;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem !important;
    margin: 2rem 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    display: block !important;
    width: 100% !important;
}

.affiliate-box h4 {
    font-family: var(--font-family-headings, 'Lora', serif) !important;
    color: var(--headings-color, #003b46) !important;
    font-weight: 700 !important;
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
    margin-top: 0 !important;
}

.affiliate-box .flex {
    display: flex !important;
    /*align-items: flex-start !important;*/
    gap: 1.25rem !important;
    flex-wrap: nowrap !important;
}

.affiliate-box .flex>div {
    flex: 1 !important;
}

.affiliate-box img {
    width: 120px !important;
    height: 160px !important;
    border-radius: 8px !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.affiliate-box .text-md {
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: var(--headings-color, #003b46) !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.4 !important;
}

.affiliate-box .text-sm {
    font-size: 0.95rem !important;
    color: #4b5563 !important;
    line-height: 1.5 !important;
    margin-bottom: 0.5rem !important;
}

.affiliate-box a,
.affiliate-box a:link,
.affiliate-box a:visited,
.affiliate-box a:active {
    display: inline-block !important;
    background: var(--accent-color, #e58b73) !important;
    color: white !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 25px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    margin-top: 0.25rem !important;
    border: none !important;
    cursor: pointer !important;
    text-align: center !important;
}

.affiliate-box a:hover,
.affiliate-box a:focus {
    background: var(--headings-color, #003b46) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    text-decoration: none !important;
}

/* Força o texto branco no botão de afiliados */
.article-content .affiliate-box a,
.article-content .affiliate-box a:link,
.article-content .affiliate-box a:visited,
.article-content .affiliate-box a:active,
.article-content .affiliate-box a:hover,
.article-content .affiliate-box a:focus {
    color: white !important;
    text-decoration: none !important;
}

/* Responsividade para caixa de afiliados */
@media (max-width: 640px) {
    .affiliate-box .flex {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .affiliate-box img {
        width: 120px !important;
        height: 160px !important;
    }
}



/* Citação Tweetável */
.tweetable-quote {
    position: relative;
    margin: 3rem 0;
}

.tweetable-quote blockquote {
    background: #f9fafb;
    border-left: 4px solid var(--accent-color, #e58b73);
    padding: 2rem;
    font-style: italic;
    font-size: 1.25rem;
    position: relative;
    border-radius: 8px;
}

/* ===== SIDEBAR SCROLL INDEPENDENTE ===== */

/* Sidebar sticky com scroll inteligente */
.sidebar-sticky {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    transition: all 0.3s ease;
}

/* Mobile - sidebar estático sem rolagem dupla */
@media (max-width: 1023px) {
    .sidebar-sticky {
        position: static;
        max-height: none;
        overflow-y: visible;
    }
    
    /* Ocultar widget "Neste artigo" do sidebar no mobile */
    .widget_acellere_toc {
        display: none !important;
    }
}

/* Classe para quando o mouse está sobre o sidebar */
/* .sidebar-sticky.mouse-over {
    Permite scroll manual quando mouse está sobre o sidebar */
/* }*/

/* Classe para scroll automático */
/* .sidebar-sticky.auto-scroll {
    Scroll controlado por JavaScript quando mouse não está sobre o sidebar */
/* }*/

/* ===== SIDEBAR LAYOUT ===== */

/* Estilos para quando não há widgets na sidebar */
#sidebar-content:empty::before {
    content: "Sidebar vazia - Adicione widgets no painel administrativo";
    display: block;
    padding: 2rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Ocultar sidebar quando layout for 'none' */
body.sidebar-none aside.w-full.lg\:w-1\/3 {
    display: none !important;
}

/* Conteúdo principal ocupa toda largura quando não há sidebar */
body.sidebar-none .w-full.lg\:w-2\/3 {
    width: 100% !important;
}

/* ===== CORREÇÕES ESPECÍFICAS ===== */

/* Remove estilos conflitantes do Tailwind para o conteúdo */
.article-content .prose,
.article-content .lg\:prose-xl {
    max-width: none !important;
}

/* Garante que shortcodes não sejam exibidos como texto */
.article-content [data-shortcode] {
    display: none;
}

/* ===== ESTILOS PARA SEÇÕES DE ANÚNCIOS ===== */

/* Container para widgets de anúncios */
.ad-section {
    margin: 40px 0;
    display: flex;
    justify-content: center;
    width: 100%;
    clear: both;
}

/* Estilos específicos para diferentes posições */
.ad-section.homepage-ad {
    margin: 50px 0;
}

.ad-section.post-ad {
    margin: 30px 0;
}

.ad-section.hub-ad {
    margin: 35px 0;
}

/* Responsividade para anúncios */
@media (max-width: 768px) {
    .ad-section {
        margin: 25px 0;
    }
    
    .ad-section.homepage-ad {
        margin: 30px 0;
    }
}

/* Garantir que anúncios não quebrem o layout */
.ad-section > div {
    max-width: 100%;
    overflow: hidden;
}

/* Estilos para placeholders de teste */
.ad-section [style*="background: #e8f4f8"] {
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}/* ===== COR
REÇÃO PARA AVATARES REDONDOS ===== */

/* Garante que todos os avatares do WordPress sejam redondos */
.avatar,
img.avatar {
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Correção específica para avatares em diferentes contextos */
.author-avatar,
.comment-author img,
.wp-user-avatar {
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Garante dimensões corretas para avatares */
.avatar {
    display: inline-block;
}

/* Correção para avatares que podem estar sendo afetados por outros CSS */
/*.rounded-full {
    border-radius: 50% !important;
}*/
/* Newsletter da Homepage - Estilos específicos */
/*#newsletter .newsletter-form {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    max-width: 32rem !important;
    margin: 0 auto !important;
}*/

#newsletter .newsletter-form input[type="email"] {
    flex: 1 !important;
    padding: 0.75rem 1.25rem !important;
    border-radius: 9999px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: var(--headings-color, #003b46) !important;
    border: none !important;
    outline: none !important;
    font-size: 1rem !important;
}

#newsletter .newsletter-form input[type="email"]:focus {
    background: white !important;
    box-shadow: 0 0 0 2px var(--accent-color, #e58b73) !important;
}

#newsletter .newsletter-form button {
    background: var(--accent-color, #e58b73) !important;
    color: white !important;
    font-weight: bold !important;
    padding: 0.75rem 2rem !important;
    border-radius: 9999px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

#newsletter .newsletter-form button:hover {
    background: white !important;
    color: var(--accent-color, #e58b73) !important;
    transform: scale(1.05) !important;
}

#newsletter .newsletter-form button:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

/* Responsividade para newsletter da homepage */
@media (max-width: 768px) {
    #newsletter .newsletter-form {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    #newsletter .newsletter-form input[type="email"],
    #newsletter .newsletter-form button {
        width: 100% !important;
    }
}
/* ===== CORREÇÃO DEFINITIVA PARA AVATARES REDONDOS ===== */

/* Força todos os avatares a serem perfeitamente redondos */
img.avatar,
.avatar,
img[class*="avatar"],
.wp-user-avatar,
.author-avatar {
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
    display: inline-block !important;
}

/* Correção específica para classes Tailwind que podem estar causando problema */
.w-10.h-10.rounded-full img,
.w-12.h-12.rounded-full img,
.w-20.h-20.rounded-full img,
.rounded-full img {
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}

/* Força dimensões específicas para avatares pequenos */
img.avatar[width="40"],
img.avatar[height="40"] {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Força dimensões específicas para avatares médios */
img.avatar[width="80"],
img.avatar[height="80"] {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Correção para avatares em comentários */
.comment-author img.avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

/* Sobrescreve qualquer estilo que possa estar distorcendo */
img[src*="gravatar"],
img[src*="avatar"] {
    border-radius: 50% !important;
    object-fit: cover !important;
    aspect-ratio: 1 / 1 !important;
}/* 
===== CORREÇÃO ESPECÍFICA PARA AVATARES EM POSTS ===== */

/* Avatares no cabeçalho do post */
.single-post .flex.items-center img.avatar,
article .flex.items-center img.avatar {
    border-radius: 50% !important;
    object-fit: cover !important;
    width: 40px !important;
    height: 40px !important;
    aspect-ratio: 1 / 1 !important;
}

/* Avatares na bio do autor */
.author-bio img.avatar,
.bg-\[\#f8f5f2\] img.avatar {
    border-radius: 50% !important;
    object-fit: cover !important;
    width: 80px !important;
    height: 80px !important;
    aspect-ratio: 1 / 1 !important;
}

/* Remove qualquer transform ou distorção */
img.avatar {
    transform: none !important;
    filter: none !important;
}

/* Força o aspect-ratio em navegadores que suportam */
@supports (aspect-ratio: 1 / 1) {
    img.avatar,
    .avatar {
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
}/* ==
=== SEÇÃO DE BIO DO AUTOR MELHORADA ===== */

.author-bio-section {
    margin-top: 4rem;
    padding-top: 2rem;
}

.author-bio-section .bg-gradient-to-br {
    /*position: relative;*/
    backdrop-filter: blur(10px);
}

/* Avatar melhorado */
.author-bio-section .avatar {
    transition: all 0.3s ease;
    border: 4px solid white !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.author-bio-section .avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15) !important;
}

/* ===== INDICADOR ONLINE MELHORADO ===== */
.online-indicator {
    background: #10b981 !important;
    animation: pulse-online 2s infinite;
    position: relative;
}

.online-indicator::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #10b981;
    border-radius: 50%;
    opacity: 0.4;
    animation: ping-online 2s infinite;
}

@keyframes pulse-online {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes ping-online {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    75%, 100% {
        transform: scale(1.4);
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Badges do autor */
.author-bio-section .inline-flex.px-3 {
    transition: all 0.2s ease;
}

.author-bio-section .inline-flex.px-3:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Links sociais */
.author-bio-section a[target="_blank"] {
    transition: all 0.3s ease;
}

.author-bio-section a[target="_blank"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Botão de imprimir melhorado */
.author-bio-section .print-btn {
    transition: all 0.3s ease;
}

.author-bio-section .print-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsividade para a bio do autor */
@media (max-width: 768px) {
    .author-bio-section {
        margin-top: 3rem;
        padding-top: 1.5rem;
    }
    
    .author-bio-section .bg-gradient-to-br {
        padding: 1.5rem;
    }
    
    .author-bio-section .avatar {
        width: 80px !important;
        height: 80px !important;
    }
    
    .author-bio-section h4 {
        font-size: 1.25rem !important;
    }
    
    .author-bio-section .flex.gap-6 {
        gap: 1rem;
    }
}

/* Animação de entrada */
.author-bio-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Elemento decorativo */
.author-bio-section .absolute.top-0.right-0 {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(-16px) translateX(16px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) translateX(20px) rotate(5deg);
    }
}/*
 ===== MELHORIAS PARA O BOX DO AUTOR ===== */

/* Reduz espaçamento excessivo */
.author-bio-section {
    margin-top: 3rem !important;
    padding-top: 1.5rem !important;
}

/* Melhora o indicador online */
.online-indicator {
    z-index: 10;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Efeito de glow sutil */
.online-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #34d399;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .author-bio-section {
        margin-top: 2rem !important;
        padding-top: 1rem !important;
    }
    
    .online-indicator {
        width: 14px !important;
        height: 14px !important;
        bottom: 20px !important;
        right: -60px !important;
    }
    
    .online-indicator::after {
        width: 6px !important;
        height: 6px !important;
    }
}

/* ===== ESTILOS PARA SEÇÃO DE REAÇÕES MELHORADA ===== */

/* Container principal das reações */
.reaction-section {
    position: relative;
    overflow: hidden;
}

/* Efeito de brilho no hover dos botões de reação */
.reaction-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 139, 115, 0.15);
}

/* Animação de seleção dos botões */
.reaction-btn.selected {
    animation: reactionSelected 0.3s ease-out;
}

@keyframes reactionSelected {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Efeito de pulso nos emojis */
.reaction-btn:hover span:first-child {
    animation: emojiPulse 0.6s ease-in-out;
}

@keyframes emojiPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Estilo para botões de feedback */
[data-feedback] {
    transition: all 0.2s ease-in-out;
    position: relative;
    overflow: hidden;
}

[data-feedback]:hover {
    transform: translateY(-1px);
}

[data-feedback]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

[data-feedback]:hover::before {
    left: 100%;
}

/* Contador de reações */
.reaction-count {
    font-weight: 600;
    color: #e58b73;
    transition: all 0.2s ease;
}

.reaction-count.updated {
    animation: countUpdate 0.5s ease-out;
}

@keyframes countUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: #003b46;
    }
    100% {
        transform: scale(1);
    }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 640px) {
    .reaction-btn {
        padding: 0.75rem !important;
    }
    
    .reaction-btn span:first-child {
        font-size: 2rem !important;
    }
    
    .reaction-btn span:last-child {
        font-size: 0.75rem !important;
    }
    
    [data-feedback] {
        font-size: 0.625rem !important;
        padding: 0.5rem 0.75rem !important;
    }
}

/* Melhorias para acessibilidade */
.reaction-btn:focus,
[data-feedback]:focus {
    outline: 2px solid #e58b73;
    outline-offset: 2px;
}

/* Efeito de loading para feedback */
[data-feedback].loading {
    pointer-events: none;
    opacity: 0.7;
}

[data-feedback].loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== ESTILOS PARA SISTEMA DE COMENTÁRIOS ===== */

/* Botões de like/dislike */
.comment-like-btn,
.comment-dislike-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 14px;
}

.comment-like-btn:hover {
    background-color: rgba(34, 197, 94, 0.1);
    color: #22c55e;
}

.comment-dislike-btn:hover {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.comment-like-btn.liked {
    color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
}

.comment-dislike-btn.disliked {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
}

/* Contador de likes */
.comment-likes-count {
    font-size: 12px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* Badge de autor */
.comment-author-badge {
    background-color: #e58b73;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: 4px;
    font-weight: 500;
}

/* Respostas aos comentários */
.comment-list .children {
    margin-left: 0;
    padding-left: 0;
}

.comment-list .children .comment {
    border-left: 2px solid #e5e7eb;
    padding-left: 1.5rem;
    margin-top: 1rem;
    margin-left: 1rem;
}

/* Avatar menor para respostas */
.comment-list .children .avatar {
    width: 40px !important;
    height: 40px !important;
}

/* Responsividade para comentários */
@media (max-width: 640px) {
    .comment-like-btn,
    .comment-dislike-btn {
        padding: 6px;
        font-size: 16px;
    }
    
    .comment-likes-count {
        font-size: 14px;
    }
    
    .comment-list .children .comment {
        padding-left: 1rem;
        margin-left: 0.5rem;
    }
}

/* ===== INDENTAÇÃO PROGRESSIVA PARA RESPOSTAS DE COMENTÁRIOS ===== */
.comment-list .depth-2 {
    padding-left: 2rem;
}
.comment-list .depth-3 {
    padding-left: 3rem;
}
.comment-list .depth-4 {
    padding-left: 4rem;
}
.comment-list .depth-5 {
    padding-left: 5rem;
}
/* Ajuste responsivo para indentação em telas pequenas */
@media (max-width: 640px) {
    .comment-list .depth-2 { padding-left: 1rem; }
    .comment-list .depth-3 { padding-left: 1.5rem; }
    .comment-list .depth-4 { padding-left: 2rem; }
    .comment-list .depth-5 { padding-left: 2.5rem; }
}

/* Garante que todos os títulos de widgets usem a fonte de títulos do tema */
.widget > h2,
.widget > h3,
.widget > h4,
.widget > h5,
.widget > h6 {
    font-family: var(--font-family-headings, 'Lora', serif) !important;
    font-weight: bold;
    color: var(--headings-color, #003b46);
    letter-spacing: normal;
}

/* Estilos padronizados para TODOS os títulos de widgets - MÁXIMA ESPECIFICIDADE */
html body .widget-title,
html body .widgettitle,
html body h2.widget-title,
html body h2.widgettitle,
html body .widget .widget-title,
html body .widget .widgettitle,
html body .widget h2.widget-title,
html body .widget h2.widgettitle,
html body div.widget .widget-title,
html body div.widget .widgettitle,
html body div.widget h2.widget-title,
html body div.widget h2.widgettitle,
html body section.widget .widget-title,
html body section.widget .widgettitle,
html body section.widget h2.widget-title,
html body section.widget h2.widgettitle {
    font-family: var(--font-family-headings, 'Lora', serif) !important;
    font-weight: bold !important;
    color: var(--headings-color, #003b46) !important;
    font-size: 1.4rem !important;
    line-height: 1.4 !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
}

/* Scroll behavior para sidebar */
#sidebar-content.auto-scroll {
    scroll-behavior: auto;
}

#sidebar-content.mouse-over {
    scroll-behavior: smooth;
}

/* Estilos para a scrollbar da sidebar */
#sidebar-content {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

#sidebar-content::-webkit-scrollbar {
    width: 6px;
}

#sidebar-content::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 3px;
}

#sidebar-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

#sidebar-content::-webkit-scrollbar-thumb:hover {
    background: #c1c1c1;
}

/* ===== CORREÇÃO PARA BLOCO DO GUTENBERG NA SIDEBAR ===== */
/* Força display block para elementos is-layout-flex na sidebar */
#sidebar-content .is-layout-flex {
    display: block !important;
}

#sidebar-content .wp-block-group.is-layout-flex {
    display: block !important;
}

/* Força centralização APENAS do widget de afiliados na sidebar */
#sidebar-content .widget_acellere_affiliate > div {
    text-align: center;
}

/* Mantém alinhamento à esquerda para outros widgets */
#sidebar-content .widget > div {
    text-align: left;
}

/* ===== ESTILOS PARA WIDGET DE ARTIGOS RELACIONADOS ===== */

/* Line clamp para títulos e excerpts dos artigos relacionados */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== TABELAS RESPONSIVAS EM ARTIGOS ===== */
.article-content table {
    width: 100%;
    max-width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.article-content table thead,
.article-content table tbody,
.article-content table tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

/* Desktop - rolagem também no desktop */
@media (min-width: 769px) {
    .article-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== TABELAS RESPONSIVAS COM SCROLL LATERAL ===== */
.article-content .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-content .table-responsive table {
    width: 100% !important;
    max-width: none !important;
    min-width: 500px !important; /* Largura mínima aumentada para melhor legibilidade */
    table-layout: auto !important; /* Permite que as colunas se ajustem ao conteúdo */
}

/* Limita a largura das colunas */
.article-content .table-responsive table th,
.article-content .table-responsive table td {
    width: auto !important;
    min-width: 120px !important; /* Largura mínima aumentada para melhor legibilidade */
    max-width: 250px !important; /* Largura máxima aumentada */
    white-space: normal !important;
    word-break: break-word !important; /* Quebra palavras longas */
    overflow-wrap: break-word !important;
    text-align: left !important;
    padding: 0.75rem !important;
}

/* Desktop - ajustes para telas maiores */
@media (min-width: 768px) {
    .article-content .table-responsive table {
        min-width: 700px !important; /* Largura mínima aumentada no desktop */
    }
    
    .article-content .table-responsive table th,
    .article-content .table-responsive table td {
        min-width: 150px !important; /* Largura mínima aumentada no desktop */
        max-width: 300px !important; /* Largura máxima maior no desktop */
    }
}

/* Mobile - fonte menor e larguras otimizadas */
@media (max-width: 767px) {
    .article-content .table-responsive table {
        min-width: 450px !important; /* Largura mínima aumentada no mobile */
    }
    
    .article-content .table-responsive table th,
    .article-content .table-responsive table td {
        min-width: 100px !important; /* Largura mínima aumentada no mobile */
        max-width: 200px !important; /* Largura máxima aumentada no mobile */
        font-size: 0.875rem; /* 14px */
        padding: 0.6rem 0.6rem !important; /* Padding aumentado */
    }
    
    .article-content .table-responsive table th {
        font-weight: 600;
        font-size: 0.85rem; /* Fonte um pouco maior para cabeçalhos */
    }
    
    .article-content .table-responsive table td {
        font-size: 0.875rem; /* 14px */
    }
}

/* Extra small devices - otimização adicional */
@media (max-width: 480px) {
    .article-content .table-responsive table {
        min-width: 400px !important; /* Largura mínima aumentada */
    }
    
    .article-content .table-responsive table th,
    .article-content .table-responsive table td {
        min-width: 80px !important; /* Largura mínima aumentada */
        max-width: 160px !important; /* Largura máxima aumentada */
        padding: 0.5rem 0.4rem !important; /* Padding aumentado */
        font-size: 0.85rem; /* Fonte um pouco maior */
    }
    
    .article-content .table-responsive table th {
        font-size: 0.8rem; /* Fonte um pouco maior para cabeçalhos */
    }
}

