/* Bible Reader — Neobrutalist Swiss Design */

/* ── Toolbar Buttons ── */
.bible-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  min-width: 2.25rem;
  padding: 0 0.5rem;
  border: 2px solid #111111;
  background-color: #F4F4F0;
  color: #111111;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.1s ease;
  box-shadow: 2px 2px 0px 0px #111111;
  cursor: pointer;
}

.bible-toolbar-btn:hover {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px 0px #111111;
  background-color: #E63946;
  color: #F4F4F0;
}

.bible-toolbar-btn:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px 0px #111111;
}

.bible-search-result-active {
  border-color: #111111 !important;
  background-color: #F4F4F0;
  box-shadow: 2px 2px 0px 0px #111111;
}

.bible-toolbar-btn-disabled {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  min-width: 2.25rem;
  padding: 0 0.5rem;
  border: 2px solid #E0E0E0;
  background-color: #F4F4F0;
  color: #E0E0E0;
}

/* ── Panel Close Button ── */
.bible-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border: 2px solid #111111;
  background-color: #F4F4F0;
  color: #111111;
  cursor: pointer;
  transition: all 0.1s ease;
}

.bible-panel-close:hover {
  background-color: #E63946;
  color: #F4F4F0;
}

/* ── Panel Animation ── */
.bible-panel {
  animation: panelSlideDown 0.15s ease-out;
}

@keyframes panelSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Search Input ── */
.bible-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 2px solid #111111;
  background-color: #FFFFFF;
  font-size: 0.875rem;
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: 2px 2px 0px 0px #111111;
  transition: all 0.15s ease;
}

.bible-search-input:focus {
  outline: none;
  border-color: #0055A4;
  box-shadow: 2px 2px 0px 0px #0055A4;
}

.bible-search-input::placeholder {
  color: #999;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* ── Translation Chips ── */
.bible-translation-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.5rem;
  border: 2px solid #111111;
  background-color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  transition: all 0.1s ease;
  cursor: pointer;
}

.bible-translation-chip:hover {
  background-color: #F4F4F0;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px 0px #111111;
}

.bible-translation-chip.active {
  background-color: #E63946;
  color: #FFFFFF;
  box-shadow: 2px 2px 0px 0px #111111;
}

/* ── Book Chips ── */
.bible-book-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.125rem;
  border: 1.5px solid #111111;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: center;
  transition: all 0.1s ease;
  cursor: pointer;
}

.bible-book-chip.ot {
  background-color: #FFFBEB;
  color: #92400E;
}

.bible-book-chip.nt {
  background-color: #EFF6FF;
  color: #1E40AF;
}

.bible-book-chip:hover {
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px 0px #111111;
}

.bible-book-chip.active {
  background-color: #111111;
  color: #FFFFFF;
  box-shadow: 2px 2px 0px 0px #E63946;
}

/* ── Chapter Chips ── */
.bible-chapter-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.375rem;
  border: 1.5px solid #111111;
  background-color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.1s ease;
  cursor: pointer;
}

.bible-chapter-chip:hover {
  background-color: #F4F4F0;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px 0px #111111;
}

.bible-chapter-chip.active {
  background-color: #E63946;
  color: #FFFFFF;
  box-shadow: 2px 2px 0px 0px #111111;
}

/* ── Settings ── */
.bible-setting-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.5rem;
  border: 2px solid #111111;
  background-color: #F4F4F0;
}

.bible-setting-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid #111111;
  background-color: #FFFFFF;
  cursor: pointer;
  transition: all 0.1s ease;
}

.bible-setting-btn:hover {
  background-color: #E63946;
  color: #FFFFFF;
}

.bible-font-chip {
  display: flex;
  align-items: center;
  padding: 0.125rem 0.375rem;
  border: 2px solid #111111;
  background-color: #FFFFFF;
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.1s ease;
}

.bible-font-chip:hover {
  background-color: #F4F4F0;
}

.bible-font-chip:has(input:checked) {
  background-color: #111111;
  color: #FFFFFF;
}

/* ── Verse Number Button ── */
.verse-num-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: 1.5px solid #111111;
  background-color: #F4F4F0;
  color: #333333;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.verse-num-btn:hover {
  background-color: #E0E0E0;
  transform: scale(1.05);
}

.verse-num-btn.selected {
  background-color: #E63946;
  color: #FFFFFF;
  border-color: #E63946;
  transform: scale(1.1);
  box-shadow: 2px 2px 0px 0px #111111;
}

/* ── Verse Text ── */
.verse-text {
  color: #111111;
}

.verse-wrapper.selected .verse-text {
  background-color: #FEE2E2;
  box-shadow: 0 2px 0 0 #E63946;
}

/* ── Bible Content ── */
.bible-content {
  color: #111111;
}

/* Block layout mode (each verse on new line) */
.bible-content.layout-block .verse-wrapper {
  display: flex;
  margin-bottom: 0.5em;
  margin-right: 0;
  gap: 0.75rem;
  align-items: baseline;
}

.bible-content.layout-block .verse-num-btn {
  display: inline-flex;
}

/* Flowing layout mode (verses flow like paragraph) */
.bible-content.layout-flowing .verse-wrapper {
  display: inline;
  margin-bottom: 0;
  margin-right: 0.5em;
  gap: 0;
}

.bible-content.layout-flowing .verse-num-btn {
  display: inline-flex;
  vertical-align: middle;
}

/* ── Search Result Highlight (in search panel results) ── */
.bible-search-mark {
  background-color: #FEF08A;
  color: #111111;
  padding: 0 2px;
  font-weight: 600;
  border-bottom: 2px solid #EAB308;
}

/* ── Verse Highlight (in reading area after clicking search result) ── */
.search-result-verse {
  background-color: #FEF9C3;
  border-left: 3px solid #E63946;
  padding-left: 0.5rem;
  animation: verseHighlightPulse 2s ease-out;
}

.search-result-verse .verse-num-btn {
  background-color: #E63946;
  color: #FFFFFF;
  border-color: #E63946;
  box-shadow: 2px 2px 0px 0px #111111;
}

@keyframes verseHighlightPulse {
  0% { background-color: #FDE68A; }
  100% { background-color: #FEF9C3; }
}

.verse-search-highlight {
  background-color: #FDE047;
  color: #111111;
  padding: 1px 3px;
  font-weight: 700;
  border-bottom: 2px solid #E63946;
  border-radius: 1px;
}

/* ── Search History Chips ── */
.bible-history-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border: 1.5px solid #111111;
  background-color: #FFFFFF;
  font-size: 0.6875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s ease;
}

.bible-history-chip:hover {
  background-color: #F4F4F0;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px 0px #111111;
}
