/* ═══════════════════════════════════════════════════════════
   RST NEWS VIEWER — Lightbox para Newsletter em Imagem PNG
   ═══════════════════════════════════════════════════════════ */

/* ── Overlay / Backdrop ─────────────────────────────────── */
.rnv-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.rnv-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.rnv-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ── Shell (container principal) ───────────────────────── */
.rnv-shell {
  position: relative;
  z-index: 1;
  width: min(900px, 94vw);
  height: min(92vh, 900px);
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08),
    0 40px 100px rgba(0,0,0,0.8);
  transform: scale(0.93) translateY(24px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  background: #0e0e0e;
}
.rnv-overlay.open .rnv-shell {
  transform: scale(1) translateY(0);
}

/* ── Botão fechar (X) ──────────────────────────────────── */
.rnv-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 100;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px);
}
.rnv-close:hover {
  background: #e33;
  border-color: #e33;
  transform: rotate(90deg) scale(1.1);
}
.rnv-close svg {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

/* ── Barra de info (data + crédito) ────────────────────── */
.rnv-info-bar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px 20px;
  background: #1a1a1a;
  border-bottom: 2px solid #b8960c;
  gap: 12px;
}
.rnv-info-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.rnv-tag {
  display: inline-block;
  background: #b8960c;
  color: #fff;
  font-family: 'Archivo Black', 'Barlow', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
}
.rnv-date {
  color: #bbb;
  font-size: 0.8rem;
  font-family: sans-serif;
  letter-spacing: 0.5px;
}
.rnv-info-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.rnv-credit {
  color: #888;
  font-size: 0.72rem;
  font-family: sans-serif;
  font-style: italic;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.rnv-counter {
  color: #777;
  font-size: 0.78rem;
  font-family: monospace;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ── Área de scroll da imagem ──────────────────────────── */
.rnv-scroll-area {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #111;
  scroll-behavior: smooth;
  position: relative;
}

/* scrollbar custom */
.rnv-scroll-area::-webkit-scrollbar {
  width: 6px;
}
.rnv-scroll-area::-webkit-scrollbar-track {
  background: #1a1a1a;
}
.rnv-scroll-area::-webkit-scrollbar-thumb {
  background: #b8960c;
  border-radius: 3px;
}

/* ── Imagem da newsletter ──────────────────────────────── */
.rnv-news-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.18s ease, transform 0.18s ease;
  user-select: none;
}

/* ── Setas de navegação laterais ───────────────────────── */
.rnv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 0;
}
.rnv-arrow:hover {
  background: #b8960c;
  border-color: #b8960c;
}
.rnv-arrow:hover.rnv-arrow-prev {
  transform: translateY(-50%) translateX(-3px);
}
.rnv-arrow:hover.rnv-arrow-next {
  transform: translateY(-50%) translateX(3px);
}
.rnv-arrow:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}
.rnv-arrow:disabled:hover {
  background: rgba(20, 20, 20, 0.85);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-50%);
}
.rnv-arrow svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}
.rnv-arrow-prev {
  left: 12px;
}
.rnv-arrow-next {
  right: 12px;
}

/* ── Dots ───────────────────────────────────────────────── */
.rnv-dots {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 0 12px;
  background: #1a1a1a;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.rnv-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #444;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.rnv-dot.active {
  background: #b8960c;
  transform: scale(1.4);
}
.rnv-dot:hover:not(.active) {
  background: #777;
}

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .rnv-shell {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .rnv-arrow {
    width: 38px;
    height: 38px;
  }
  .rnv-arrow-prev { left: 6px; }
  .rnv-arrow-next { right: 6px; }
  .rnv-credit { display: none; }
  .rnv-info-bar { padding: 10px 14px; }
}
