/*
Theme Name: Astra Child
Theme URI: https://ahoradavitrola.com.br/
Description: Tema filho do Astra para ajustes personalizados do site A Hora da Vitrola.
Author: PÉzÃo
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* =========================================================
   A HORA DA VITROLA — CSS PERSONALIZADO
   Tema filho Astra
   ========================================================= */


/* =========================================================
   BASE GLOBAL
   ========================================================= */

html,
body {
    background-color: #000 !important;
}


/* =========================================================
   AJUSTES GERAIS / CLASSES UTILITÁRIAS
   ========================================================= */

.margemtopodosite {
    padding-top: 320px !important;
}

.fonte-menor-do-titulo {
    padding-top: 0;
    margin-top: -40px;
}


/* =========================================================
   BARRA SUPERIOR / REDES SOCIAIS
   ========================================================= */

.ast-above-header-bar {
    border-bottom-color: rgba(255, 205, 87, 0.3) !important;
    border-top-color: transparent !important;
}

/* Mobile: remove faixa branca atrás das redes sem quebrar header */
@media (max-width: 768px) {

    .ast-above-header-bar,
    .ast-above-header-bar .site-above-header-wrap {
        background: #000 !important;
        background-color: #000 !important;
        border-bottom: none !important;
        box-shadow: none !important;
    }

    .ast-header-social-wrap,
    .ast-header-social-wrap .ast-builder-social-element {
        background: transparent !important;
        background-color: transparent !important;
    }

}


/* =========================================================
   MOBILE GERAL
   ========================================================= */

@media (max-width: 768px) {

    .alignwide {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 80px !important;
    }


    /* =====================================================
       HOME — HERO PROGRAMAS
       Texto primeiro, imagem depois no mobile
       Classe no bloco: home-hero-programas
       ===================================================== */

    .home-hero-programas.wp-block-media-text {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    .home-hero-programas .wp-block-media-text__content {
        grid-column: 1 !important;
        grid-row: 1 !important;
        padding-top: 10px !important;
        margin-top: -80px !important;
    }

    .home-hero-programas .wp-block-media-text__media {
        grid-column: 1 !important;
        grid-row: 2 !important;
        margin-top: 20px !important;
    }

    .home-hero-programas h1,
    .home-hero-programas h2 {
        font-size: 42px !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
    }


    /* =====================================================
       GALERIA MASONRY — MOBILE 1 COLUNA
       Classe no bloco: uag-masonry
       ===================================================== */

    .uag-masonry {
        column-count: 1 !important;
        columns: 1 !important;
        grid-template-columns: 1fr !important;
    }


    /* =====================================================
       BLOCO ANDRÉ GÓIS
       Texto primeiro, imagem por último no mobile
       Classe no bloco: andre-gois-mobile
       ===================================================== */

    .andre-gois-mobile {
        display: flex !important;
        flex-direction: column !important;
    }

    .andre-gois-mobile .wp-block-media-text__content {
        order: 1 !important;
        padding: 25px 20px !important;
    }

    .andre-gois-mobile .wp-block-media-text__media {
        order: 2 !important;
        margin-top: 10px !important;
    }

    .andre-gois-mobile h2 {
        font-size: 42px !important;
        line-height: 1 !important;
        margin-bottom: 20px !important;
    }

    .andre-gois-mobile p {
        font-size: 1.15rem !important;
        line-height: 1.5 !important;
    }

}


/* =========================================================
   POSTS — FUNDO PERSONALIZADO POR CATEGORIA
   ========================================================= */

/*
   Importante:
   - Desktop usa background fixo.
   - Mobile usa scroll para evitar faixa/degrau branco ao rolar.
*/

body.single-post {
    background-color: #000 !important;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Desktop */
@media (min-width: 769px) {
    body.single-post {
        background-attachment: fixed;
    }
}

/* Mobile */
@media (max-width: 768px) {

    body.single-post {
        background-attachment: scroll !important;
    }

    body.single-post,
    body.single-post .site,
    body.single-post .site-content,
    body.single-post .ast-container {
        background-color: #000 !important;
    }

}


/* Remove fundo branco estrutural dos posts */

body.single-post .site,
body.single-post .site-content,
body.single-post .ast-container {
    background: transparent !important;
}


/* Caixa escura do conteúdo do post */

body.single-post article,
body.single-post .post,
body.single-post .inside-article,
body.single-post .entry-content {
    background: rgba(0, 0, 0, 0.78) !important;
    border-radius: 12px;
    color: #ffffff !important;
    padding: 20px;
}


/* Textos claros nos posts */

body.single-post h1,
body.single-post h2,
body.single-post h3,
body.single-post p,
body.single-post li,
body.single-post span {
    color: #ffffff !important;
}


/* =========================================================
   POSTS — FUNDOS POR CATEGORIA
   ========================================================= */

/* Categoria Drops */

body.single-post:has(article.category-drops) {
    background-image: url('https://ahoradavitrola.com.br/wp-content/uploads/2026/05/bg4.jpg');
}


/* Categoria Programas */

body.single-post:has(article.category-programas) {
    background-image: url('https://ahoradavitrola.com.br/wp-content/uploads/2026/05/programas-bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 20px;
}

/* Mobile — Programas: evita degrau/faixa branca no topo */
@media (max-width: 768px) {
    body.single-post:has(article.category-programas) {
        background-position: center top !important;
        background-attachment: scroll !important;
    }
}


/* Categoria Nesta Data */

body.single-post:has(article.category-nesta-data) {
    background-image: url('https://ahoradavitrola.com.br/wp-content/uploads/2026/05/nesta-data-bg.jpg');
}


/* Categoria Podcast */

body.single-post:has(article.category-podcasts) {
    background-image: url('https://ahoradavitrola.com.br/wp-content/uploads/2026/05/Untitled-1.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 20px;
}

@media (max-width: 768px) {
    body.single-post:has(article.category-podcasts) {
        background-position: center top !important;
        background-attachment: scroll !important;
    }
}


/* =========================================================
   POSTS — NAVEGAÇÃO E HEADER
   ========================================================= */

/* Remove navegação anterior/próximo */

.post-navigation,
.navigation.post-navigation,
.ast-post-navigation {
    display: none !important;
}


/* Logo dos posts individuais - igual à página Programas */

body.single-post .site-logo-img .custom-logo {
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
}

/* Mobile */
@media (max-width: 768px) {
    body.single-post .site-logo-img .custom-logo {
        width: 145px !important;
        max-width: 145px !important;
    }
}


/* Header dos posts - igual à página Programas */

body.single-post .ast-builder-grid-row-container,
body.single-post .site-header-primary-section-left,
body.single-post .ast-primary-header-bar,
body.single-post .site-primary-header-wrap {
    min-height: 240px !important;
    height: 240px !important;
    align-items: center !important;
}


/* Ajusta altura dos itens do menu em posts */

body.single-post.ast-desktop:not(:has(.ast-header-sticked))
.ast-primary-header-bar .main-header-menu > .menu-item {
    line-height: 90px !important;
}


/* Remove sobras de espaçamento do logo/header */

body.single-post .site-branding,
body.single-post .ast-site-identity {
    padding: 0 !important;
    margin: 0 !important;
}


/* =========================================================
   PLAYER DOS PROGRAMAS
   ========================================================= */

.player-programa {
    width: 60% !important;
}

@media (max-width: 768px) {
    .player-programa {
        width: 100% !important;
    }
}


/* =========================================================
   CARROSSEL PROGRAMAS — ÍCONE NO TÍTULO
   Classe no bloco: ahdv-carrossel-icones
   ========================================================= */

.ahdv-carrossel-icones .uagb-post__title {
    position: relative !important;
    padding-left: 40px !important;
}

.ahdv-carrossel-icones .uagb-post__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 38%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background-image: url("https://ahoradavitrola.com.br/wp-content/uploads/2026/05/ICONE-PROG.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/* =========================================================
   LIGHTBOX — VISUAL ESCURO CINEMATOGRÁFICO
   ========================================================= */

dialog.wp-lightbox-overlay,
.wp-lightbox-overlay,
.wp-lightbox-overlay::backdrop {
    background: rgba(0, 0, 0, 0.55) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

.wp-lightbox-container,
.wp-lightbox-overlay .scrim {
    background: transparent !important;
}

.wp-lightbox-overlay img {
    background: transparent !important;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.45) !important;
}

.wp-lightbox-overlay *,
.wp-lightbox-container *,
.wp-lightbox-overlay *::before,
.wp-lightbox-overlay *::after {
    background-color: transparent;
}

.wp-lightbox-overlay button {
    color: #ffffff !important;
}

.wp-lightbox-overlay {
    transition: all 0.3s ease;
}

/* ===== POSTS INDIVIDUAIS — PROGRAMAS E PODCASTS IGUAIS ===== */

/* Fundo dos Programas */
body.single-post:has(article.category-programas) {
    background-image:
        linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.35)),
        url("https://ahoradavitrola.com.br/wp-content/uploads/2026/05/programas-bg.jpg") !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

/* Fundo dos Podcasts */
body.single-post:has(article.category-podcasts) {
    background-image:
        linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.35)),
        url("https://ahoradavitrola.com.br/wp-content/uploads/2026/05/Untitled-1.jpg") !important;
    background-size: cover !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
}

/* Igualar caixa preta dos posts */
body.single-post:has(article.category-programas) article,
body.single-post:has(article.category-podcasts) article {
    background: rgba(0, 0, 0, 0.72) !important;
    border-radius: 0 !important;
    padding: 40px !important;
    box-shadow: none !important;
}

/* Evita caixa preta duplicada dentro do conteúdo */
body.single-post:has(article.category-programas) .entry-content,
body.single-post:has(article.category-podcasts) .entry-content {
    background: transparent !important;
    padding: 0 !important;
}

/* Podcasts: esconde data e barra, mantém botão */
body.single-post:has(article.category-podcasts) .entry-meta .posted-on {
    display: none !important;
}

body.single-post:has(article.category-podcasts) .entry-meta {
    font-size: 0 !important;
}

body.single-post:has(article.category-podcasts) .entry-meta .ast-terms-link,
body.single-post:has(article.category-podcasts) .entry-meta .ast-terms-link a {
    font-size: 14px !important;
}