/* v2: login, áudio, anotações, compartilhar, configurações */

/* ---------- aviso offline ---------- */
.offline-banner { position: sticky; top: 0; z-index: 500; background: #5a3b00; color: #ffd98a; text-align: center; padding: .4rem 1rem; font-size: .88rem; }

/* ---------- login ---------- */
.btn.wide { width: 100%; }
.link-btn { color: var(--muted); text-align: left; font-size: .92rem; padding: .3rem 0; }
.link-btn:hover { color: #fff; text-decoration: underline; }
.form-msg { color: #ff8f8f; font-size: .9rem; min-height: 1.1em; }
.profiles-foot { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }

/* ---------- barra superior do leitor ---------- */
.tool { position: relative; }
.tool .badge {
  position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent);
  font-size: .68rem; font-style: normal; font-weight: 700; display: grid; place-items: center; font-family: var(--font);
}
.reader-tools .tool svg { font-size: 1.35rem; }

/* ---------- áudio ---------- */
.audio-panel { margin-top: 1.2rem; display: grid; justify-items: center; gap: .55rem; }
.audio-row { display: flex; align-items: center; gap: .7rem; }
.listen-pill {
  display: inline-flex; align-items: center; gap: .6rem; padding: .7rem 1.5rem; border-radius: 999px; background: #fff; color: #000;
  font-weight: 800; font-size: 1rem; transition: background .15s, transform .1s; min-height: 48px;
}
.listen-pill:hover { background: rgba(255, 255, 255, .8); }
.listen-pill:active { transform: scale(.98); }
.listen-pill.on { background: var(--accent); color: #fff; }
.listen-pill svg { font-size: 1.6rem; }
.pill-icon { display: grid; place-items: center; }
.mini-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .2); border-top-color: #000; animation: spin .8s linear infinite; display: block; }
.audio-info { color: var(--dim); font-size: .8rem; min-height: 1em; }
.v.speaking { background: rgba(242, 193, 78, .22); box-shadow: -4px 0 0 var(--gold); }

/* ---------- anotações no texto ---------- */
.v.has-note { text-decoration: underline dotted rgba(242, 193, 78, .5); text-underline-offset: 4px; }
.note-dot {
  font-family: var(--font); font-size: .7rem; color: var(--gold); background: rgba(242, 193, 78, .15); border-radius: 4px; padding: 0 .3rem;
  margin-right: .25rem; vertical-align: super; line-height: 1.3;
}
.note-dot:hover { background: rgba(242, 193, 78, .35); }

/* ---------- janelas (anotações, compartilhar, configurações) ---------- */
.modal-notes, .modal-share, .modal-settings { width: min(560px, 100%); margin-top: 5vh; }
.notes-body, .share-body, .settings-body { padding: .6rem 1.4rem 1.6rem; display: grid; gap: 1.1rem; }
.note-list { display: grid; gap: .7rem; max-height: 38vh; overflow-y: auto; }
.note { background: var(--card); border-radius: 6px; padding: .8rem 1rem; display: grid; gap: .4rem; }
.note header { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.note header strong { color: var(--gold); font-size: .85rem; }
.note-actions { display: flex; gap: .4rem; }
.note p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; font-size: .98rem; }
.note-form { display: grid; gap: .7rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.note-input { resize: vertical; min-height: 96px; font-family: inherit; line-height: 1.45; }

.share-quote { border-left: 3px solid var(--accent); padding: .3rem 0 .3rem 1rem; display: grid; gap: .5rem; }
.share-quote p { font-family: var(--font-read); font-size: 1.05rem; line-height: 1.55; max-height: 28vh; overflow-y: auto; }
.share-quote cite { color: var(--gold); font-style: normal; font-weight: 700; font-size: .9rem; }
.share-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.share-actions .btn { font-size: .95rem; padding: .55rem 1.1rem; }
.share-via { color: var(--muted); font-size: .85rem; }
.share-links, .chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; padding: .45rem .95rem; border-radius: 999px; border: 1px solid var(--dim); color: var(--muted); font-size: .9rem; background: transparent; }
.chip:hover { color: #fff; border-color: #fff; }
.chip.on { background: #fff; color: #000; border-color: #fff; font-weight: 700; }

.settings-body h4 { font-size: 1rem; }
.settings-row { display: flex; gap: .7rem; flex-wrap: wrap; }
.danger-zone { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.field { display: grid; gap: .5rem; color: var(--muted); font-size: .9rem; }

/* ---------- Minhas anotações ---------- */
.notes-all { display: grid; gap: .7rem; padding: 1rem var(--pad) 3rem; max-width: 820px; }
.note-card { display: flex; align-items: flex-start; gap: .6rem; background: var(--card); border-radius: 6px; padding: .5rem .6rem .5rem 0; }
.note-main { flex: 1; text-align: left; padding: .6rem 1rem; display: grid; gap: .3rem; min-width: 0; }
.note-main strong { color: var(--gold); font-size: .9rem; }
.note-main span { color: #ddd; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.note-card:hover { background: #333; }

@media (max-width: 560px) {
  .modal-notes, .modal-share, .modal-settings { margin-top: 2vh; }
  .reader-tools { gap: 0; }
  .reader-tools .tool { width: 38px; }
  .reader-tools .tool.txt { display: none; }
  .bottom-nav a, .bottom-nav button { font-size: .68rem; }
}

@media (max-width: 560px) {
  .sel-bar { bottom: 84px; gap: 0; padding: .3rem .4rem; }
  .sel-count { padding: 0 .5rem; font-size: .78rem; }
  .sel-btn { padding: .55rem .65rem; }
  .sel-btn .lbl { display: none; }
  .sel-btn svg { font-size: 1.35rem; }
}

/* logo BIBLIA(branco) + PLAY(vermelho) */
.logo { color: #fff; }

.v.blank { display: none; }
.partial-note { color: var(--gold) !important; font-size: .82rem !important; margin-top: .5rem !important; }
.credits { list-style: none; display: grid; gap: 1rem; }
.credits li { display: grid; gap: .25rem; background: var(--card); border-radius: 6px; padding: .8rem 1rem; font-size: .9rem; line-height: 1.45; }
.credits li span { color: var(--muted); }
.credits a { color: #fff; text-decoration: underline; }
