/* ═══════════════════════════════════════════════════════════════
   verse-study.css  —  Bible Study tab
   Matches the Burmese Worship brown/gold theme.
   Scoped under .vs-tab and .vs-* so it won't collide with existing CSS.
   ═══════════════════════════════════════════════════════════════ */

.vs-tab {
  --vs-primary:   #6b3a12;
  --vs-primary-2: #7b3f00;
  --vs-gold:      #c49040;
  --vs-gold-soft: #e6c98a;
  --vs-ink:       #2a1e0f;
  --vs-muted:     #7a6045;
  --vs-line:      #e5d2bd;
  --vs-bg:        #fffdf9;
  --vs-card:      #fff;
  --vs-card-2:    #faf3e8;

  max-width: 780px;
  margin: 0 auto;
  padding: 8px 4px 60px;
  color: var(--vs-ink);
  font-family: 'Noto Sans Myanmar', 'Padauk', system-ui, sans-serif;
  line-height: 1.75;
}

/* ─── Header ─── */
.vs-tab-head {
  text-align: center;
  margin-bottom: 14px;
}
.vs-tab-head h2 {
  font-size: 22px;
  color: var(--vs-primary);
  margin: 0 0 2px;
  font-weight: 800;
}
.vs-tab-head p {
  color: var(--vs-muted);
  font-size: 13.5px;
  margin: 0;
}

/* ─── Search box ─── */
.vs-searchbar {
   display: none;
  align-items: center;
  gap: 8px;
  background: var(--vs-card);
  border: 1px solid var(--vs-line);
  border-radius: 12px;
  padding: 4px 6px 4px 12px;
  margin: 12px 0 16px;
  box-shadow: 0 4px 14px rgba(107, 58, 18, .06);
}
.vs-searchbar:focus-within { border-color: var(--vs-gold); }
.vs-searchbar .vs-ico { color: var(--vs-muted); font-size: 15px; flex: none; }
.vs-searchbar input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 15.5px; color: var(--vs-ink); padding: 9px 2px;
  font-family: inherit;
}
.vs-searchbar input::placeholder { color: #b3a48f; }

/* ─── Chapter picker (Book + Chapter dropdowns) ─── */
.vs-picker { margin-bottom: 16px; }
.vs-picker-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
}
.vs-book-name {
  font-size: 15px; font-weight: 700; color: var(--vs-primary);
}
.vs-picker-label {
  font-size: 13px; color: var(--vs-muted); margin-left: 4px;
}
.vs-select {
  border: 1px solid var(--vs-line);
  background: var(--vs-card);
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 14.5px;
  color: var(--vs-ink);
  font-family: inherit;
  cursor: pointer;
  outline: none;
  min-width: 90px;
}
.vs-select:focus { border-color: var(--vs-gold); }

/* ─── Chapter heading above results ─── */
.vs-chapter-head {
  font-size: 17px; font-weight: 800; color: var(--vs-primary);
  display: flex; align-items: baseline; gap: 10px;
  border-bottom: 2px solid var(--vs-line);
  padding-bottom: 8px; margin-bottom: 14px;
}
.vs-chapter-count, .vs-chapter-head .vs-chapter-count {
  font-size: 12.5px; font-weight: 600; color: var(--vs-muted);
}

/* ─── Verse cards ─── */
.vs-card {
  background: var(--vs-card);
  border: 1px solid var(--vs-line);
  border-radius: 14px;
  padding: 15px 16px 13px;
  margin-bottom: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.vs-card:hover { border-color: #d8bf9c; }
.vs-card.is-open { border-color: var(--vs-gold); box-shadow: 0 6px 20px rgba(107,58,18,.08); }

.vs-card-head {
  width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; text-align: left; color: inherit; font-family: inherit; padding: 0;
}
.vs-card-headtext { min-width: 0; }
.vs-ref {
  display: block; font-size: 12px; color: var(--vs-gold);
  letter-spacing: .02em; margin-bottom: 3px; font-weight: 700;
}
.vs-card-title { font-size: 17px; font-weight: 700; line-height: 1.4; }

.vs-card-tags { display: flex; align-items: center; gap: 7px; flex: none; }
.vs-tag {
  font-size: 10.5px; padding: 3px 8px; border-radius: 999px; white-space: nowrap;
}
.vs-tag-theme { background: rgba(196,144,64,.16); color: var(--vs-primary); }
.vs-tag-level { background: rgba(107,58,18,.10); color: var(--vs-muted); }
.vs-chev {
  font-size: 14px; color: var(--vs-muted); transition: transform .2s;
  display: inline-block;
}
.vs-card.is-open .vs-chev { transform: rotate(180deg); }

.vs-short { color: var(--vs-muted); font-size: 14.5px; margin: 10px 0 0; }

/* ─── Expanded detail ─── */
.vs-detail {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px dashed var(--vs-line);
  animation: vsFade .22s ease;
}
@keyframes vsFade { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; } }

.vs-section { margin-bottom: 14px; }
.vs-section:last-child { margin-bottom: 0; }
.vs-section-label {
  font-size: 11px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--vs-gold); font-weight: 700; margin-bottom: 5px;
}
.vs-section p { margin: 0; font-size: 14.5px; }
.vs-prayer { font-style: italic; color: var(--vs-primary); }

.vs-qs { margin: 0; padding-left: 18px; font-size: 14.5px; }
.vs-qs li { margin-bottom: 5px; }

.vs-xrefs { display: flex; flex-wrap: wrap; gap: 7px; }
.vs-xref {
  background: var(--vs-card-2); border: 1px solid var(--vs-line);
  border-radius: 8px; padding: 4px 9px; font-size: 13px; color: var(--vs-muted);
}

.vs-kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.vs-kwtag {
  background: none; border: 1px solid var(--vs-line);
  color: var(--vs-primary); border-radius: 999px;
  padding: 3px 10px; font-size: 12px;
}

/* ─── Empty / loading note ─── */
.vs-empty-note {
  text-align: center; color: var(--vs-muted);
  font-size: 14px; padding: 30px 12px;
}

/* ─── Mobile ─── */
@media (max-width: 520px) {
  .vs-card-head { flex-direction: column; }
  .vs-card-tags { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .vs-detail { animation: none; }
  .vs-chev { transition: none; }
}

/* ─── Deep-link flash (when arriving from a Bible "Study" button) ─── */
.vs-card.vs-flash {
  animation: vsFlash 1.6s ease;
}
@keyframes vsFlash {
  0%   { box-shadow: 0 0 0 3px var(--vs-gold); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) {
  .vs-card.vs-flash { animation: none; }
}
/* Study page back button — match the other pages' style */
#appStudyPage .bp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fffdf8;
  color: #6b3a12;
  border: 1px solid rgba(107, 58, 18, 0.28);
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
}

#appStudyPage .bp-back-btn:hover {
  background: #faf3e8;
  border-color: #6b3a12;
}

#appStudyPage .bp-back-btn svg {
  width: 18px;
  height: 18px;
}
