/* ==========================================================================
   NOW PAGE (/now) — Design System Editorial v3
   Inspirado no movimento mundial de Derek Sivers e no padrão editorial limpo.
   Alinhado rigorosamente à prumada do 'P' da logo (.wrap) com foco em leitura e calma.
   ========================================================================== */

body.now-page {
  background: var(--bg);
  color: var(--tx);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container Wrapper alinhado estritamente com .wrap da v3 (Início no 'P' de Percio Castelo) */
body.now-page .now-page-wrap,
.now-page-wrap {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 44px) clamp(20px, 4vw, 56px) clamp(48px, 6vw, 96px);
  box-sizing: border-box;
}

/* Coluna de leitura editorial limpa centralizada (Estilo Paivalab / Editorial puro) */
.now-editorial-container {
  max-width: 860px;
  margin: 0 auto;
}

/* Link Voltar */
.now-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12px var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mu);
  text-decoration: none;
  margin-bottom: clamp(28px, 4vw, 36px);
  transition: color .2s ease;
}

.now-back-link:hover {
  color: var(--ac);
}

/* Header Editorial Humanizado */
.now-header-editorial {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-bottom: clamp(32px, 5vw, 48px);
  padding-bottom: clamp(28px, 4vw, 36px);
  border-bottom: 1px solid var(--ln);
}

.now-avatar-wrap {
  flex-shrink: 0;
}

.now-avatar {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  border: 1px solid var(--ln);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: block;
}

.now-header-body {
  flex: 1;
  min-width: 0;
}

.now-kicker {
  font: 700 12px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ac);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.now-title {
  font: 800 clamp(28px, 4vw, 40px)/1.15 var(--sans);
  letter-spacing: -.03em;
  color: var(--tx);
  margin: 0 0 12px;
}

.now-lead {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--tx);
  margin: 0 0 16px;
  opacity: 0.9;
}

.now-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 12.5px var(--mono);
  color: var(--mu);
  flex-wrap: wrap;
}

.now-meta-date {
  color: var(--tx);
  background: var(--bg2);
  border: 1px solid var(--ln);
  padding: 2px 9px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.02em;
}

.now-meta-sep {
  color: var(--mu);
  opacity: 0.5;
}

.now-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.7);
  animation: now-pulse 2s infinite ease-in-out;
  display: inline-block;
}

@keyframes now-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.6; }
}

/* Seções de Conteúdo */
.now-section {
  margin-bottom: clamp(32px, 5vw, 44px);
}

.now-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.now-section-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(232, 98, 58, 0.08);
  border: 1px solid rgba(232, 98, 58, 0.2);
  color: var(--ac);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.now-section-icon svg {
  width: 15px;
  height: 15px;
}

.now-section-title {
  font: 700 clamp(18px, 2.5vw, 22px) var(--sans);
  letter-spacing: -.02em;
  color: var(--tx);
  margin: 0;
}

/* Listas Pontuadas */
.now-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.now-list-item {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--tx);
}

.now-list-item::before {
  content: "•";
  position: absolute;
  left: 6px;
  top: 0;
  color: var(--ac);
  font-size: 18px;
  line-height: 1.4;
}

.now-list-item strong {
  color: var(--tx);
  font-weight: 700;
}

.now-list-item a {
  color: var(--ac);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}

.now-list-item a:hover {
  opacity: 0.8;
}

/* Seção Especial: O que NÃO estou fazendo */
.now-section-optout .now-section-icon {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.now-section-optout .now-list-item::before {
  color: #ef4444;
}

/* Caixa Explicativa Final (Movimento /now Derek Sivers) */
.now-explain-box {
  margin-top: clamp(40px, 6vw, 56px);
  padding: 24px 28px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--ln);
}

.now-explain-title {
  font: 700 13px var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--mu);
  margin: 0 0 10px;
}

.now-explain-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--mu);
  margin: 0 0 14px;
}

.now-explain-link {
  font: 600 12.5px var(--mono);
  color: var(--ac);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s ease;
}

.now-explain-link:hover {
  gap: 10px;
}
/* Linha do Tempo / Feed Vivo de Atualizações Recentes */
.now-timeline-list {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 28px; /* espaço para a linha vertical */
}

/* Linha vertical contínua */
.now-timeline-list::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--ac) 0%,
    var(--ln) 60%,
    transparent 100%
  );
  border-radius: 2px;
}

/* Separador de período (gerado via JS) */
.now-timeline-group-label {
  font: 600 10px var(--mono);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--mu);
  padding: 18px 0 8px 4px;
  position: relative;
  margin-left: -28px;
  padding-left: 32px;
}

/* Bolinha da linha do tempo */
.now-timeline-entry {
  position: relative;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--ln);
  border-radius: 12px;
  transition: border-color .2s ease, background .2s ease;
  margin-bottom: 14px;
}

/* Nó (dot) na linha vertical */
.now-timeline-entry::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -24px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ac);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--ac);
  z-index: 1;
  transition: box-shadow .2s ease;
}

.now-timeline-entry:hover {
  border-color: var(--ac);
  background: var(--ac-soft);
}

.now-timeline-entry:hover::before {
  box-shadow: 0 0 0 4px var(--ac-soft);
}

.now-entry-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.now-entry-tag {
  font: 600 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 2px 7px;
  background: var(--bg2);
  color: var(--ac);
  border-radius: 6px;
  border: 1px solid var(--ln);
}

.now-entry-loc {
  font: 500 11.5px var(--mono);
  color: var(--mu);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.now-entry-loc::before {
  content: "📍";
  font-size: 11px;
}

.now-entry-time {
  font: 400 12px var(--mono);
  color: var(--mu);
}

.now-entry-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--tx);
}

.now-entry-text a {
  color: var(--ac);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.now-entry-img-wrap {
  margin-top: 10px;
}

.now-entry-img {
  max-width: 220px;
  max-height: 160px;
  border-radius: 8px;
  border: 1px solid var(--ln);
  cursor: zoom-in;
  object-fit: cover;
  transition: transform .2s ease, box-shadow .2s ease;
}

.now-entry-img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Modal Lightbox Elegante */
.now-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(8, 10, 14, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.now-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.now-lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid var(--ln);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.now-lightbox.is-open .now-lightbox-img {
  transform: scale(1);
}

.now-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: var(--bg2);
  border: 1px solid var(--ln);
  color: var(--tx);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.now-lightbox-close:hover {
  background: var(--ac);
  color: #fff;
  transform: scale(1.08);
}


/* Responsividade Mobile */
@media (max-width: 640px) {
  .now-header-editorial {
    flex-direction: column;
    gap: 16px;
  }
  .now-avatar {
    width: 64px;
    height: 64px;
  }
}
