* {
    box-sizing: border-box; /* Faz o padding ficar DENTRO da largura, não fora */
}
/* Arquivo: style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700;900&display=swap');

:root {
    --pink-hot: #ff007f;
    --roxo-vibe: #6a0dad;
    --amarelo-neon: #ffea00;
    --fundo: #f4f4f9;
    --texto: #333;
}

body { font-family: 'Poppins', sans-serif; background-color: var(--fundo); margin: 0; padding: 0; color: var(--texto); }
a { text-decoration: none; color: inherit; }

/* --- TOPO E NAVEGAÇÃO --- */
.top-bar {
    background: linear-gradient(to right, #FFD700 0%, #f10a91 100%);
    height: auto; /* Deixa a altura automática */
    padding: 15px 0;
    position: sticky; /* Menu fixa no topo */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2); /* Uma sombra leve pra destacar */
    border-bottom: 2px solid #000;
}

.nav-container a, 
.menu-cats li a {
    color: #000 !important; /* Força a cor preta */
    text-shadow: none; /* Remove sombras antigas se tiver */
    font-weight: 800; /* Deixa a letra mais grossa */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Efeito ao passar o mouse nos links */
.nav-container a:hover, 
.menu-cats li a:hover {
    color: #fff !important; /* Fica branco quando passa o mouse */
    opacity: 1;
}

/* Ícones (Casinha, Lupa) também pretos */
.nav-container i, 
.search-box button i {
    color: #000 !important;
}

.logo { color: #fff; font-size: 1.8rem; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.logo span { color: var(--amarelo-neon); }

.menu-cats { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.menu-cats a { color: #fff; font-weight: bold; font-size: 0.9rem; text-transform: uppercase; transition: 0.3s; }
.menu-cats a:hover { color: var(--amarelo-neon); }

.search-box { display: flex; background: #fff; border-radius: 20px; padding: 5px 10px; }
.search-box input { border: none; outline: none; padding: 5px; width: 150px; }
.search-box button { background: none; border: none; cursor: pointer; color: var(--roxo-vibe); font-weight: bold; }

/* --- GRID DE DESTAQUES (MOSAICO) --- */
.hero-section { max-width: 1200px; margin: 2rem auto; padding: 0 20px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; /* Esquerda(pequeno) Meio(Grande) Direita(pequeno) */
    grid-template-rows: 200px 200px; /* Duas linhas de altura fixa */
    gap: 15px;
}

/* O item do meio ocupa 2 linhas */
.hero-item.main { grid-column: 2; grid-row: 1 / span 2; }
.hero-item.side-left { grid-column: 1; }
.hero-item.side-right { grid-column: 3; }

.hero-card {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-card img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.hero-card:hover img { transform: scale(1.1); }

.hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 20px;
    color: #fff;
}

.hero-tag { background: var(--pink-hot); color: #fff; padding: 3px 8px; font-size: 0.7rem; font-weight: bold; border-radius: 3px; text-transform: uppercase; }
.hero-title { margin: 5px 0 0; font-size: 1rem; line-height: 1.3; }
.hero-item.main .hero-title { font-size: 2rem; font-weight: 900; } /* Título maior no centro */

/* --- SEÇÕES POR CATEGORIA --- */
.cat-section { max-width: 1200px; margin: 3rem auto; padding: 0 20px; }
.section-title { 
    border-left: 5px solid var(--amarelo-neon); 
    padding-left: 15px; 
    font-size: 1.8rem; 
    color: var(--roxo-vibe); 
    margin-bottom: 20px; 
    text-transform: uppercase; 
    font-weight: 900;
}

.grid-padrao {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.card-padrao { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: 0.3s; }
.card-padrao:hover { transform: translateY(-5px); }
.card-padrao img { width: 100%; height: 150px; object-fit: cover; }
.card-body { padding: 15px; }
.card-body h3 { font-size: 1.1rem; color: var(--pink-hot); margin: 0 0 10px; }
.data { font-size: 0.8rem; color: #999; }

/* RESPONSIVO (Celular) */
@media (max-width: 768px) {
    .nav-container { flex-direction: column; gap: 10px; }
    .menu-cats { flex-wrap: wrap; justify-content: center; }
    
    .hero-grid {
        grid-template-columns: 1fr; /* Tudo em 1 coluna */
        grid-template-rows: auto;
    }
    .hero-item.main { grid-column: 1; grid-row: auto; height: 300px; }
}

/* --- SEÇÃO REELS INSTAGRAM (REFINADO) --- */
.reels-section {
    margin: 1rem auto;
    max-width: 1200px;
    margin: 2rem auto; /* Margem reduzida */
    padding: 0 20px;
    position: relative;
}

.reels-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #E1306C;
}

.reels-header i {
    font-size: 1.8rem;
}

.reels-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden; /* Evita rolagem vertical indesejada */
    scroll-behavior: smooth;
    padding: 10px 5px 20px 5px; /* Espaço para a sombra não cortar */
    
    /* Esconde barra de rolagem */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.reels-container::-webkit-scrollbar {
    display: none;
}

.reel-card {
    /* O segredo: Fixar a largura padrão do Instagram e deixar a altura fluida */
    min-width: 326px; 
    max-width: 326px;
    background: #fff;
    border-radius: 12px;
    /* Removemos o overflow hidden radical para não cortar a sombra ou cabeçalho do insta */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0; /* Remove padding interno para o vídeo colar na borda */
    border: 1px solid #eee; /* Borda sutil */
}

/* Força o iframe do Instagram a respeitar o container */
.reel-card iframe.instagram-media {
    margin: 0 !important;
    min-width: 100% !important;
    width: 100% !important;
    border: none !important;
    border-radius: 10px !important;
}

/* Botões de Navegação mais discretos */
.nav-reel {
    position: absolute;
    top: 50%; /* Centraliza na altura */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    width: 45px; height: 45px;
    border-radius: 50%;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    z-index: 20;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.nav-reel:hover { 
    background: #fff; 
    color: #E1306C; 
    transform: translateY(-50%) scale(1.1); /* Efeito de pulso */
}
.nav-left { left: -10px; }
.nav-right { right: -10px; }

/* Ajuste Responsivo para Celular */
@media (max-width: 768px) {
    .nav-reel { display: none; }
    .reels-section { padding: 0 10px; margin: 1.5rem auto; }
    .reels-container { gap: 15px; }
    
    /* No celular, podemos deixar um pouco menor usando transform */
    .reel-card { 
        min-width: 300px; 
        max-width: 300px; 
    }
}

/* --- LAYOUT DE CATEGORIA (2 COLUNAS) --- */
/* --- LAYOUT PADRÃO (2 COLUNAS: CONTEÚDO + SIDEBAR) --- */
.layout-com-sidebar {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    /* Aqui definimos: 70% para conteúdo, 30% para sidebar */
    grid-template-columns: 7fr 3fr; 
    gap: 40px;
    align-items: start; /* Impede que a sidebar estique até o fim da página */
}

/* Coluna da Esquerda (Notícias/Conteúdo) */
.coluna-principal {
    min-width: 0; /* Truque de CSS Grid para impedir estouro de layout */
    width: 100%;
}

/* Coluna da Direita (Sidebar) */
.coluna-sidebar {
    position: sticky; /* Sidebar fixa ao rolar */
    top: 20px;
}

/* Ajuste Responsivo (Celular vira 1 coluna) */
@media (max-width: 900px) {
    .layout-com-sidebar {
        grid-template-columns: 1fr; /* Uma coluna só */
    }
    .coluna-sidebar {
        position: static; /* Remove fixação no celular */
        margin-top: 40px;
    }
}

/* Responsivo: No celular vira 1 coluna */
@media (max-width: 900px) {
    .container-categoria-layout { grid-template-columns: 1fr; }
}

.titulo-cat {
    border-left: 8px solid #333;
    padding-left: 15px;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 30px;
}

/* Estilo Lista Horizontal */
.card-horizontal { margin-bottom: 25px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.05); }
.link-card { display: flex; text-decoration: none; color: inherit; align-items: center; }
.img-wrap { width: 40%; height: 180px; } /* Imagem ocupa 40% */
.img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.texto-wrap { width: 60%; padding: 20px; }
.texto-wrap h2 { margin: 0 0 10px; font-size: 1.3rem; color: var(--pink-hot); }
.texto-wrap p { font-size: 0.9rem; color: #666; margin-bottom: 10px; }

/* Responsivo do card */
@media (max-width: 600px) {
    .link-card { flex-direction: column; }
    .img-wrap, .texto-wrap { width: 100%; }
    .img-wrap { height: 200px; }
}

/* --- SIDEBAR WIDGETS --- */
.sidebar { position: sticky; top: 90px; } /* Sidebar fixa ao rolar */

.widget { margin-bottom: 40px; }
.widget-title { 
    font-size: 1.2rem; 
    border-bottom: 2px solid #ddd; 
    padding-bottom: 10px; 
    margin-bottom: 20px; 
    color: var(--roxo-vibe); 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

/* A Mais Quente */
.card-quente { position: relative; border-radius: 10px; overflow: hidden; box-shadow: 0 5px 15px rgba(255, 0, 0, 0.2); }
.card-quente img { width: 100%; height: 250px; object-fit: cover; }
.quente-info { 
    position: absolute; bottom: 0; left: 0; right: 0; 
    background: linear-gradient(to top, #000, transparent); 
    padding: 20px; color: #fff; 
}
.badge-fogo { background: #ff4500; padding: 3px 8px; border-radius: 3px; font-size: 0.8rem; font-weight: bold; }
.quente-info h4 { font-size: 1.2rem; margin: 10px 0 5px; }

/* Redes Sociais */
.social-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-social { padding: 12px; text-align: center; color: #fff; border-radius: 5px; font-weight: bold; transition: 0.3s; }
.insta { background: #E1306C; }
.face { background: #1877F2; }
.twitter { background: #000; }
.btn-social:hover { opacity: 0.9; transform: scale(1.02); }

/* TikTok */
.tiktok-container { width: 100%; overflow: hidden; border-radius: 10px; border: 1px solid #eee; }

/* Paginação */
.paginacao { margin-top: 30px; display: flex; gap: 10px; }
.btn-pag { padding: 10px 20px; background: var(--roxo-vibe); color: #fff; border-radius: 5px; font-weight: bold; }

/* --- CORREÇÃO DO LAYOUT DA NOTÍCIA --- */

/* Força a notícia a ocupar 100% da coluna esquerda */
.layout-com-sidebar .container-leitura {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none; /* Remove sombra extra se tiver */
}

.post-header h1 {
    font-size: 2.5rem; 
    line-height: 1.4; /* Aumenta a altura da linha para não cortar o 'g', 'j', 'p' */
    margin-top: 15px;
    margin-bottom: 10px;
    word-wrap: break-word; /* Quebra a palavra se for gigante */
    overflow-wrap: break-word;
    width: 100%; /* Garante que respeite a largura */
}

/* Ajuste do Texto da Matéria (Corpo) */
.post-conteudo {
    font-size: 1.1rem;
    line-height: 1.8; /* Texto mais espaçado e gostoso de ler */
    color: #444;
    width: 100%;
    overflow-x: hidden; /* Garante que nada vaze */
}

/* Garante que imagens não estourem a coluna */
.post-conteudo img, 
.post-conteudo iframe, 
.post-conteudo video {
    max-width: 100% !important; /* Força a imagem a caber na caixa */
    height: auto !important; /* Mantém a proporção */
}

/* Ajuste fino para a sidebar não cair */
.coluna-principal {
    overflow: hidden; /* Evita que elementos vazazem */
}

/* Ajuste da Logo de Imagem */
.logo img {
    display: block;
    max-height: 60px; /* Controla a altura máxima */
    width: auto;      /* Mantém a proporção */
}

/* Garante que o container alinhe tudo no centro */
.nav-container {
    display: flex;
    align-items: center; 
    gap: 30px;
}

@media (max-width: 768px) {
    .logo img {
        height: 60px !important; /* No celular volta a ser menor */
    }
    .top-bar {
        padding: 10px 0;
    }
}

/* --- FOOTER ROBUSTO (VERSÃO AMARELA) --- */
.site-footer {
    background-color: #FFD700; /* Amarelo Ouro vibrante */
    color: #333; /* Texto escuro para dar leitura */
    padding-top: 60px;
    margin-top: 50px;
    font-size: 0.95rem;
    border-top: 5px solid #000; /* Detalhe preto no topo */
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0,0,0,0.1); /* Linha divisória sutil */
}

/* Coluna Sobre */
.footer-logo {
    max-height: 80px;
    margin-bottom: 20px;
    filter: none; /* Mantém cores originais */
}
.sobre p {
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
    font-weight: 500;
}
.footer-social {
    display: flex;
    gap: 15px;
}
.footer-social a {
    background: #000; /* Ícones pretos */
    color: #FFD700;   /* Símbolo amarelo dentro */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.2rem;
}
.footer-social a:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

/* Colunas de Links */
.footer-col h3 {
    color: #000; /* Título Preto */
    margin-bottom: 20px;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    font-weight: 800;
}
.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background: #000; /* Risco preto */
}
.footer-col ul {
    list-style: none;
    padding: 0;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.footer-col ul li a:hover {
    color: #000;
    text-decoration: underline;
}

/* Barra Final */
.footer-bottom {
    background: #e6c200; /* Um amarelo um pouco mais escuro pro final */
    text-align: center;
    padding: 20px;
    color: #000;
    font-weight: bold;
}
.footer-bottom p {
    margin: 5px 0;
}

/* Responsivo */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-social {
        justify-content: center;
    }
}

/* --- SISTEMA DE COOKIES --- */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Começa escondido lá embaixo */
    left: 0;
    width: 100%;
    background-color: #000; /* Fundo Preto */
    color: #fff;
    padding: 20px;
    z-index: 9999; /* Fica acima de tudo */
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
    transition: bottom 0.5s ease-in-out; /* Efeito suave ao subir */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    border-top: 4px solid #FFD700; /* Detalhe Amarelo */
}

.cookie-banner.show {
    bottom: 0; /* Sobe para a tela */
}

.cookie-content {
    max-width: 1000px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-btn {
    background-color: #FFD700;
    color: #000;
    border: none;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: 0.2s;
}

.cookie-btn:hover {
    background-color: #fff;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================================= */
/* 📱 VERSÃO MOBILE COMPACTA (BEM MENOR)             */
/* ================================================= */

@media (max-width: 768px) {
    
    /* --- 1. HEADER E LOGO MENORES --- */
    .top-bar {
        padding: 5px 0; /* Barra mais fina */
    }
    
    .logo img {
        height: 50px !important; /* Logo bem menor (estava 100px) */
        margin-top: 0;
    }
    
    .nav-container {
        gap: 10px; /* Menos espaço entre logo e menu */
    }
    
    .nav-container a {
        font-size: 0.85rem; /* Texto "Voltar/Home" menor */
    }

    /* --- 2. TÍTULOS E TEXTOS MENORES --- */
    h1 {
        font-size: 1.4rem !important; /* Títulos grandes ficam menores */
        line-height: 1.3;
    }
    
    h2, h3 {
        font-size: 1.1rem !important;
    }
    
    p {
        font-size: 0.95rem; /* Texto corrido levemente menor */
        line-height: 1.5;
    }

    /* --- 3. ESPAÇAMENTOS REDUZIDOS --- */
    .layout-com-sidebar {
        margin-top: 15px !important;
    }

    .container-leitura {
        padding: 15px !important; /* Menos borda branca interna */
    }
    
    .post-img {
        margin-bottom: 15px !important;
    }

    /* --- 4. FOOTER COMPACTO --- */
    .site-footer {
        padding-top: 30px;
        margin-top: 30px;
        text-align: center;
    }
    
    .footer-container {
        gap: 25px; /* Menos espaço entre as colunas do rodapé */
        padding-bottom: 20px;
    }
    
    .footer-logo {
        max-height: 50px; /* Logo do rodapé menor também */
        margin-bottom: 10px;
    }
    
    .footer-col h3 {
        font-size: 1rem; /* Títulos do rodapé menores */
        margin-bottom: 10px;
    }

    /* --- 5. BANNER DE COOKIES MENOR --- */
    .cookie-banner {
        padding: 10px 15px; /* Mais fino */
        flex-direction: row; /* Tenta manter lado a lado se der */
        flex-wrap: wrap; /* Se não der, quebra */
        gap: 10px;
    }
    
    .cookie-content {
        font-size: 0.8rem; /* Letra miúda */
        text-align: left;
    }
    
    .cookie-btn {
        padding: 5px 15px;
        font-size: 0.8rem;
        width: 100%; /* Botão ocupa largura total no celular pra facilitar o clique */
    }
}