/*
Theme Name:   RedeVix Notícias
Theme URI:    https://redevix.com.br
Description:  Tema filho do Neve para o portal de notícias RedeVix — moderno, rápido, otimizado para SEO, Google Discover e Adsense.
Author:       RedeVix
Author URI:   https://redevix.com.br
Template:     neve
Version:      1.0.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  redevix
*/

/* ============================================================
   VARIÁVEIS GLOBAIS — RedeVix Design System
   ============================================================ */
:root {
  /* Paleta */
  --rv-primary:     #C1121F;
  --rv-primary-hov: #8F0D18;
  --rv-dark:        #111111;
  --rv-white:       #FFFFFF;
  --rv-gray-light:  #F5F5F5;
  --rv-gray-mid:    #E5E5E5;
  --rv-text:        #222222;
  --rv-muted:       #666666;
  --rv-border:      #E0E0E0;

  /* Tipografia */
  --rv-font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --rv-fs-h1-d:     48px;
  --rv-fs-h1-t:     36px;
  --rv-fs-h1-m:     30px;
  --rv-fs-h2:       36px;
  --rv-fs-h3:       28px;
  --rv-fs-body:     18px;
  --rv-fs-sidebar:  15px;
  --rv-fs-menu:     16px;
  --rv-fs-small:    13px;

  /* Layout */
  --rv-container:   1400px;
  --rv-content-w:   720px;
  --rv-radius:      6px;
  --rv-radius-sm:   4px;
  --rv-shadow:      0 2px 12px rgba(0,0,0,.07);
  --rv-shadow-md:   0 4px 24px rgba(0,0,0,.11);
  --rv-transition:  .2s ease;
}

/* ============================================================
   DARK MODE
   ============================================================ */
body.rv-dark {
  --rv-white:      #1a1a1a;
  --rv-gray-light: #242424;
  --rv-gray-mid:   #2e2e2e;
  --rv-text:       #f0f0f0;
  --rv-muted:      #bbbbbb;
  --rv-border:     #444444;
  --rv-dark:       #0a0a0a;
}

/* Dark mode — garantir legibilidade em todos os elementos de texto */
body.rv-dark p,
body.rv-dark h1,
body.rv-dark h2,
body.rv-dark h3,
body.rv-dark h4,
body.rv-dark h5,
body.rv-dark h6,
body.rv-dark li,
body.rv-dark span,
body.rv-dark a,
body.rv-dark .rv-post-content,
body.rv-dark .rv-card__title,
body.rv-dark .rv-card__title a,
body.rv-dark .rv-most-read__title,
body.rv-dark .rv-most-read__title a,
body.rv-dark .rv-sidebar__news-list a {
  color: #f0f0f0;
}

body.rv-dark .rv-card {
  background: #242424;
}

body.rv-dark .rv-sidebar__widget {
  background: #242424;
}

body.rv-dark .rv-post-content blockquote {
  background: #2e2e2e;
  color: #f0f0f0;
}

body.rv-dark .rv-card__meta,
body.rv-dark .rv-most-read__meta,
body.rv-dark .rv-meta {
  color: #bbbbbb;
}

body.rv-dark a:hover {
  color: var(--rv-primary);
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--rv-font);
  font-size: var(--rv-fs-body);
  color: var(--rv-text);
  background: var(--rv-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--rv-primary);
  text-decoration: none;
  transition: color var(--rv-transition);
}
a:hover { color: var(--rv-primary-hov); }

ul { list-style: none; padding: 0; margin: 0; }

/* ============================================================
   CONTAINER
   ============================================================ */
.rv-container {
  max-width: var(--rv-container);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ============================================================
   BARRA SUPERIOR
   ============================================================ */
.rv-topbar {
  background: var(--rv-dark);
  color: rgba(255,255,255,.75);
  height: 40px;
  display: flex;
  align-items: center;
  font-size: 12px;
  border-bottom: 2px solid var(--rv-primary);
}

.rv-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.rv-topbar__info {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.rv-topbar__info span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.rv-topbar__info span::before {
  content: '';
  width: 1px;
  height: 12px;
  background: rgba(255,255,255,.2);
}

.rv-topbar__info span:first-child::before { display: none; }

.rv-topbar__info .rv-highlight { color: var(--rv-primary); font-weight: 700; }

.rv-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rv-topbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--rv-radius-sm);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background var(--rv-transition), color var(--rv-transition);
  border: none;
}

.rv-topbar__btn--newsletter {
  background: var(--rv-primary);
  color: #fff;
}
.rv-topbar__btn--newsletter:hover { background: var(--rv-primary-hov); color: #fff; }

.rv-topbar__btn--anuncie {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
}
.rv-topbar__btn--anuncie:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ============================================================
   LOGO / BRANDING
   ============================================================ */
.rv-branding {
  background: var(--rv-white);
  padding: 18px 0;
  border-bottom: 1px solid var(--rv-border);
  text-align: center;
}

.rv-logo {
  display: inline-block;
  max-width: 220px;
}

.rv-logo img { max-width: 220px; margin: 0 auto; }

.rv-logo-text {
  font-size: 28px;
  font-weight: 900;
  color: var(--rv-dark);
  letter-spacing: -.02em;
  line-height: 1;
}

.rv-logo-text span { color: var(--rv-primary); }

/* ============================================================
   MENU PRINCIPAL (STICKY)
   ============================================================ */
.rv-navbar {
  background: var(--rv-dark);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}

.rv-navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

/* Nav list */
.rv-nav {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.rv-nav > li { position: relative; }

.rv-nav > li > a {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 15px;
  color: rgba(255,255,255,.88);
  font-size: var(--rv-fs-menu);
  font-weight: 600;
  transition: color var(--rv-transition), background var(--rv-transition);
  white-space: nowrap;
}

.rv-nav > li > a:hover,
.rv-nav > li.current-menu-item > a {
  color: #fff;
  background: rgba(255,255,255,.08);
}

.rv-nav > li.rv-nav__home > a {
  color: var(--rv-primary);
  font-weight: 800;
}

/* Dropdown */
.rv-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--rv-white);
  border-top: 3px solid var(--rv-primary);
  box-shadow: var(--rv-shadow-md);
  min-width: 220px;
  border-radius: 0 0 var(--rv-radius) var(--rv-radius);
  z-index: 999;
}

.rv-nav li:hover > .sub-menu { display: block; }

.rv-nav .sub-menu li a {
  display: block;
  padding: 10px 18px;
  color: var(--rv-text);
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--rv-gray-mid);
  transition: background var(--rv-transition), color var(--rv-transition), padding var(--rv-transition);
}

.rv-nav .sub-menu li:last-child a { border-bottom: none; }
.rv-nav .sub-menu li a:hover {
  background: var(--rv-gray-light);
  color: var(--rv-primary);
  padding-left: 24px;
}

/* Utilitários da navbar */
.rv-navbar__utils {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rv-navbar__search-btn,
.rv-navbar__darkmode {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.6);
  border-radius: var(--rv-radius-sm);
  color: #ffffff;
  cursor: pointer;
  transition: background var(--rv-transition), border-color var(--rv-transition);
  font-size: 22px;
  opacity: 1 !important;
}

.rv-navbar__search-btn:hover,
.rv-navbar__darkmode:hover { background: var(--rv-primary); }

/* Search expandable */
.rv-search-bar {
  display: none;
  background: rgba(255,255,255,.05);
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}

.rv-search-bar.is-open { display: block; }

.rv-search-bar__form {
  display: flex;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
}

.rv-search-bar__input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: var(--rv-radius) 0 0 var(--rv-radius);
  font-size: 15px;
  font-family: var(--rv-font);
  outline: none;
}

.rv-search-bar__submit {
  background: var(--rv-primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 0 var(--rv-radius) var(--rv-radius) 0;
  font-weight: 700;
  cursor: pointer;
  font-size: 14px;
}

/* Hambúrguer mobile */
.rv-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.rv-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all .3s ease;
  border-radius: 2px;
}

/* ============================================================
   CATEGORIA TAG (reutilizável)
   ============================================================ */
.rv-cat-tag {
  display: inline-block;
  background: var(--rv-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 10px;
  border-radius: var(--rv-radius-sm);
  line-height: 1.5;
}

.rv-cat-tag:hover { background: var(--rv-primary-hov); color: #fff; }

/* ============================================================
   HERO PRINCIPAL
   ============================================================ */
.rv-hero {
  padding: 28px 0 0;
  background: var(--rv-white);
}

.rv-hero__grid {
  display: grid;
  grid-template-columns: 70% 1fr;
  gap: 20px;
  align-items: start;
}

/* Card principal (esquerda) */
.rv-hero__main {
  position: relative;
  border-radius: var(--rv-radius);
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.rv-hero__main:hover .rv-hero__img img { transform: scale(1.03); }

.rv-hero__img {
  aspect-ratio: 16/9;
  height: 600px;
  overflow: hidden;
  position: relative;
}

.rv-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.rv-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.3) 55%, transparent 100%);
}

.rv-hero__body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 28px;
}

.rv-hero__cat { margin-bottom: 10px; }

.rv-hero__title {
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

.rv-hero__summary {
  font-size: 15px;
  color: rgba(255,255,255,.85);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cards laterais (direita) */
.rv-hero__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.rv-hero__side-card {
  position: relative;
  border-radius: var(--rv-radius);
  overflow: hidden;
  height: 290px;
  display: block;
  cursor: pointer;
}

.rv-hero__side-card:hover .rv-hero__side-img img { transform: scale(1.04); }

.rv-hero__side-img {
  width: 100%; height: 100%;
  position: absolute; inset: 0;
}

.rv-hero__side-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.rv-hero__side-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 0%, transparent 65%);
}

.rv-hero__side-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px;
}

.rv-hero__side-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-top: 8px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   ANÚNCIO — BANNER
   ============================================================ */
.rv-ad-wrap {
  position: relative;
  overflow: hidden;
  text-align: center;
  margin: 20px auto;
  width: 100%;
}

.rv-ad-wrap::before {
  content: 'Publicidade';
  display: block;
  font-size: 9px;
  color: var(--rv-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 4px;
}

.rv-ad-wrap .adsbygoogle {
  margin: 0 auto;
}

/* ============================================================
   SEÇÃO GENÉRICA (títulos de bloco)
   ============================================================ */
.rv-section { padding: 36px 0; }

.rv-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 3px solid var(--rv-primary);
  padding-bottom: 12px;
}

.rv-section__title {
  font-size: 22px;
  font-weight: 800;
  color: var(--rv-dark);
  letter-spacing: -.01em;
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rv-section__title::before {
  content: '';
  display: block;
  width: 4px;
  height: 22px;
  background: var(--rv-primary);
  border-radius: 2px;
}

.rv-section__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--rv-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.rv-section__link:hover { color: var(--rv-primary-hov); }

/* ============================================================
   CARD DE NOTÍCIA (grid / carrossel)
   ============================================================ */
.rv-card {
  background: var(--rv-white);
  border-radius: var(--rv-radius);
  overflow: hidden;
  box-shadow: var(--rv-shadow);
  transition: transform var(--rv-transition), box-shadow var(--rv-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.rv-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rv-shadow-md);
}

.rv-card__img {
  aspect-ratio: 16/9;
  overflow: hidden;
}

.rv-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.rv-card:hover .rv-card__img img { transform: scale(1.04); }

.rv-card__body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rv-card__cat { margin-bottom: 8px; }

.rv-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--rv-dark);
  line-height: 1.35;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-card__title:hover { color: var(--rv-primary); }

.rv-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--rv-muted);
  border-top: 1px solid var(--rv-border);
  padding-top: 10px;
}

/* ============================================================
   CARROSSEL
   ============================================================ */
.rv-carousel-wrap { position: relative; }

.rv-carousel {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.rv-carousel::-webkit-scrollbar { display: none; }

.rv-carousel > * { scroll-snap-align: start; min-width: 0; }

.rv-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  background: var(--rv-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  z-index: 2;
  transition: background var(--rv-transition);
  box-shadow: var(--rv-shadow-md);
}

.rv-carousel-btn:hover { background: var(--rv-primary-hov); }
.rv-carousel-btn--prev { left: -18px; }
.rv-carousel-btn--next { right: -18px; }

/* ============================================================
   CARROSSEL DE CATEGORIAS (4 visíveis)
   ============================================================ */
.rv-cat-carousel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rv-cat-carousel::-webkit-scrollbar { display: none; }
.rv-cat-carousel > * { scroll-snap-align: start; min-width: 0; }

/* ============================================================
   BLOCO MAIS LIDAS
   ============================================================ */
.rv-most-read { }

.rv-most-read__list { display: flex; flex-direction: column; gap: 0; }

.rv-most-read__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rv-border);
  transition: background var(--rv-transition);
}

.rv-most-read__item:last-child { border-bottom: none; }

.rv-most-read__num {
  font-size: 32px;
  font-weight: 900;
  color: var(--rv-gray-mid);
  line-height: 1;
  min-width: 42px;
  font-variant-numeric: tabular-nums;
  transition: color var(--rv-transition);
}

.rv-most-read__item:hover .rv-most-read__num { color: var(--rv-primary); }

.rv-most-read__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--rv-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-most-read__title:hover { color: var(--rv-primary); }

.rv-most-read__meta { font-size: 11px; color: var(--rv-muted); margin-top: 4px; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.rv-newsletter {
  background: var(--rv-dark);
  padding: 52px 0;
  margin: 40px 0;
}

.rv-newsletter__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.rv-newsletter__text { flex: 1; min-width: 260px; }

.rv-newsletter__title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.rv-newsletter__title span { color: var(--rv-primary); }

.rv-newsletter__desc { color: rgba(255,255,255,.65); font-size: 15px; }

.rv-newsletter__form {
  display: flex;
  gap: 0;
  flex: 1;
  min-width: 280px;
  max-width: 480px;
}

.rv-newsletter__input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  border-radius: var(--rv-radius) 0 0 var(--rv-radius);
  font-size: 15px;
  font-family: var(--rv-font);
  outline: none;
}

.rv-newsletter__submit {
  background: var(--rv-primary);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 0 var(--rv-radius) var(--rv-radius) 0;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--rv-transition);
  font-family: var(--rv-font);
}

.rv-newsletter__submit:hover { background: var(--rv-primary-hov); }

/* ============================================================
   FOOTER
   ============================================================ */
.rv-footer {
  background: #0d0d0d;
  color: rgba(255,255,255,.65);
  padding: 56px 0 0;
}

.rv-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.rv-footer__col-title {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rv-primary);
  display: inline-block;
}

.rv-footer__logo-text {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  display: block;
}

.rv-footer__logo-text span { color: var(--rv-primary); }

.rv-footer__desc {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.rv-footer__links li { margin-bottom: 8px; }

.rv-footer__links a {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--rv-transition), padding-left var(--rv-transition);
}

.rv-footer__links a:hover { color: var(--rv-primary); padding-left: 4px; }

/* Redes sociais */
.rv-footer__social {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rv-footer__social a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.65);
  font-size: 13px;
  padding: 8px 12px;
  border-radius: var(--rv-radius-sm);
  background: rgba(255,255,255,.05);
  transition: background var(--rv-transition), color var(--rv-transition);
}

.rv-footer__social a:hover { color: #fff; }
.rv-footer__social a[data-net="facebook"]:hover  { background: #1877F2; }
.rv-footer__social a[data-net="instagram"]:hover { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); }
.rv-footer__social a[data-net="twitter"]:hover   { background: #000; }
.rv-footer__social a[data-net="youtube"]:hover   { background: #FF0000; }
.rv-footer__social a[data-net="whatsapp"]:hover  { background: #25D366; }

.rv-footer__social-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  font-size: 13px;
  flex-shrink: 0;
}

/* Rodapé inferior */
.rv-footer__bar {
  background: #080808;
  text-align: center;
  padding: 16px 20px;
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

.rv-footer__bar a { color: var(--rv-primary); }

/* ============================================================
   SINGLE POST — HEADER
   ============================================================ */
.rv-single-header {
  background: var(--rv-white);
  padding: 32px 0 0;
}

/* Breadcrumb */
.rv-breadcrumb {
  font-size: 13px;
  color: var(--rv-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.rv-breadcrumb a { color: var(--rv-muted); }
.rv-breadcrumb a:hover { color: var(--rv-primary); }
.rv-breadcrumb__sep { opacity: .4; }
.rv-breadcrumb__current { color: var(--rv-text); font-weight: 600; }

/* Título H1 */
.rv-single-title {
  font-size: var(--rv-fs-h1-d);
  font-weight: 900;
  color: var(--rv-dark);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 20px;
  max-width: 860px;
}

/* Metadados */
.rv-single-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--rv-muted);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rv-border);
}

.rv-single-meta__author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--rv-text);
}

.rv-single-meta__author img {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.rv-single-meta span { display: flex; align-items: center; gap: 4px; }

.rv-single-meta__views { color: var(--rv-primary); font-weight: 700; }

/* Imagem destacada */
.rv-single-featured {
  width: 100%;
  border-radius: var(--rv-radius);
  overflow: hidden;
  margin-bottom: 0;
}

.rv-single-featured img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.rv-single-featured figcaption {
  font-size: 12px;
  color: var(--rv-muted);
  padding: 8px 0;
  font-style: italic;
}

/* ============================================================
   LAYOUT SINGLE — 70/30
   ============================================================ */
.rv-single-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  padding: 36px 0 60px;
  align-items: start;
}

/* ============================================================
   CONTEÚDO DO POST
   ============================================================ */
.rv-post-content {
  font-size: var(--rv-fs-body);
  line-height: 1.8;
  color: var(--rv-text);
  max-width: var(--rv-content-w);
}

.rv-post-content p { margin-bottom: 1.6em; }
.rv-post-content h2 { font-size: var(--rv-fs-h2); font-weight: 800; margin: 2em 0 .8em; color: var(--rv-dark); }
.rv-post-content h3 { font-size: var(--rv-fs-h3); font-weight: 700; margin: 1.6em 0 .6em; color: var(--rv-dark); }

.rv-post-content blockquote {
  border-left: 4px solid var(--rv-primary);
  margin: 2em 0;
  padding: 16px 24px;
  background: var(--rv-gray-light);
  border-radius: 0 var(--rv-radius) var(--rv-radius) 0;
  font-size: 1.05em;
  color: var(--rv-text);
  font-style: italic;
}

.rv-post-content ul,
.rv-post-content ol {
  padding-left: 24px;
  margin-bottom: 1.5em;
  list-style: disc;
}

.rv-post-content ol { list-style: decimal; }

.rv-post-content li { margin-bottom: .5em; }

.rv-post-content a { color: var(--rv-primary); text-decoration: underline; text-underline-offset: 3px; }

.rv-post-content figure { margin: 2em 0; }

.rv-post-content img { border-radius: var(--rv-radius); }

.rv-post-content pre {
  background: var(--rv-dark);
  color: #e2e8f0;
  padding: 20px 24px;
  border-radius: var(--rv-radius);
  overflow-x: auto;
  font-size: 14px;
  margin-bottom: 1.5em;
}

/* Tags do post */
.rv-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0;
  padding-top: 24px;
  border-top: 1px solid var(--rv-border);
}

.rv-post-tag {
  display: inline-block;
  padding: 5px 14px;
  background: var(--rv-gray-light);
  border: 1px solid var(--rv-border);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rv-text);
  transition: background var(--rv-transition), color var(--rv-transition), border-color var(--rv-transition);
}

.rv-post-tag:hover {
  background: var(--rv-primary);
  color: #fff;
  border-color: var(--rv-primary);
}

/* Compartilhamento flutuante */
.rv-share-float {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 100;
}

.rv-share-float a,
.rv-share-float button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #fff;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: transform var(--rv-transition), box-shadow var(--rv-transition);
  box-shadow: var(--rv-shadow);
}

.rv-share-float a:hover,
.rv-share-float button:hover { transform: scale(1.1); box-shadow: var(--rv-shadow-md); }

.rv-share-float .rv-share--fb       { background: #1877F2; }
.rv-share-float .rv-share--tw       { background: #000; }
.rv-share-float .rv-share--wa       { background: #25D366; }
.rv-share-float .rv-share--tg       { background: #0088cc; }
.rv-share-float .rv-share--li       { background: #0A66C2; }
.rv-share-float .rv-share--copy     { background: var(--rv-primary); }

/* Box autor */
.rv-author-box {
  background: var(--rv-gray-light);
  border-radius: var(--rv-radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 40px 0;
}

.rv-author-box img {
  width: 80px; height: 80px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--rv-primary);
}

.rv-author-box__name { font-size: 17px; font-weight: 800; color: var(--rv-dark); margin-bottom: 6px; }
.rv-author-box__role { font-size: 12px; color: var(--rv-primary); text-transform: uppercase; font-weight: 700; letter-spacing: .05em; margin-bottom: 10px; }
.rv-author-box__bio  { font-size: 14px; color: var(--rv-muted); line-height: 1.6; }

/* Navegação anterior / próximo */
.rv-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 40px 0;
}

.rv-post-nav a {
  background: var(--rv-white);
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius);
  padding: 18px;
  display: block;
  color: var(--rv-text);
  transition: border-color var(--rv-transition), transform var(--rv-transition);
}

.rv-post-nav a:hover { border-color: var(--rv-primary); transform: translateY(-2px); }

.rv-post-nav__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--rv-primary);
  font-weight: 700;
  margin-bottom: 6px;
}

.rv-post-nav__title { font-size: 14px; font-weight: 700; line-height: 1.35; }

/* ============================================================
   RELACIONADAS
   ============================================================ */
.rv-related { margin: 48px 0; }

.rv-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.rv-sidebar { position: sticky; top: 70px; }

.rv-sidebar__widget {
  background: var(--rv-white);
  border-radius: var(--rv-radius);
  box-shadow: var(--rv-shadow);
  padding: 20px;
  margin-bottom: 24px;
  border-top: 3px solid var(--rv-primary);
}

.rv-sidebar__title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--rv-dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rv-border);
}

/* Search widget */
.rv-sidebar__search {
  display: flex;
  gap: 0;
}

.rv-sidebar__search input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius) 0 0 var(--rv-radius);
  font-size: 14px;
  font-family: var(--rv-font);
  outline: none;
  border-right: none;
}

.rv-sidebar__search input:focus { border-color: var(--rv-primary); }

.rv-sidebar__search button {
  background: var(--rv-primary);
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 0 var(--rv-radius) var(--rv-radius) 0;
  cursor: pointer;
}

/* Mercado financeiro */
.rv-market-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rv-market-item {
  background: var(--rv-gray-light);
  border-radius: var(--rv-radius-sm);
  padding: 10px 12px;
  text-align: center;
}

.rv-market-item__label { font-size: 11px; color: var(--rv-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.rv-market-item__value { font-size: 18px; font-weight: 900; color: var(--rv-dark); line-height: 1.2; }
.rv-market-item__change { font-size: 11px; font-weight: 700; }
.rv-market-item__change.up   { color: #16a34a; }
.rv-market-item__change.down { color: var(--rv-primary); }

/* Lista simples de notícias na sidebar */
.rv-sidebar__news-list li {
  border-bottom: 1px solid var(--rv-border);
  padding: 10px 0;
}

.rv-sidebar__news-list li:last-child { border-bottom: none; }

.rv-sidebar__news-list a {
  font-size: var(--rv-fs-sidebar);
  font-weight: 600;
  color: var(--rv-text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rv-sidebar__news-list a:hover { color: var(--rv-primary); }

.rv-sidebar__news-list .rv-meta { font-size: 11px; color: var(--rv-muted); margin-top: 4px; }

/* Horóscopo */
.rv-horoscope-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.rv-horoscope-item {
  text-align: center;
  padding: 8px 4px;
  border-radius: var(--rv-radius-sm);
  background: var(--rv-gray-light);
  cursor: pointer;
  transition: background var(--rv-transition);
  font-size: 11px;
  font-weight: 600;
  color: var(--rv-text);
}

.rv-horoscope-item:hover { background: var(--rv-primary); color: #fff; }

.rv-horoscope-item__icon { font-size: 20px; display: block; margin-bottom: 3px; }

/* Tag cloud */
.rv-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.rv-tag-cloud a {
  display: inline-block;
  padding: 4px 10px;
  background: var(--rv-gray-light);
  border: 1px solid var(--rv-border);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--rv-text);
  transition: all var(--rv-transition);
}

.rv-tag-cloud a:hover {
  background: var(--rv-primary);
  color: #fff;
  border-color: var(--rv-primary);
}

/* ============================================================
   PÁGINAS DE ERRO (404 / 500)
   ============================================================ */
.rv-error-page {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}

.rv-error-code {
  font-size: clamp(80px, 20vw, 180px);
  font-weight: 900;
  line-height: 1;
  color: var(--rv-gray-mid);
  position: relative;
  letter-spacing: -.04em;
  display: block;
}

.rv-error-code span {
  position: relative;
  z-index: 1;
}

.rv-error-code::after {
  content: attr(data-code);
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--rv-primary) 30%, var(--rv-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  z-index: 2;
}

.rv-error-title {
  font-size: clamp(20px, 3vw, 32px);
  font-weight: 800;
  color: var(--rv-dark);
  margin: 12px 0 16px;
}

.rv-error-desc {
  color: var(--rv-muted);
  font-size: 17px;
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.rv-error-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Botões gerais */
.rv-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--rv-transition);
  font-family: var(--rv-font);
}

.rv-btn--primary { background: var(--rv-primary); color: #fff; border-color: var(--rv-primary); }
.rv-btn--primary:hover { background: var(--rv-primary-hov); border-color: var(--rv-primary-hov); color: #fff; transform: translateY(-2px); }

.rv-btn--outline { background: transparent; color: var(--rv-dark); border-color: var(--rv-dark); }
.rv-btn--outline:hover { background: var(--rv-dark); color: #fff; transform: translateY(-2px); }

/* ============================================================
   COMENTÁRIOS
   ============================================================ */
.rv-comments { margin-top: 48px; }

.rv-comments h2 { font-size: 22px; font-weight: 800; margin-bottom: 24px; }

.rv-comments .comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--rv-text);
}

.rv-comments .comment-form input[type="text"],
.rv-comments .comment-form input[type="email"],
.rv-comments .comment-form input[type="url"],
.rv-comments .comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--rv-border);
  border-radius: var(--rv-radius);
  font-family: var(--rv-font);
  font-size: 15px;
  color: var(--rv-text);
  background: var(--rv-white);
  transition: border-color var(--rv-transition);
  margin-bottom: 16px;
}

.rv-comments .comment-form input:focus,
.rv-comments .comment-form textarea:focus {
  outline: none;
  border-color: var(--rv-primary);
}

.rv-comments .comment-form .submit {
  background: var(--rv-primary);
  color: #fff;
  border: none;
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  font-family: var(--rv-font);
  transition: background var(--rv-transition);
}

.rv-comments .comment-form .submit:hover { background: var(--rv-primary-hov); }

/* ============================================================
   PAGINAÇÃO
   ============================================================ */
.rv-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 40px 0;
  flex-wrap: wrap;
}

.rv-pagination a,
.rv-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px; height: 40px;
  padding: 0 10px;
  border-radius: var(--rv-radius-sm);
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--rv-border);
  background: var(--rv-white);
  color: var(--rv-text);
  transition: all var(--rv-transition);
}

.rv-pagination a:hover,
.rv-pagination .current {
  background: var(--rv-primary);
  color: #fff;
  border-color: var(--rv-primary);
}

/* ============================================================
   UTILITÁRIOS
   ============================================================ */
.rv-divider { border: none; border-top: 1px solid var(--rv-border); margin: 32px 0; }

.rv-badge {
  display: inline-block;
  background: var(--rv-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
  letter-spacing: .05em;
}

.rv-badge--new { background: #16a34a; }
.rv-badge--hot { background: #f59e0b; }

.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .rv-hero__grid { grid-template-columns: 65% 1fr; }
  .rv-carousel   { grid-template-columns: repeat(4, 1fr); }
  .rv-cat-carousel { grid-template-columns: repeat(2, 1fr); }
  .rv-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .rv-share-float  { display: none; }
  .rv-related__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet pequeno (≤ 900px) */
@media (max-width: 900px) {
  .rv-single-layout { grid-template-columns: 1fr; }
  .rv-sidebar { position: static; }
  .rv-single-title { font-size: var(--rv-fs-h1-t); }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .rv-topbar__info { display: none; }

  /* ---- NAVBAR MOBILE: hamburger esquerda | dark mode centro | lupa direita ---- */
  .rv-navbar__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 12px;
  }

  /* Hambúrguer — esquerda */
  .rv-hamburger {
    display: flex;
    order: 1;
    margin-right: auto;
  }

  /* Utilitários (dark + busca) — direita */
  .rv-navbar__utils {
    order: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  /* Dark mode — centro visual (entre hamburger e lupa) */
  .rv-navbar__darkmode { order: 1; }
  .rv-navbar__search-btn { order: 2; }

  /* Esconde o menu nav até abrir */
  .rv-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px; left: 0; right: 0;
    background: var(--rv-dark);
    padding: 12px 0;
    gap: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.4);
    z-index: 999;
  }

  .rv-nav.is-open { display: flex; }

  .rv-nav > li > a { padding: 14px 20px; height: auto; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 15px; }

  .rv-nav .sub-menu { position: static; box-shadow: none; border-top: none; background: rgba(255,255,255,.05); }

  .rv-navbar { position: relative; }

  .rv-hero__grid { grid-template-columns: 1fr; }
  .rv-hero__img  { height: auto; aspect-ratio: 16/9; }

  /* Hero mobile: texto na parte inferior, sem resumo */
  .rv-hero__summary { display: none; }

  .rv-hero__body {
    padding: 16px;
    background: linear-gradient(to top, rgba(0,0,0,.92) 0%, rgba(0,0,0,.5) 60%, transparent 100%);
    justify-content: flex-end;
    display: flex;
    flex-direction: column;
  }

  .rv-hero__title {
    font-size: 20px;
    margin-bottom: 0;
  }

  .rv-hero__sidebar { flex-direction: row; gap: 12px; }
  .rv-hero__side-card { height: 180px; flex: 1; }

  /* Cards laterais mobile: sem resumo também */
  .rv-hero__side-title { font-size: 13px; }

  .rv-carousel { grid-template-columns: repeat(2, 1fr); }
  .rv-cat-carousel { grid-template-columns: repeat(1, 1fr); }

  .rv-single-title { font-size: var(--rv-fs-h1-m); }
  .rv-post-nav { grid-template-columns: 1fr; }
  .rv-related__grid { grid-template-columns: 1fr; }

  .rv-footer__grid { grid-template-columns: 1fr; }
  .rv-newsletter__inner { flex-direction: column; gap: 24px; }
  .rv-newsletter__form { max-width: 100%; width: 100%; }

  .rv-error-code { font-size: 100px; }
}

/* Mobile pequeno (≤ 480px) */
@media (max-width: 480px) {
  .rv-hero__sidebar { flex-direction: column; }
  .rv-hero__side-card { height: 220px; }
  .rv-post-content { font-size: 16px; }
  .rv-carousel { grid-template-columns: 1fr; }
}

/* ============================================================
   HORÓSCOPO — item ativo
   ============================================================ */
.rv-horoscope-item--active {
  background: var(--rv-primary);
  color: #fff;
}
