/*!
 * Celebix News — Visual moderno (v2.2.29)
 * Junta o site ao visual do link na bio: títulos de seção iguais em todo
 * lugar, barra lateral limpa, busca da barra lateral no padrão do site,
 * selo "Últimas notícias" consertado no celular e cards com resposta ao
 * passar o mouse. Carrega por último, depois do celebix-global.css.
 */

/* =====================================================================
   [1] TÍTULOS DE SEÇÃO — um estilo só no site todo
   (Posts em destaque, Você pode ter perdido, Notícias relacionadas e
   os títulos da barra lateral). Mesmo padrão de "Tudo sobre
   celebridades": Oswald forte, à esquerda, tracinho vermelho embaixo.
   ===================================================================== */
body .af-title-subtitle-wrap .widget-title,
body .widget .widget-title {
  display: block !important;
  flex-direction: initial !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
  text-align: left !important;
  background: none !important;
  border: 0 !important;
}

body .af-title-subtitle-wrap .widget-title .heading-line-before,
body .af-title-subtitle-wrap .widget-title .heading-line-after,
body .af-title-subtitle-wrap .widget-title .sub-heading-line,
body .widget .widget-title .heading-line-before,
body .widget .widget-title .heading-line-after,
body .widget .widget-title .sub-heading-line {
  display: none !important;
}

body .af-title-subtitle-wrap .widget-title .heading-line,
body .widget .widget-title .heading-line,
body .widget .wp-block-heading,
body .widget .wp-block-search__label {
  position: relative !important;
  display: inline-block !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 0 10px !important;
  background: none !important;
  border: 0 !important;
  color: #111 !important;
  font-family: 'Oswald', 'Barlow Condensed', Arial, sans-serif !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  line-height: 1.15 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
}

body .af-title-subtitle-wrap .widget-title .heading-line::before,
body .widget .widget-title .heading-line::before,
body .widget .wp-block-heading::before,
body .widget .wp-block-search__label::before {
  display: none !important;
}

body .af-title-subtitle-wrap .widget-title .heading-line::after,
body .widget .widget-title .heading-line::after,
body .widget .wp-block-heading::after,
body .widget .wp-block-search__label::after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 0 !important;
  display: block !important;
  width: 36px !important;
  height: 4px !important;
  border-radius: 2px !important;
  background-color: #e50914 !important;
}

@media (max-width: 767px) {
  body .af-title-subtitle-wrap .widget-title .heading-line,
  body .widget .widget-title .heading-line,
  body .widget .wp-block-heading,
  body .widget .wp-block-search__label {
    font-size: 20px !important;
  }
}

/* =====================================================================
   [2] BARRA LATERAL — sem as faixas de fundo do tema-base
   ===================================================================== */
body .widget.widget_block,
body .widget .wp-block-group {
  border: 0 !important;
  background: none !important;
}

/* Lista de "Posts recentes" com cara de manchete */
body .widget .wp-block-latest-posts li {
  padding: 12px 0 !important;
  border-bottom: 1px solid #eee !important;
  margin: 0 !important;
}

body .widget .wp-block-latest-posts li:last-child {
  border-bottom: 0 !important;
}

body .widget .wp-block-latest-posts__post-title {
  color: #111 !important;
  font-family: 'Oswald', Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 17px !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
}

/* Lista de categorias: pílulas cinza (padrão de botões do site) */
body .widget .wp-block-categories-list,
body .widget_categories ul {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  padding: 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

body .widget .wp-block-categories-list li,
body .widget_categories ul li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

body .widget .wp-block-categories-list li::before,
body .widget_categories ul li::before {
  display: none !important;
}

body .widget .wp-block-categories-list a,
body .widget_categories ul a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  background-color: #f0f0f0 !important;
  color: #111 !important;
  font-family: 'Oswald', Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Busca da barra lateral no padrão do site */
body .widget .wp-block-search__inside-wrapper {
  display: flex !important;
  gap: 8px !important;
  padding: 0 !important;
  border: 0 !important;
}

body .widget .wp-block-search__input {
  flex: 1 !important;
  min-width: 0 !important;
  height: 46px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background-color: #f0f0f0 !important;
  color: #111 !important;
  font-size: 16px !important;
  box-shadow: none !important;
}

body .widget .wp-block-search__button {
  height: 46px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background-color: #e50914 !important;
  color: #fff !important;
  font-family: 'Oswald', Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  text-transform: none !important;
  box-shadow: none !important;
}

/* =====================================================================
   [3] "ÚLTIMAS NOTÍCIAS" NO CELULAR
   O tema-base escondia o texto do selo no celular e sobrava um
   retângulo vermelho vazio. Agora o texto aparece, compacto.
   ===================================================================== */
@media (max-width: 768px) {
  body .exclusive-posts .exclusive-now span {
    display: inline !important;
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
  }

  body .exclusive-posts .exclusive-now {
    flex-shrink: 0 !important;
    width: auto !important;
    max-width: 92px !important;
    height: auto !important;
    min-height: 30px !important;
    padding: 5px 9px !important;
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.05 !important;
  }

  body .exclusive-posts .exclusive-now span {
    white-space: normal !important;
    line-height: 1.05 !important;
  }
}

/* =====================================================================
   [4] CARDS — resposta ao passar o mouse (só computador)
   ===================================================================== */
@media (hover: hover) and (pointer: fine) {
  body .read-img,
  body .data-bg-hover,
  body .af-sec-post .read-img {
    overflow: hidden;
  }

  body .read-img img {
    transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  body .read-single:hover .read-img img,
  body .af-sec-post:hover .read-img img {
    transform: scale(1.04);
  }

  body .widget .wp-block-latest-posts__post-title:hover {
    color: #e50914 !important;
  }

  body .widget .wp-block-categories-list a:hover,
  body .widget_categories ul a:hover {
    background-color: #e50914 !important;
    color: #fff !important;
  }
}

/* =====================================================================
   [5] DETALHES
   ===================================================================== */
/* Âncoras (#) não ficam escondidas embaixo do cabeçalho fixo */
html {
  scroll-padding-top: 90px;
}

/* Seleção de texto na cor da marca */
::selection {
  background-color: rgba(229, 9, 20, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  body .read-img img {
    transition: none !important;
  }
}
