/*
Theme Name: PubliSimple Final
Theme URI: https://seusite.com/
Author: Matheus Martins
Author URI: https://seusite.com/
Description: Um tema simples, leve e otimizado para exibição de anúncios.
Version: 5.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, simple, ads, fast
Text Domain: publisimple
*/

/* --- Reset Básico e Estilo Geral --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Cabeçalho --- */
.site-header {
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-size: 2.5em;
    font-weight: bold;
    color: #222;
}

.site-description {
    font-size: 1.1em;
    color: #777;
    margin: 0;
}

/* --- Menu de Navegação --- */
.main-navigation {
    position: relative;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-bar {
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 3px;
}

.main-navigation ul {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    list-style: none;
    margin: 0;
    padding: 10px 0;
    z-index: 1000;
    min-width: 200px;
}

.main-navigation ul.menu-aberto {
    display: block;
}

.main-navigation li {
    text-align: right;
}

.main-navigation a {
    display: block;
    padding: 10px 20px;
    color: #333;
    white-space: nowrap;
}

.main-navigation a:hover {
    background-color: #f4f4f4;
    text-decoration: none;
}

/* --- Conteúdo do Post --- */
.post {
    margin-bottom: 40px;
}

.post-title {
    font-size: 2em;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.post-title a {
    color: #333;
}

.post-content img,
.post-content video,
.post-content iframe {
    max-width: 100%;
    height: auto;
}

/* --- Áreas de Anúncios --- */
.ad-slot {
    margin: 20px 0;
    text-align: center;
    min-height: 90px;
    background-color: #ffffff;
    border: 1px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    color: #888;
}

/* --- SKELETON LOADER PARA SLOTS DE ANÚNCIO --- */
.ad-slot > div[id^="gpt-"] {
    background-color: #eef1f4;
    animation: pulse 1.5s infinite ease-in-out;
    min-height: 250px;
}

.ad-slot > div[id^="gpt-"] > iframe {
    animation: none;
}

@keyframes pulse {
    0% { background-color: #eef1f4; }
    50% { background-color: #e1e6eb; }
    100% { background-color: #eef1f4; }
}

/* --- Rodapé --- */
.site-footer {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
    color: #777;
    font-size: 0.9em;
}

/* --- Correções e Melhorias Gerais --- */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.post-content, .wrap {
    overflow-x: hidden;
}

/****************************************************************/
/* CSS DE ALTA PRIORIDADE PARA OS BOTÕES DO PLUGIN IFCHAT       */
/****************************************************************/

/* Garante que o link que envolve o botão ocupe 100% da largura */
.post-content .ifchat-cta-wrap a {
    display: block;
    text-decoration: none;
}

/* Regra para o conteúdo de texto dentro do botão */
.post-content .ifchat-cta-wrap a div {
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
    height: auto !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* --- Responsividade (Telas Pequenas) --- */
@media (max-width: 820px) {
    .container {
        margin: 0;
        padding: 15px;
        box-shadow: none;
        border-radius: 0;
    }
    .site-title a {
        font-size: 1.8em;
    }
    .post-title {
        font-size: 1.5em;
    }
    
    .main-navigation ul {
        right: -15px;
        top: 45px;
        width: calc(100vw - 30px);
        max-width: 300px;
    }
    .main-navigation li {
        text-align: left;
    }
}