/* ==========================================================================
   GLOBAL BASE (PC & ESTILOS COMUNS)
   Arquivo: /assets/css/global.css
   ========================================================================== */

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* --- 0. VARIÁVEIS GLOBAIS (CONFIGURAÇÃO CENTRAL) --- */
:root {
   /* Cores da Marca (detalhes, botoes*/
    --cor-principal:       #0067ab;
    --cor-principal-hover: #0067ab; /* Hovers/botao (geral */
    --cor-social-hover:  #2A80B9; /* Hovers/Botao (social) */
    --cor-destaque:      #D69A2B; /* Hovers/Destaques */

    /* Cores da Marca (detalhes, botoes*/
    --cor-background-fundo: #000000; 
    --cor-background-contraste: #000000; 
    --cor-background-video: #2D2B2E; 
    
    /* Escala de Cinza / Textos */
    --cor-preto:         #000000;
    --cor-quase-preto:   #2D2B2E;
    --cor-texto-forte:   #222222; /* Títulos */
    --cor-texto-medio:   #555555; /* Texto corrido */
    --cor-texto-fraco:   #999999; /* Legendas */
    
    /* Fundos e Estrutura */
    --cor-fundo-site:    #f4f4f4;
    --cor-branco:        #ffffff;
    --cor-borda:         #dddddd;
    
    /* Configurações */
    --fonte-principal:   'Poppins', sans-serif; /* Mude aqui para trocar no site todo */
    --largura-container: 1100px; /* Largura máxima do conteúdo */
    --sidebar-width:     120px;  /* Largura da barra lateral no PC */
}

/* --- 1. RESET E BASE --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth; /* Rolagem suave ao clicar em âncoras */
}

body { 
    font-family: var(--fonte-principal); 
    background: var(--cor-fundo-site); 
    color: #333; /* Fallback */
    color: var(--cor-texto-medio);
    
    /* PADRÃO (Mobile First): Sem margem lateral */
    padding-left: 0; 
    padding-top: 0; 
    
    width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Deixa a fonte mais bonita no Mac/Chrome */
}

/* REGRA DE ISOLAMENTO: Só aplica o espaço da sidebar no PC */
@media (min-width: 1025px) {
    body {
        padding-left: var(--sidebar-width); 
    }
}

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--cor-principal); }

img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Seleção de texto (Fica bonito quando o usuário seleciona algo) */
::selection {
    background: var(--cor-principal);
    color: #fff;
}

/* --- 2. CONTAINERS E ESTRUTURA --- */

/* Wrapper principal da página */
.default-page-container {
    padding: 80px 0; 
    min-height: 60vh; 
    background: var(--cor-branco);
    position: relative;
    z-index: 10;
}

/* Largura Padrão */
.container-width {
    width: 100%;
    max-width: var(--largura-container);
    margin: 0 auto;    
    padding: 0 40px;   
}

/* Largura Estreita (Para leitura de blog/texto) */
.container-narrow {
    max-width: 800px; 
    margin: 0 auto;
    padding: 0 20px;
}


/* --- 3. BANNER DE TOPO (PÁGINAS INTERNAS) --- */
.page-header-banner {
    background-color: var(--cor-quase-preto);
    background-size: cover;
    background-position: center;
    height: 350px;
    display: flex;
    align-items: flex-end;
    padding: 0 40px 60px 40px;
    margin-bottom: 0;
    position: relative;
}

.page-header-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    pointer-events: none; /* Permite clicar através do overlay se tiver botões */
}

.page-header-banner h1 {
    color: var(--cor-branco); 
    font-size: 42px; 
    font-weight: 700; 
    position: relative; 
    z-index: 2; 
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    margin: 0;
    line-height: 1.1;
}


/* --- 4. ESTILIZAÇÃO DO CONTEÚDO (POSTS/PAGES) --- */
.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--cor-texto-medio);
}

.entry-content p { margin-bottom: 20px; }

/* Títulos dentro do texto */
.entry-content h1, 
.entry-content h2, 
.entry-content h3,
.entry-content h4 {
    color: var(--cor-principal); /* Usa a variável aqui! */
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.entry-content h2 { font-size: 28px; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; }
.entry-content h3 { font-size: 24px; }
.entry-content h4 { font-size: 20px; color: var(--cor-texto-forte); } /* H4 geralmente preto/escuro */

/* Listas */
.entry-content ul, 
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
    color: var(--cor-texto-medio);
}
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 10px; }

/* Imagens no post */
.entry-content img {
    border-radius: 6px;
    margin: 30px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: auto;
}

/* Citações */
.entry-content blockquote {
    border-left: 5px solid var(--cor-principal);
    background: #f9f9f9;
    padding: 20px 30px;
    margin: 30px 0;
    font-style: italic;
    color: var(--cor-texto-medio);
    border-radius: 0 4px 4px 0;
}

/* Links dentro do texto */
.entry-content a {
    color: var(--cor-principal);
    text-decoration: underline;
    font-weight: 600;
}
.entry-content a:hover {
    color: var(--cor-principal-hover);
    text-decoration: none;
}

/* --- 5. COMPONENTES DIVERSOS --- */
.not-found-box {
    text-align: center;
    padding: 80px 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid var(--cor-borda);
    color: var(--cor-texto-fraco);
}

/* ==========================================================================
   CORREÇÃO DE LAYOUT - SIDEBAR FIXA (PC)
   Arquivo: /assets/css/pc/global.css
   ========================================================================== */

@media (min-width: 1025px) {
    
    /* Empurra todo o conteúdo do site para a direita para dar espaço à Sidebar */
    body {
        padding-left: 185px; /* Mesma largura definida no max-width da .site-sidebar */
        box-sizing: border-box; /* Garante que o padding não estoure a largura total */
    }

    /* Opcional: Se o Header for fixo e estiver cobrindo a sidebar ou vice-versa */
    /* Se o seu cabeçalho (menu superior) for full-width (100%), mantenha como está.
       Se ele tiver que começar DEPOIS da sidebar, adicione isto: */
    /* .site-header {
        left: 185px;
        width: calc(100% - 185px);
    }
    */

    /* Garante que o rodapé também respeite esse espaço */
    .site-footer {
        width: 100%;
        box-sizing: border-box;
    }
}
