/*
Theme Name: RedencaoNews
Theme URI: https://example.com/
Author: RedencaoNews
Author URI: https://example.com/
Description: Tema WordPress do portal RedencaoNews migrado do projeto React lovable-news-hub, usando Tailwind CSS.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: redencaonews
*/

/*
 * Ajustes finos do tema. Cores principais vêm do Tailwind (header.php).
 */
body {
  font-family: Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Tipografia do conteúdo do post ("matéria") */
.prose p {
  margin: 0 0 1.5rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.prose a {
  color: #0b5cad;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose blockquote {
  margin: 2rem 0;
  padding: 0 0 0 1.25rem;
  border-left: 4px solid #0b5cad;
  font-size: 1.25rem;
  font-weight: 500;
}

.prose blockquote p {
  margin: 0;
}

.prose ul,
.prose ol {
  margin: 1.25rem 0 1.5rem 1.25rem;
  padding: 0;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin: 0.5rem 0;
}

.prose h2,
.prose h3 {
  margin: 2rem 0 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.prose h2 {
  font-size: 1.5rem;
}

.prose h3 {
  font-size: 1.25rem;
}

.prose hr {
  border: none;
  border-top: 1px solid #e3e3e3;
  margin: 2rem 0;
}

.prose img {
  height: auto;
  max-width: 100%;
}

.prose figcaption,
.prose .wp-caption-text {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #5c5c5c;
}

.prose code {
  background: #f4f4f4;
  padding: 0.1rem 0.3rem;
}

.prose pre {
  background: #f4f4f4;
  padding: 1rem;
  overflow-x: auto;
}

/* Paginação nativa (the_posts_pagination) */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid #e3e3e3;
  font-weight: 700;
  font-size: 0.875rem;
}

.nav-links .page-numbers.current,
.nav-links a.page-numbers:hover {
  background: #0b5cad;
  border-color: #0b5cad;
  color: #fff;
}

/* Containers de anúncios dentro da matéria */
.redencaonews-ad-wrapper {
  margin: 2rem 0;
}

.redencaonews-ad-inline {
  margin: 2.25rem 0;
  width: 100%;
  display: flex;
  justify-content: center;
}

.redencaonews-ad-wrapper,
.redencaonews-ad-inline {
  overflow-x: hidden;
}

.redencaonews-ad-wrapper > *,
.redencaonews-ad-inline > * {
  width: 100%;
}


/* Gerenciador de anúncios (inc/ads.php) */
.rn-ad {
  margin-left: auto;
  margin-right: auto;
}

.rn-ad-label {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5c5c5c;
  text-align: center;
}

/* Slides: todos no mesmo espaço (altura do maior), só o ativo visível. */
.rn-ad-slides {
  display: grid;
}

.rn-ad-slide {
  grid-area: 1 / 1;
}

.rn-ad-slide:not(.is-active) {
  visibility: hidden;
}

.rn-ad-media img,
.rn-ad-media video {
  margin: 0;
}

.rn-ad-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: #ffffff;
  border-top: 1px solid #e3e3e3;
}

body.rn-ad-bar-open {
  padding-bottom: 6rem;
}

.rn-ad-popup {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  /* Overlay escuro: única exceção a fundos translúcidos, como o gradiente sobre foto. */
  background: rgba(0, 0, 0, 0.75);
}

.rn-ad-popup.hidden {
  display: none;
}

.rn-ad-popup-box {
  width: 100%;
  max-width: 40rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

html.rn-ad-popup-open {
  overflow: hidden;
}
