/* ============================================
   COMPARTILHAR: botao no topo + popup
   Usado em todas as LPs. Sem SDKs de terceiros: so links de compartilhamento.
   ============================================ */
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: transparent; border: 1px solid rgba(245,240,232,0.28);
  color: var(--paper, #f5f0e8); padding: 10px 16px; line-height: 1;
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: border-color .25s, color .25s, background .25s;
}
.share-btn svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-btn:hover, .share-btn:focus-visible { border-color: var(--gold, #c9a84c); color: var(--gold, #c9a84c); outline: none; }

/* barra de meta-informacoes logo abaixo do titulo: tempo de leitura + compartilhar */
.meta-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  max-width: 560px; margin: 4px 0 22px; padding: 9px 0;
  border-top: 1px solid rgba(201,168,76,0.28); border-bottom: 1px solid rgba(201,168,76,0.28);
}
.meta-bar.center { margin-left: auto; margin-right: auto; }
.meta-read { display: inline-flex; align-items: center; gap: 8px; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(245,240,232,0.7); }
.meta-read svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.meta-bar .share-btn { padding: 8px 14px; }
/* paginas editoriais (fundo claro) */
.meta-bar.light { border-color: var(--line, #d8cfbd); }
.meta-bar.light .meta-read { color: var(--muted, #6f685b); font-size: 12px; }
.meta-bar.light .share-btn { border-color: var(--ink, #14120f); color: var(--ink, #14120f); border-radius: 999px; padding: 8px 16px; font-family: var(--sans, 'Outfit', sans-serif); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 500; }
.meta-bar.light .share-btn:hover, .meta-bar.light .share-btn:focus-visible { background: var(--ink, #14120f); color: var(--paper, #f3eee4); border-color: var(--ink, #14120f); }

/* popup */
.share-overlay {
  position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(5,5,8,0.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
}
.share-overlay.open { opacity: 1; visibility: visible; }
.share-panel {
  position: relative; width: 100%; max-width: 440px; padding: 30px 26px 24px;
  background: #12121a; color: #f5f0e8; border: 1px solid rgba(201,168,76,0.4);
  box-shadow: 0 24px 80px rgba(0,0,0,0.55); font-family: 'Crimson Pro', Georgia, serif;
  transform: translateY(12px); transition: transform .2s ease;
}
.share-overlay.open .share-panel { transform: none; }
.share-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 24px; line-height: 1.2; margin: 0 28px 6px 0; color: #f5f0e8; }
.share-page { font-size: 15px; line-height: 1.4; color: rgba(245,240,232,0.6); margin: 0 0 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.share-close {
  position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; color: rgba(245,240,232,0.7); font-size: 26px; line-height: 1; cursor: pointer;
}
.share-close:hover, .share-close:focus-visible { color: #c9a84c; outline: none; }
.share-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; text-align: left; cursor: pointer; text-decoration: none;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(201,168,76,0.25); color: #f5f0e8;
  font-family: 'DM Mono', monospace; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.2;
  transition: border-color .2s, background .2s;
}
.share-item svg { width: 20px; height: 20px; flex: none; fill: currentColor; stroke: none; }
.share-item svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.share-item:hover, .share-item:focus-visible { border-color: #c9a84c; background: rgba(201,168,76,0.09); outline: none; color: #f5f0e8; }
.share-toast { min-height: 22px; margin: 16px 0 0; font-size: 15px; color: #e8c96e; }
.share-toast a { color: #e8c96e; }
.share-note { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: rgba(245,240,232,0.5); }
body.share-lock { overflow: hidden; }

@media (max-width: 640px) {
  .meta-bar { gap: 10px; }
  .meta-read { font-size: 10px; letter-spacing: 0.06em; }
  .meta-bar .share-btn { padding: 8px 12px; font-size: 10px; letter-spacing: 0.06em; }
  .share-overlay { align-items: flex-end; padding: 0; }
  .share-panel { max-width: none; border-left: 0; border-right: 0; border-bottom: 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .share-overlay, .share-panel { transition: none; } }
