/* AI-Men · 성경 읽기 (멘토 탭 세 번째 세그먼트)
   Lives inside .phone.theme-sky — reuses sky tokens. Minimal reader. */

/* ===== 상단 구약/신약 토글 (테스타먼트별 색 구분) ===== */
.bib-test-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.bib-tt {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 50px;
  border-radius: 14px;
  border: 1.5px solid var(--hairline-2);
  background: var(--surface);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: transform .1s, box-shadow .12s, background .14s, color .14s, border-color .14s;
}
.bib-tt .bib-tt-count {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text-3);
  transition: background .14s, color .14s;
}
.bib-tt:active { transform: translateY(1px); }

/* 구약 = 골드 (고전·유산) */
.bib-tt.ot { color: #A87412; border-color: #EAD9A8; background: #FFFCF4; }
.bib-tt.ot .bib-tt-count { background: var(--gold-soft); color: #A87412; }
.bib-tt.ot.on {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #E0A92E 0%, #C68A18 100%);
  box-shadow: 0 4px 0 #9A6E12;
}
.bib-tt.ot.on .bib-tt-count { background: rgba(255,255,255,0.25); color: #fff; }

/* 신약 = 블루 (복음·새 언약) */
.bib-tt.nt { color: var(--blue-dark); border-color: #C5DEF4; background: #F5FAFF; }
.bib-tt.nt .bib-tt-count { background: var(--blue-soft); color: var(--blue-dark); }
.bib-tt.nt.on {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #3AA0E8 0%, var(--blue) 100%);
  box-shadow: 0 4px 0 var(--blue-dark);
}
.bib-tt.nt.on .bib-tt-count { background: rgba(255,255,255,0.25); color: #fff; }

/* ===== 검색 바 ===== */
.bib-search {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 46px;
  padding: 0 14px;
  margin-bottom: 18px;
  background: var(--surface);
  border: 1.5px solid var(--hairline-2);
  border-radius: 14px;
}
.bib-search .bs-icon { color: var(--text-3); flex: 0 0 auto; display: flex; }
.bib-search input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  min-width: 0;
}
.bib-search input::placeholder { color: var(--text-3); }
.bib-search .bs-clear {
  border: none; background: var(--bg-2); color: var(--text-2);
  width: 24px; height: 24px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}

/* ===== 이어 읽기 카드 ===== */
.bib-resume {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1A2A48 0%, #24365C 100%);
  border: none;
  cursor: pointer;
}
.bib-resume .br-icon {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(240,207,106,0.16); color: var(--gold);
  display: grid; place-items: center; font-size: 20px;
}
.bib-resume .br-body { flex: 1; min-width: 0; }
.bib-resume .br-label { font-size: 11.5px; font-weight: 700; color: #9DB0D0; letter-spacing: 0.2px; }
.bib-resume .br-ref { font-size: 16px; font-weight: 800; color: #fff; margin-top: 2px; letter-spacing: -0.3px; }
.bib-resume .br-go { flex: 0 0 auto; color: var(--gold); }

/* ===== 책 그리드 ===== */
.bib-section-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--text-3);
  text-transform: uppercase;
  margin: 0 2px 12px;
}
.bib-book-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.bib-book {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1.5px solid var(--hairline);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  padding: 4px;
  transition: transform .1s, box-shadow .1s, border-color .12s;
}
.bib-book:hover { transform: translateY(-1px); box-shadow: 0 3px 0 var(--hairline-2); border-color: var(--hairline-2); }
.bib-book:active { transform: translateY(1px); box-shadow: none; }
.bib-book .bb-abbr { font-size: 16px; font-weight: 800; letter-spacing: -0.5px; }
.bib-book .bb-ch { font-size: 10.5px; color: var(--text-3); font-weight: 600; }
.bib-book .bb-dot {
  position: absolute; top: 7px; right: 7px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}
.bib-book.started { border-color: var(--accent-soft); }

/* ===== 장 그리드 ===== */
.bib-ch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.bib-ch {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  position: relative;
  transition: transform .1s, border-color .12s, background .12s;
}
.bib-ch:active { transform: scale(0.94); }
.bib-ch.read { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.bib-ch.last { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }

/* ===== 본문 리더 ===== */
.bib-reader-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}
.bib-reader-book { font-size: 14px; font-weight: 700; color: var(--text-2); }
.bib-reader-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.6px;
  color: var(--text);
  margin-bottom: 18px;
}
.bib-verses { display: flex; flex-direction: column; gap: 11px; }
.bib-verse {
  display: flex;
  gap: 10px;
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--text);
  text-wrap: pretty;
  scroll-margin-top: 60px;
}
.bib-verse .bv-num {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  min-width: 18px;
  text-align: right;
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
}
.bib-verse.hit { background: var(--gold-soft); border-radius: 8px; padding: 4px 8px; margin: -4px -8px; }
.bib-verse mark { background: rgba(240,207,106,0.5); color: inherit; border-radius: 3px; padding: 0 1px; }

/* reader bottom nav */
.bib-reader-nav {
  display: flex;
  gap: 10px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1.5px solid var(--hairline);
}
.bib-reader-nav button {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  height: 48px;
  border: 1.5px solid var(--hairline-2);
  border-radius: 13px;
  background: var(--surface);
  color: var(--text);
  font-family: inherit; font-size: 13.5px; font-weight: 800;
  cursor: pointer;
}
.bib-reader-nav button:disabled { opacity: 0.4; cursor: default; }
.bib-reader-nav button:not(:disabled):active { transform: translateY(1px); }

.bib-read-toggle {
  width: 100%;
  height: 50px;
  margin-top: 14px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: -0.3px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--accent-dark);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .1s, box-shadow .1s;
}
.bib-read-toggle:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark); }
.bib-read-toggle.done { background: var(--surface); color: var(--accent-dark); border: 1.5px solid var(--accent); box-shadow: 0 4px 0 var(--accent-soft); }

/* ===== 검색 결과 ===== */
.bib-results { display: flex; flex-direction: column; gap: 8px; }
.bib-result {
  width: 100%; text-align: left;
  padding: 13px 15px;
  border: 1.5px solid var(--hairline);
  border-radius: 13px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color .12s, transform .1s;
}
.bib-result:active { transform: translateY(1px); }
.bib-result .br-ref2 { font-size: 12.5px; font-weight: 800; color: var(--blue-dark); margin-bottom: 4px; }
.bib-result .br-text { font-size: 14px; line-height: 1.55; color: var(--text-2); text-wrap: pretty; }
.bib-result .br-text mark { background: rgba(240,207,106,0.55); color: var(--text); border-radius: 3px; padding: 0 2px; }
.bib-results-meta { font-size: 12.5px; color: var(--text-3); font-weight: 600; margin: 0 2px 12px; }

/* ===== 로딩 / 빈 상태 ===== */
.bib-loading, .bib-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 24px; text-align: center;
}
.bib-loading .bl-spin {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--hairline-2); border-top-color: var(--blue);
  animation: bibSpin 0.8s linear infinite;
}
@keyframes bibSpin { to { transform: rotate(360deg); } }
.bib-loading .bl-text, .bib-empty .be-text { font-size: 14px; color: var(--text-3); font-weight: 600; }
.bib-empty .be-emoji { font-size: 36px; }
.bib-empty .be-title { font-size: 16px; font-weight: 800; color: var(--text); }

/* 구약 준비중 안내 */
.bib-ot-soon {
  margin-top: 8px;
  padding: 28px 22px;
  border-radius: 18px;
  border: 1.5px dashed var(--hairline-2);
  background: var(--surface-2);
  text-align: center;
}
.bib-ot-soon .bos-emoji { font-size: 34px; margin-bottom: 12px; }
.bib-ot-soon .bos-title { font-size: 16.5px; font-weight: 800; color: var(--text); margin-bottom: 8px; letter-spacing: -0.3px; }
.bib-ot-soon .bos-desc { font-size: 13.5px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }
