/* ============================================================
   novidades.css — Pop-up de novidades, tutorial guiado e página "Novidades"
   ============================================================ */

.nov-overlay, #tour-root {
  --nov-bg: #FFFFFF;
  --nov-text: #111111;
  --nov-muted: #666666;
  --nov-border: rgba(0,0,0,0.09);
  --nov-soft: rgba(0,0,0,0.04);
  --nov-cyan: #1ACEEE;
  --nov-cyan-ink: #04323a;
  --nov-shadow: 0 24px 60px rgba(0,0,0,0.28);
}
[data-theme="dark"] .nov-overlay, [data-theme="dark"] #tour-root {
  --nov-bg: #141414;
  --nov-text: #F2F2F2;
  --nov-muted: #9a9a9a;
  --nov-border: rgba(255,255,255,0.1);
  --nov-soft: rgba(255,255,255,0.06);
  --nov-shadow: 0 24px 60px rgba(0,0,0,0.7);
}

/* ── Pop-up ─────────────────────────────────────────────── */
.nov-overlay {
  position: fixed; inset: 0; z-index: 99990;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', sans-serif;
  animation: novFade .25s ease both;
}
@keyframes novFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes novUp   { from { opacity: 0; transform: translateY(20px) scale(.97); } to { opacity: 1; transform: none; } }

.nov-card {
  width: min(440px, calc(100% - 32px));
  max-height: calc(100vh - 48px); overflow-y: auto;
  background: var(--nov-bg); color: var(--nov-text);
  border: 1px solid var(--nov-border);
  border-radius: 22px; padding: 30px 28px 24px;
  text-align: center; box-shadow: var(--nov-shadow);
  animation: novUp .35s cubic-bezier(.34,1.4,.64,1) both;
}
.nov-badge {
  display: inline-block; margin-bottom: 16px;
  padding: 4px 12px; border-radius: 20px;
  background: rgba(26,206,238,.14); color: #0aa6c2;
  font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
}
[data-theme="dark"] .nov-badge { color: var(--nov-cyan); }
.nov-emoji { font-size: 42px; line-height: 1; margin-bottom: 12px; }
.nov-title { font-size: 20px; font-weight: 800; letter-spacing: -.3px; line-height: 1.3; margin-bottom: 8px; }
.nov-text  { font-size: 14px; line-height: 1.55; color: var(--nov-muted); }
.nov-sub   { font-size: 13px; color: var(--nov-muted); margin-top: 10px; }
.nov-actions { display: flex; gap: 10px; margin-top: 22px; }
.nov-actions .nov-btn { flex: 1; }

.nov-btn {
  border: 1px solid transparent; border-radius: 12px; cursor: pointer;
  padding: 12px 18px; font: 700 14px 'Inter', sans-serif;
  transition: transform .15s, opacity .15s, background .15s;
}
.nov-btn:hover { transform: translateY(-1px); }
.nov-btn--primary { background: var(--nov-cyan); color: var(--nov-cyan-ink); }
.nov-btn--primary:hover { opacity: .9; }
.nov-btn--ghost { background: var(--nov-soft); color: var(--nov-text); border-color: var(--nov-border); }
.nov-btn--sm { padding: 8px 14px; font-size: 12.5px; flex: none !important; white-space: nowrap; }

.nov-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.nov-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: 14px;
  background: var(--nov-soft); border: 1px solid var(--nov-border);
}
.nov-item-ico { font-size: 24px; }
.nov-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.nov-item-body strong { font-size: 13.5px; }
.nov-item-body small { font-size: 12px; color: var(--nov-muted); line-height: 1.4; }

/* ── Tutorial guiado ────────────────────────────────────── */
#tour-root { position: fixed; inset: 0; z-index: 99995; font-family: 'Inter', sans-serif; }
.tour-block { position: absolute; inset: 0; background: transparent; }
#tour-root.tour-centered .tour-block { background: rgba(0,0,0,0.62); }

.tour-spot {
  position: fixed; border-radius: 12px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.62), 0 0 0 2px var(--nov-cyan), 0 0 22px 2px rgba(26,206,238,.55);
  transition: left .25s ease, top .25s ease, width .25s ease, height .25s ease;
}

.tour-tip {
  position: fixed; width: 340px; max-width: calc(100vw - 24px);
  background: var(--nov-bg); color: var(--nov-text);
  border: 1px solid var(--nov-border); border-radius: 16px;
  padding: 18px 18px 14px; box-shadow: var(--nov-shadow);
  transition: left .25s ease, top .25s ease, opacity .15s;
}
#tour-root.tour-centered .tour-tip { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 400px; }
#tour-root.tour-loading .tour-tip { opacity: .65; }

.tour-x {
  position: absolute; top: 8px; right: 10px; width: 26px; height: 26px;
  border: none; background: transparent; color: var(--nov-muted);
  font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px;
}
.tour-x:hover { background: var(--nov-soft); color: var(--nov-text); }
.tour-step  { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #0aa6c2; margin-bottom: 6px; }
[data-theme="dark"] .tour-step { color: var(--nov-cyan); }
.tour-title { font-size: 16px; font-weight: 800; letter-spacing: -.2px; margin: 0 22px 6px 0; line-height: 1.3; }
.tour-text  { font-size: 13.5px; line-height: 1.55; color: var(--nov-muted); }
.tour-text strong { color: var(--nov-text); font-weight: 700; }
.tour-dots  { display: flex; gap: 5px; margin: 14px 0 12px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--nov-border); }
.tour-dots i.done { background: rgba(26,206,238,.5); }
.tour-dots i.on   { background: var(--nov-cyan); width: 16px; border-radius: 4px; }

.tour-actions { display: flex; align-items: center; justify-content: space-between; }
.tour-nav { display: flex; gap: 8px; }
.tour-actions button {
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  padding: 8px 14px; font: 700 13px 'Inter', sans-serif;
}
.tour-skip { background: transparent; color: var(--nov-muted); padding-left: 0 !important; }
.tour-skip:hover { color: var(--nov-text); }
.tour-prev { background: var(--nov-soft); color: var(--nov-text); border-color: var(--nov-border) !important; }
.tour-next { background: var(--nov-cyan); color: var(--nov-cyan-ink); }
.tour-next:hover { opacity: .9; }

/* ── Selo no menu lateral ───────────────────────────────── */
.nav-badge.nav-badge--novidade { background: #ef4444; color: #fff; }
.nav-badge.nav-badge--novidade[hidden] { display: none; }

/* ── Página "Novidades" ─────────────────────────────────── */
.novp-head { margin-bottom: 20px; }
.novp-head h1 { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 4px; }
.novp-head p  { margin: 0; color: var(--text-secondary); font-size: 14px; }
.novp-list { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.novp-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card-light); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow);
}
.novp-ico { font-size: 30px; }
.novp-body { flex: 1; min-width: 0; }
.novp-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.novp-titulo { font-size: 15.5px; font-weight: 800; color: var(--black); }
.novp-tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase;
  padding: 2px 8px; border-radius: 20px;
}
.novp-tag--novo  { background: rgba(239,68,68,.14); color: #ef4444; }
.novp-tag--visto { background: rgba(34,197,94,.14); color: #16a34a; }
.novp-resumo { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.novp-data { font-size: 11.5px; color: var(--text-muted); margin-top: 5px; }
.novp-btn {
  flex: none; border: none; border-radius: 12px; cursor: pointer;
  padding: 10px 18px; font: 700 13px 'Inter', sans-serif;
  background: var(--cyan); color: #04323a; transition: opacity .15s, transform .15s;
}
.novp-btn:hover { opacity: .9; transform: translateY(-1px); }
.novp-btn--ghost { background: var(--cyan-dim); color: var(--cyan); }
.novp-vazio { padding: 40px; text-align: center; color: var(--text-secondary); }

@media (max-width: 640px) {
  .novp-card { flex-wrap: wrap; }
  .novp-btn { width: 100%; }
  .tour-tip { width: calc(100vw - 24px); }
}
