/* Daily Verse badge + modal for Vite web UI (body portal — outside #root) */

#bj-daily-verse-root {
  position: fixed;
  top: 72px;
  right: 16px;
  width: min(320px, calc(100vw - 32px));
  z-index: 40;
  pointer-events: none;
}

#bj-daily-verse-root[hidden] {
  display: none !important;
}

.bj-daily-verse {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid rgba(200, 184, 162, 0.45);
  border-radius: 4px;
  padding: 10px 12px;
  background: #1c1916;
  color: #faf7f0;
  cursor: pointer;
  font: inherit;
  pointer-events: auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.bj-daily-verse--light {
  background: #efe4d3;
  border-color: #cbbda8;
  color: #2a2420;
}

.bj-daily-verse__label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  font-weight: 600;
  color: #e4c77a;
}

.bj-daily-verse--light .bj-daily-verse__label {
  color: #6b5a3a;
}

.bj-daily-verse__ref {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 18px;
  font-weight: 500;
  color: #f4ece0;
}

.bj-daily-verse--light .bj-daily-verse__ref {
  color: #3d342c;
}

.bj-daily-verse__snippet {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  line-height: 21px;
  letter-spacing: 0.15px;
  color: #faf7f0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bj-daily-verse--light .bj-daily-verse__snippet {
  color: #2a2420;
}

.bj-bible-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
}

.bj-bible-modal[hidden] {
  display: none !important;
}

.bj-bible-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.bj-bible-modal__card {
  position: relative;
  z-index: 1;
  width: min(520px, calc(100vw - 32px));
  max-height: min(70vh, 480px);
  overflow: auto;
  background: #1c1916;
  color: #f4ece0;
  border: 1px solid rgba(200, 184, 162, 0.35);
  border-radius: 6px;
  padding: 16px 18px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.app--light .bj-bible-modal__card {
  background: #f7f1e6;
  color: #2a2420;
}

.bj-bible-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.bj-bible-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.bj-bible-modal__close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}

.bj-bible-modal__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.bj-bible-status {
  margin-top: 8px;
}

.bj-bible-status--error {
  color: #e07070;
}

@media (max-width: 720px) {
  #bj-daily-verse-root {
    top: auto;
    bottom: 16px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
