/*
Theme Name: Pega Promocao 30
Author: PegaPromoção
Author URI: https://gemini.google.com/
Description: Tema para o site Pega Promocao
Version: 29.135
*/

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fff5f5;
    /* Fundo levemente avermelhado bem suave */
}

/* Esconde os chips de intenção de busca e links automáticos do AdSense */


.ads {
    width: 100%;
    margin: 10px;
    text-align: center;
    display: block;
}

.gradient-header {
    background: linear-gradient(90deg, #991b1b 0%, #dc2626 100%);
}

.card-hover:hover {
    transform: translateY(-4px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Estilos do Carrossel */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    height: 280px;
    /* Mobile height */
}

@media (min-width: 768px) {

    /* Adjust for desktop */
    .carousel-container {
        height: 500px;
        /* Desktop height */
    }
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: flex-end;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 10;
}

/* AJUSTE DE LEGIBILIDADE: Imagem mais escura (0.5) */
.carousel-slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Position the image at the top */
    z-index: 1;
    filter: brightness(0.50);
}

/* AJUSTE DE LEGIBILIDADE: Gradiente mais forte e alto */
.carousel-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 1.5rem 2.5rem;
    /* Mobile padding */
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.1) 80%, transparent 100%);
}

@media (min-width: 768px) {

    /* Adjust for desktop */
    .carousel-content {
        padding: 3rem 2.5rem;
        /* Desktop padding */
    }
}

.ads {
    display: block;
    margin: 0 auto;
    /* Centraliza o bloco horizontalmente */
    text-align: center;
    /* Centraliza o conteúdo (como iframes de anúncios) dentro do bloco */
}

/* Blindagem de Contêineres AdSense - Pega Promoção */

/* 1. Alvo nos blocos manuais para evitar saltos de layout (CLS) */
.adsbygoogle {
    display: block !important;
    overflow: hidden !important;
    /* Resolve o aviso do console sobre overflow */
    margin: 25px auto !important;
    /* Garante distância de botões para evitar punição por clique acidental */
    background-color: #fafafa;
    /* Cor de fundo leve enquanto o anúncio carrega */
    transition: all 0.3s ease-in-out;
}

/* 2. Definindo alturas mínimas seguras para o leilão (Mobile e Desktop) */
/* Isso reserva o espaço e evita que a página "pule" quando o banner aparece */

/* Banner de Topo (N-Artigo-0) */
ins[data-ad-slot="8140182034"] {
    min-height: 250px;
    max-height: 300px;
}

/* Banner de Meio de Artigo (Geral) */
ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
    /* Esconde o espaço se o Google não tiver anúncio para mostrar */
}

/* Ajustes para Mobile (Telas menores que 768px) */
@media screen and (max-width: 768px) {
    .adsbygoogle {
        margin: 15px auto !important;
        min-height: 100px;
        /* Altura mínima comum para banners mobile */
    }

    /* Força o banner de topo a não empurrar o conteúdo principal no mobile */
    ins[data-ad-slot="8140182034"] {
        min-height: 250px;
    }
}
/* Fix de contraste para botao de cookie */
.pegaconsent-btn-primary { background-color: #0f172a !important; color: #ffffff !important; }

/* Scrollbar customizada para feed de dicas */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* AdSense no Desktop */
@media screen and (min-width: 768px) {
    .adsbygoogle {
        min-height: 250px;
        width: 100%;
    }
}

/* ===================================================================
   ENTRY-CONTENT: Tipografia padrão para conteúdo gerado pelo WP
   Substitui os seletores [&_...] Tailwind duplicados em 5+ arquivos.
   specificity: .entry-content X = (0,1,1) — sobrepõe utilitários no elemento
   =================================================================== */

.entry-content p {
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.entry-content h2 {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 900;
    color: #0f172a;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.entry-content h3 {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.entry-content h4 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.entry-content ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.entry-content ul > li + li {
    margin-top: 0.5rem;
}

.entry-content ol {
    list-style-type: decimal;
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.entry-content ol > li + li {
    margin-top: 0.5rem;
}

.entry-content li {
    padding-left: 0.25rem;
    line-height: 1.75;
}

.entry-content blockquote {
    border-left: 4px solid #ef4444;
    padding-left: 1rem;
    font-style: italic;
    margin: 1.5rem 0;
    color: #4b5563;
}

.entry-content a {
    color: #dc2626;
    text-decoration: underline;
    font-weight: 600;
}

.entry-content a:hover {
    color: #991b1b;
}

.entry-content img {
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.entry-content strong,
.entry-content b {
    font-weight: 700;
}

.entry-content em {
    font-style: italic;
}

.entry-content figure {
    margin: 1.5rem 0;
}

.entry-content figure img {
    margin-top: 0;
}

.entry-content figure figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
}

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.entry-content th {
    background-color: #f8fafc;
    font-weight: 700;
}

.entry-content pre {
    background-color: #1e293b;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.entry-content code {
    background-color: #f1f5f9;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.entry-content pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

.entry-content hr {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 2rem 0;
}

/* Dicas chat: max-height 400px no mobile, 650px no desktop */
.dicas-chat-aside {
    max-height: 400px;
}
@media (min-width: 1024px) {
    .dicas-chat-aside {
        max-height: 650px;
    }
}
