/* Visual da ferramenta Esboço de Pregação (classes começam com eb-, mt-, pulpito) */

/* Explorar */
.eb-explorar { position: sticky; top: calc(var(--topo-h) + env(safe-area-inset-top)); z-index: 5; background: var(--fundo); padding: .6rem 0 .5rem; margin: 0 -16px; padding-inline: 16px; }
.eb-busca { display: flex; align-items: center; gap: .5rem; background: var(--superficie); border: 1.5px solid var(--borda); border-radius: 999px; padding: 0 1rem; margin-bottom: .6rem; }
.eb-busca:focus-within { border-color: var(--primaria); }
.eb-busca .ico { color: var(--texto-2); width: 20px; height: 20px; }
.eb-busca input { border: 0; outline: none; background: transparent; font: inherit; color: var(--texto); width: 100%; padding: .75rem 0; }
.eb-contagem { display: flex; justify-content: space-between; align-items: center; margin-top: .55rem; font-size: .86rem; color: var(--texto-2); }

.eb-lista { list-style: none; padding: 0; margin: .5rem 0 1rem; display: grid; gap: .65rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.eb-card { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: 1rem 1.1rem; text-decoration: none; color: var(--texto); background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); box-shadow: var(--sombra); transition: border-color .2s, transform .12s; }
.eb-card:hover { border-color: var(--dourado); }
.eb-card:active { transform: scale(.98); }
.eb-card strong { font-family: var(--fonte-titulo); font-size: 1.12rem; line-height: 1.25; }
.eb-card-cat { display: flex; justify-content: space-between; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dourado); font-weight: 750; }
.eb-card-meta { font-size: .86rem; color: var(--texto-2); }
.eb-fav-ind { display: none; } .eb-fav-ind .ico { width: 16px; height: 16px; fill: var(--dourado); stroke: var(--dourado); }
li.eh-fav .eb-fav-ind { display: inline; }
.eb-vazio { color: var(--texto-2); }
.eb-lista-rel { grid-template-columns: 1fr; }
.eb-mais { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Barra de ações */
.eb-barra { position: sticky; top: calc(var(--topo-h) + env(safe-area-inset-top)); z-index: 5; display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding: .6rem 16px; margin: 0 -16px .6rem; background: var(--fundo); }
.eb-barra::-webkit-scrollbar { display: none; }
.eb-barra .btn { flex: none; }
.eb-fav[aria-pressed="true"] { box-shadow: inset 0 0 0 1.5px var(--dourado); color: var(--dourado); }
.eb-fav[aria-pressed="true"] .ico { fill: currentColor; }

/* Esboço */
.eb { padding: 1.6rem 1.4rem; font-size: var(--eb-tam, 1rem); }
.eb h3 { font-size: 1.12em; margin: 1.5em 0 .4em; color: var(--primaria); display: flex; gap: .55rem; align-items: baseline; }
.eb p { margin: 0 0 .7em; }
.eb ul { padding-left: 1.2em; }
.eb-cat { font-size: .72rem !important; text-transform: uppercase; letter-spacing: .12em; color: var(--dourado); font-weight: 750; }
.eb-tit { margin: .1em 0 .7em; font-size: 1.6em; }
.eb-texto { font-size: 1.06em; }
.eb-num { display: inline-grid; place-items: center; flex: none; width: 1.7em; height: 1.7em; border-radius: 50%; background: var(--dourado-suave); color: var(--dourado); font-family: var(--fonte); font-size: .85em; font-weight: 800; }
.eb-refs { font-size: .9em; color: var(--texto-2); font-style: italic; }
.eb.editando { outline: 2px dashed var(--dourado); outline-offset: 4px; }
.eb-dica { font-size: .86rem; color: var(--texto-2); margin-top: .8rem; }

/* Montador */
.eb-montar { margin-top: 2rem; }
.mt { display: grid; gap: .85rem; }
.mt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.mt-top { display: grid; gap: .5rem; border: 1.5px solid var(--borda); border-radius: var(--raio-p); padding: .6rem .8rem .8rem; margin: 0; }
.mt-top legend { padding: 0 .35rem; font-size: .85rem; font-weight: 750; color: var(--primaria); }
.mt-acoes { display: flex; flex-wrap: wrap; gap: .5rem; }
.mt-saida { margin-top: 1rem; }
.mt-saida pre { white-space: pre-wrap; font-family: var(--fonte); font-size: .97rem; margin: 0 0 1rem; }
.eb-meus { margin-bottom: 1rem; }
.eb-meus h3 { margin-top: 0; }
.eb-meus ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.eb-meus li { display: flex; align-items: center; gap: .4rem; padding: .45rem .3rem .45rem .8rem; border-radius: var(--raio-p); background: var(--superficie-2); }
.eb-meus li button:first-child { flex: 1; text-align: left; background: none; border: 0; cursor: pointer; font-weight: 600; padding: .2rem 0; }
.eb-meus small { display: block; font-weight: 400; color: var(--texto-2); }
@media (max-width: 600px) { .mt-grid { grid-template-columns: 1fr; } }

/* Modo púlpito */
.pulpito { position: fixed; inset: 0; z-index: 100; background: #0b0f0e; color: #f3efe6; display: flex; flex-direction: column; }
.pulpito[hidden] { display: none; }
.pulpito-barra { display: flex; align-items: center; gap: .4rem; padding: calc(.5rem + env(safe-area-inset-top)) .75rem .5rem; border-bottom: 1px solid #22302c; }
.pulpito-btn, .pulpito-tempo { border: 0; background: #18221f; color: #f3efe6; min-width: 44px; height: 44px; border-radius: 12px; font-weight: 700; cursor: pointer; display: inline-grid; place-items: center; padding: 0 .7rem; }
.pulpito-tempo { display: inline-flex; gap: .4rem; align-items: center; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
.pulpito-tempo.rodando { background: #1f5b51; }
.pulpito-esp { flex: 1; }
.pulpito-texto { flex: 1; overflow-y: auto; padding: 1.4rem 1.3rem calc(3rem + env(safe-area-inset-bottom)); font-size: var(--pulpito-tam, 1.45rem); line-height: 1.6; max-width: 900px; width: 100%; margin: 0 auto; }
.pulpito-texto h2, .pulpito-texto h3 { color: #e2c27e; }
.pulpito-texto .eb-num { background: #2a2416; color: #e2c27e; }
.pulpito-texto .eb-refs { color: #a8b3ae; }
.pulpito-texto .eb-cat { color: #e2c27e; }

/* Links para a Bíblia online */
.eb a.ref-biblia, .resumo-ia a.ref-biblia { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--dourado) 60%, transparent); text-underline-offset: 3px; }
.eb a.ref-biblia:hover { color: var(--primaria); }
.pulpito-texto a.ref-biblia { color: inherit; text-decoration: none; pointer-events: none; }
.eb-tema-link { display: flex; align-items: center; gap: .7rem; margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--raio); background: var(--dourado-suave); color: var(--texto); text-decoration: none; font-size: .95rem; }
.eb-tema-link .ico:first-child { color: var(--dourado); }
.eb-tema-link .ico:last-child { margin-left: auto; color: var(--texto-2); }
