/*
Theme Name: Pega Promocao 29
Author: PegaPromoção
Author URI: https://gemini.google.com/
Description: Tema para o site Pega Promocao
Version: 2.5.0.2
*/
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);
}

.sticky-sub-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* 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 */
}

/* --- Floating Share Button Styles (from single-post.php) --- */
.share-icon-float {
    --icon-size: 32px;
    /* Even smaller for mobile */
    --share-distance: 50px;
    /* Adjusted for smaller icons */
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--icon-size);
    height: var(--icon-size);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 14px;
    /* Even smaller font size for mobile */
    position: absolute;
    top: 50%;
    left: 50%;
    margin: calc(-1 * var(--icon-size) / 2);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    transform: scale(0);
    z-index: 10;
}

@media (min-width: 768px) {
    .share-icon-float {
        --icon-size: 36px;
        --share-distance: 75px;
        font-size: 22px;
    }
}

#share-container-float.active .share-icon-float:nth-child(1) {
    transform: translateX(calc(-1 * var(--share-distance)));
}

#share-container-float.active .share-icon-float:nth-child(2) {
    transform: translateX(calc(-2 * var(--share-distance)));
}

#share-container-float.active .share-icon-float:nth-child(3) {
    transform: translateX(calc(-3 * var(--share-distance)));
}

#share-container-float.active .share-icon-float:nth-child(4) {
    transform: translateX(calc(-4 * var(--share-distance)));
}