/* =====================================================================
   alkitab.css — Bible reader UI, redesain "painterly amber" (v2)
   Terinspirasi warm oil-painting look + smooth native-app motion.
   Struktur class TIDAK berubah dari versi sebelumnya (kompatibel penuh
   dengan js/alkitab.js) — hanya lapisan visual & animasi yang diperkuat.
   Warna dasar tetap ikut variabel tema (--gold/--rose/--surface, dst)
   dari css/theme.css supaya nyambung ke mode terang/gelap & aksen user.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,500&display=swap');

/* ---------- Token lokal halaman Alkitab (turunan dari token tema) ---------- */
:root{
  --al-amber-1: color-mix(in oklch, var(--gold) 82%, #fff2cf 18%);
  --al-amber-2: var(--gold-deep);
  --al-amber-3: color-mix(in oklch, var(--rose) 78%, #7a3f1d 22%);
  --al-olive:   #8a9a5b;
  --al-parchment: color-mix(in oklch, var(--surface) 88%, #f4e6c8 12%);
  --al-ease: cubic-bezier(.22,1,.36,1);
  --al-ease-soft: cubic-bezier(.19,1,.22,1);
}
html.dark-mode, body.dark-mode{
  --al-parchment: color-mix(in oklch, var(--surface) 90%, #3a2c14 10%);
  --al-olive: #a3b578;
}

@property --al-angle{
  syntax: '<angle>';
  inherits: false;
  initial-value: 135deg;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  padding-bottom: 110px;
  position: relative;
}

/* Tekstur kanvas & grain sudah dipindah ke css/theme.css (global,
   berlaku di semua halaman) supaya tidak dobel-render di sini. */

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 16px 24px 16px;
}

/* ---------- Header ---------- */
.header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 17px;
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  background: color-mix(in oklch, var(--surface) 78%, transparent) !important;
}

.header .back {
  cursor: pointer; flex-shrink: 0;
  transition: transform .25s var(--al-ease), opacity .2s ease;
}
.header .back:active { transform: translateX(-3px) scale(.9); opacity: .6; }

/* ---------- Header ala referensi: [‹] [Aa] [Kitab Pasal ▾] [›] ---------- */
.al-aa-btn{
  flex-shrink: 0; background: transparent !important; border: none !important;
  padding: 0 6px !important; font-family: 'Fraunces','Lora',serif;
  font-size: 17px !important; font-weight: 600 !important; color: var(--text) !important;
  cursor: pointer; transition: opacity .2s ease, transform .18s var(--al-ease) !important;
}
.al-aa-btn:active{ transform: scale(.9) !important; opacity: .65; }

.al-title-pill{
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--surface-2) !important; border: 1px solid var(--border) !important;
  border-radius: 999px !important; padding: 8px 14px !important;
  font-size: 14px !important; font-weight: 600 !important; color: var(--text) !important;
  max-width: 62%; margin: 0 8px; cursor: pointer;
  transition: transform .18s var(--al-ease), opacity .2s ease !important;
  -webkit-tap-highlight-color: transparent;
}
.al-title-pill span:first-child{
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.al-title-pill .icon{ color: var(--text-dim); flex-shrink: 0; }
.al-title-pill:active{ transform: scale(.96) !important; opacity: .8; }

.al-next-btn{
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: transparent !important; border: none !important;
  color: var(--text-dim) !important; display: flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0 !important;
  transition: transform .18s var(--al-ease), opacity .2s ease !important;
}
.al-next-btn:active{ transform: scale(.85) !important; opacity: .6; }
.al-next-btn[disabled]{ opacity: .25; pointer-events: none; }

/* ---------- Popover ukuran huruf, muncul saat tombol "Aa" ditekan ---------- */
.al-font-pop{
  position: absolute; top: 100%; left: 14px; margin-top: 6px;
  display: none; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 8px 12px;
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  z-index: 50;
}
.al-font-pop.show{ display: flex; animation: alSheetUp .22s var(--al-ease-soft); }
.al-font-pop-label{ font-size: 11.5px; color: var(--text-dim); font-weight: 600; }

.fbtn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 0 !important;
  background: var(--surface-2) !important; color: var(--text) !important; border: none !important;
  transition: transform .18s var(--al-ease), opacity .18s ease !important;
}
.fbtn:active { transform: scale(.88); opacity: .8; }

/* ---------- Chip: lanjutkan terakhir dibaca ---------- */
.last-read-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
  cursor: pointer;
  transition: transform .2s var(--al-ease), box-shadow .2s ease;
}
.last-read-chip:active { transform: scale(.97); }

/* ---------- Tab Perjanjian ---------- */
.testament-tabs {
  display: flex;
  gap: 6px;
  background: var(--surface-2);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
  position: relative;
}

.tt {
  flex: 1;
  text-align: center;
  padding: 9px 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  cursor: pointer;
  transition: color .25s ease;
  position: relative; z-index: 1;
}

.tt.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 3px 10px rgba(0,0,0,.08);
  animation: alTabPop .32s var(--al-ease);
}
@keyframes alTabPop{ from{ transform: scale(.94); } to{ transform: scale(1); } }

/* ---------- Grid kitab & pasal ---------- */
.book-grid, .chapter-grid {
  display: grid;
  gap: 9px;
}

.book-grid { grid-template-columns: repeat(3, 1fr); }
.chapter-grid { grid-template-columns: repeat(5, 1fr); margin-bottom: 18px; }

.book-chip, .chapter-chip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 6px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .22s var(--al-ease), border-color .22s ease, box-shadow .22s ease, background .22s ease;
  animation: alGridIn .38s var(--al-ease-soft) backwards;
  animation-delay: calc(min(var(--i, 0), 26) * 16ms);
}

/* Kitab yang sedang dibaca -> ditandai isian lembut, seperti referensi */
.book-chip.current, .chapter-chip.current {
  background: var(--al-parchment);
  border-color: color-mix(in oklch, var(--accent) 45%, var(--border));
  color: var(--accent-deep);
}
@keyframes alGridIn{
  from{ opacity: 0; transform: translateY(8px) scale(.96); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

.chapter-chip { padding: 11px 0; font-size: 13.5px; }

.book-chip:hover, .chapter-chip:hover {
  border-color: color-mix(in oklch, var(--accent) 45%, var(--border));
  box-shadow: 0 6px 16px rgba(150,105,43,.14);
}
.book-chip:active, .chapter-chip:active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(.94);
  transition-duration: .1s;
}

/* ---------- Kartu unduh offline (ringkas) ---------- */
.offline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 18px;
}

.offline-text {
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.offline-track {
  background: var(--surface-2);
  border-radius: 8px;
  height: 6px;
  overflow: hidden;
  margin: 8px 0 12px 0;
}

.offline-fill {
  background: linear-gradient(90deg, var(--al-amber-2), var(--accent));
  height: 100%;
  width: 0%;
  border-radius: 8px;
  transition: width .5s var(--al-ease);
}

.btn-outline {
  width: 100%;
  background: transparent !important;
  color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  padding: 10px !important;
  font-size: 13px !important;
  transition: transform .18s var(--al-ease), background .2s ease !important;
}
.btn-outline:active { transform: scale(.97); background: color-mix(in oklch, var(--accent) 12%, transparent) !important; }

.download-status {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 8px;
  min-height: 14px;
}

/* ---------- Bacaan pasal ---------- */
.judul-kitab {
  margin: 4px 0 14px 0;
  font-size: 20px;
  font-weight: 600;
  font-family: 'Fraunces', 'Lora', 'Georgia', serif;
  letter-spacing: -.01em;
}

.isi-alkitab {
  background: transparent;
  border: none;
  padding: 6px 2px 22px 2px;
  line-height: 1.9;
  font-size: var(--verse-size, 16px);
  font-family: 'Lora', serif;
  animation: alFadeUp .4s var(--al-ease-soft);
  color: var(--text);
  direction: ltr;
  text-align: left;
}

.verse-section-title {
  font-weight: 600;
  font-family: 'Fraunces', serif;
  color: var(--accent-deep);
  margin: 22px 0 12px 0;
  font-size: 1.05em;
}
.verse-section-title:first-child { margin-top: 0; }

/* ---------- Ayat: teks polos mengalir seperti buku, tanpa kartu -
   kartu putih baru muncul saat ayat ditekan lama (lihat js/verse-context-menu.js) ---------- */
.verse-line {
  margin: 0;
  padding: 5px 10px;
  border-radius: 12px;
  cursor: pointer;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s var(--al-ease), box-shadow .25s ease, transform .15s var(--al-ease);
  direction: ltr;
  text-align: left;
  unicode-bidi: embed;
}
.verse-line:active { transform: scale(.99); }

.verse-num {
  font-weight: 700;
  color: var(--accent-warm);
  font-size: 0.7em;
  vertical-align: super;
  margin-right: 4px;
}

/* Ayat yang sedang disorot (tekan lama) -> jadi kartu putih terangkat,
   mengikuti referensi desain. Warna sorot ayat (highlight permanen) dipasang
   lewat inline style backgroundColor dari js/verse-context-menu.js. */
.verse-line.selected {
  background: var(--surface);
  box-shadow: 0 6px 18px rgba(30,25,15,.14);
  animation: alVerseGlow .35s var(--al-ease-soft);
}
@keyframes alVerseGlow{
  0%{ transform: scale(.98); } 60%{ transform: scale(1.005); } 100%{ transform: scale(1); }
}
.verse-line.has-highlight{ box-shadow: none; }

/* Warna sorot (kuning/hijau/pink/biru/ungu) selalu pastel terang, apa pun
   temanya. Di Mode Gelap warna teks (var(--text)) jadi terang juga, sehingga
   teks yang disorot tidak terbaca (terang di atas terang). Paksa teks &
   nomor ayat yang disorot memakai warna gelap supaya tetap kontras di
   kedua tema. */
html.dark-mode .verse-line.has-highlight,
body.dark-mode .verse-line.has-highlight{
  color: #1a1408 !important;
}
html.dark-mode .verse-line.has-highlight .verse-num,
body.dark-mode .verse-line.has-highlight .verse-num{
  color: #6b4a12 !important;
}

.loading-msg {
  text-align: center;
  color: var(--text-dim);
  padding: 30px 10px;
  font-size: 13px;
  line-height: 1.7;
}
.loading-msg::before{
  content: "";
  display: block; width: 26px; height: 26px; margin: 0 auto 14px auto;
  border-radius: 50%;
  border: 2.5px solid var(--surface-3);
  border-top-color: var(--accent);
  animation: alSpin .8s linear infinite;
}
@keyframes alSpin{ to{ transform: rotate(360deg); } }

/* Tombol kecil "pin"/"bahasa asli" inline per-ayat dari verseNotes.js &
   verseInsight.js kini digantikan oleh menu tekan-lama (lihat vcm-* di bawah),
   supaya teks bacaan tetap bersih seperti referensi. Fungsinya tetap aktif,
   hanya tombol inline-nya yang disembunyikan. */
.verse-note-btn, .verse-insight-btn{ display: none !important; }

.chapter-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.chnav-btn {
  flex: 1;
  background: var(--surface-2) !important;
  color: var(--accent) !important;
  border: none !important;
  padding: 11px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  transition: transform .18s var(--al-ease), background .2s ease !important;
}
.chnav-btn:active:not(:disabled) { transform: scale(.95); background: color-mix(in oklch, var(--accent) 16%, var(--surface-2)) !important; }
.chnav-btn:disabled { opacity: .4; }

/* =================================================================
   VIEW: LANDING (Beranda Alkitab)
   ================================================================= */

.al-hero-title {
  font-family: 'Fraunces', 'Lora', 'Georgia', serif;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin: 4px 0 6px 0;
  background: linear-gradient(100deg, var(--text) 40%, var(--al-amber-2) 70%, var(--text) 100%);
  -webkit-background-clip: text; background-clip: text;
  animation: alFadeUp .5s var(--al-ease-soft);
}
.al-hero-sub {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 90%;
  animation: alFadeUp .55s var(--al-ease-soft) .04s backwards;
}
.al-hero-rule {
  width: 40px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--al-amber-2), var(--al-amber-3));
  margin: 14px 0 18px 0;
  animation: alRuleGrow .6s var(--al-ease-soft) .1s backwards;
}
@keyframes alFadeUp{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: translateY(0); } }
@keyframes alRuleGrow{ from{ width: 0; opacity: 0; } to{ width: 40px; opacity: 1; } }

.al-searchrow {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.al-searchbox {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px;
  color: var(--text-faint); font-size: 13px;
  cursor: pointer;
  transition: border-color .2s ease, transform .18s var(--al-ease), box-shadow .2s ease;
}
.al-searchrow:has(.al-searchbox:active) .al-searchbox,
.al-searchbox:active { transform: scale(.985); border-color: color-mix(in oklch, var(--accent) 50%, var(--border)); }
.al-searchbox input {
  border: none; background: transparent; outline: none;
  font-family: inherit; font-size: 13px; color: var(--text);
  width: 100%;
}
.al-iconbtn {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); cursor: pointer;
  transition: transform .2s var(--al-ease), background .2s ease, box-shadow .2s ease;
}
.al-iconbtn:hover{ box-shadow: 0 4px 12px rgba(150,105,43,.16); }
.al-iconbtn:active { transform: scale(.88) rotate(-6deg); }

.al-verse-hero {
  border-radius: 26px; padding: 26px 22px 22px 22px; margin-bottom: 24px;
  background: conic-gradient(from var(--al-angle) at 30% 20%,
    #3a2c14 0deg, #6b4a1e 90deg, #96692b 180deg, #6b4a1e 270deg, #3a2c14 360deg);
  color: #fdf3dd; position: relative; overflow: hidden;
  animation: alFadeUp .6s var(--al-ease-soft) .06s backwards, alAngleDrift 14s linear infinite;
  box-shadow: 0 16px 34px rgba(60,40,10,.28);
}
@keyframes alAngleDrift{ from{ --al-angle: 135deg; } to{ --al-angle: 495deg; } }
.al-verse-hero::before{
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120px 120px at 88% 8%, rgba(255,220,150,.35), transparent 70%),
    radial-gradient(160px 160px at -5% 100%, rgba(0,0,0,.25), transparent 70%);
  pointer-events: none;
}
.al-verse-hero .verse-eyebrow {
  color: #f3d495 !important; position: relative; z-index: 1;
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.al-verse-hero .verse-eyebrow .icon { color: #f3d495 !important; animation: alSunPulse 2.6s ease-in-out infinite; }
@keyframes alSunPulse{ 0%,100%{ opacity: 1; transform: scale(1); } 50%{ opacity: .7; transform: scale(1.12); } }
.al-verse-hero #daily-verse-ref {
  font-size: 13.5px; font-weight: 700; letter-spacing: .03em;
  color: #f3d495; margin: 12px 0 10px 0; position: relative; z-index: 1;
}
.al-verse-hero #daily-verse-text {
  font-family: 'Fraunces', 'Lora', serif; font-style: italic; font-size: 20px;
  line-height: 1.55; color: #fff6e6; margin-bottom: 18px; position: relative; z-index: 1;
}
.al-verse-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(120deg, var(--accent), var(--al-amber-2)) !important;
  color: #2b2110 !important;
  border: none !important; border-radius: 999px !important;
  padding: 11px 18px !important; font-size: 13px !important;
  font-weight: 700 !important; cursor: pointer;
  position: relative; z-index: 1;
  transition: transform .2s var(--al-ease), box-shadow .2s ease !important;
}
.al-verse-btn:hover{ box-shadow: 0 8px 20px rgba(0,0,0,.25) !important; }
.al-verse-btn:active { transform: scale(.94) !important; }
.al-verse-btn .icon{ transition: transform .25s var(--al-ease); }
.al-verse-btn:hover .icon{ transform: translateX(4px) rotate(180deg) scaleX(-1); }

.al-section-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 14.5px; margin: 0 0 12px 0;
}
.al-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin: 0 0 12px 0;
}
.al-section-link { font-size: 12px; font-weight: 600; color: var(--accent-deep) !important; cursor: pointer; transition: opacity .2s ease; }
.al-section-link:active{ opacity: .55; }

.al-quickrow {
  display: flex; gap: 10px; margin-bottom: 24px;
}
.al-quickcard {
  flex: 1; display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 13px 12px; cursor: pointer;
  transition: transform .2s var(--al-ease), box-shadow .2s ease, border-color .2s ease;
}
.al-quickcard:hover{ box-shadow: 0 8px 18px rgba(150,105,43,.12); border-color: color-mix(in oklch, var(--accent) 35%, var(--border)); }
.al-quickcard:active { transform: scale(.97); }
.al-quickcard .icon-wrap {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-2); display: flex; align-items: center;
  justify-content: center; color: var(--accent);
  transition: transform .3s var(--al-ease);
}
.al-quickcard:hover .icon-wrap{ transform: rotate(-8deg) scale(1.08); }
.al-quickcard h4 { font-size: 13px; font-weight: 700; margin-bottom: 2px; }
.al-quickcard p { font-size: 11px; color: var(--text-dim); }

.al-continue-row {
  display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 24px;
  scroll-snap-type: x proximity;
}
.al-continue-card {
  flex: 0 0 auto; width: 150px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 14px;
  cursor: pointer; scroll-snap-align: start;
  transition: transform .2s var(--al-ease), box-shadow .2s ease;
}
.al-continue-card:hover{ box-shadow: 0 8px 18px rgba(150,105,43,.12); }
.al-continue-card:active { transform: scale(.96); }
.al-continue-card .cc-ref { font-size: 12.5px; font-weight: 700; margin-bottom: 6px; }
.al-continue-card .cc-text {
  font-size: 11.5px; color: var(--text-dim); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 44px;
}
.al-continue-card .cc-date { font-size: 10px; color: var(--text-faint); margin-top: 8px; }
.al-continue-empty {
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: 16px; padding: 18px; text-align: center;
  color: var(--text-dim); font-size: 12.5px; margin-bottom: 24px;
}

.al-explore-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 10px;
}
.al-explore-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 16px 10px; text-align: center; cursor: pointer;
  transition: transform .2s var(--al-ease), box-shadow .2s ease, border-color .2s ease;
}
.al-explore-card:hover{ box-shadow: 0 8px 18px rgba(150,105,43,.12); border-color: color-mix(in oklch, var(--accent) 35%, var(--border)); }
.al-explore-card:active { transform: scale(.95); }
.al-explore-card .icon-wrap {
  width: 44px; height: 44px; border-radius: 14px; margin: 0 auto 10px auto;
  background: var(--surface-2); display: flex; align-items: center;
  justify-content: center; color: var(--accent);
  transition: transform .3s var(--al-ease), background .3s ease;
}
.al-explore-card:hover .icon-wrap{ transform: scale(1.1) rotate(6deg); background: color-mix(in oklch, var(--accent) 16%, var(--surface-2)); }
.al-explore-card h4 { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.al-explore-card p { font-size: 10.5px; color: var(--text-dim); }

/* ---------- Overlay list (Ayat Favorit / Rhema Ku / pilih ayat) ---------- */
.al-overlay {
  position: fixed; inset: 0; background: rgba(20,14,6,.55);
  z-index: 999997; display: flex; align-items: flex-end; justify-content: center;
  backdrop-filter: blur(4px);
  animation: alOverlayIn .22s ease;
}
@keyframes alOverlayIn{ from{ opacity: 0; } to{ opacity: 1; } }
.al-sheet {
  width: 100%; max-width: 480px; max-height: 78vh; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px 24px 0 0; padding: 18px 18px 24px 18px;
  animation: alSheetUp .32s var(--al-ease-soft);
}
@keyframes alSheetUp { from{ transform:translateY(40px); opacity:0; } to{ transform:translateY(0); opacity:1; } }
.al-sheet-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font-weight: 700; font-size: 15px;
}
.al-sheet-head .al-sheet-close { margin-left: auto; color: var(--text-faint); cursor: pointer; transition: transform .2s var(--al-ease); }
.al-sheet-head .al-sheet-close:active{ transform: scale(.85) rotate(90deg); }
.al-sheet-item {
  background: var(--surface-2); border-radius: 14px; padding: 13px 14px;
  margin-bottom: 8px; cursor: pointer;
  transition: transform .18s var(--al-ease), background .2s ease;
}
.al-sheet-item:active { transform: scale(.97); background: color-mix(in oklch, var(--accent) 10%, var(--surface-2)); }
.al-sheet-item .si-ref { font-size: 12.5px; font-weight: 700; color: var(--accent-deep); margin-bottom: 4px; }
.al-sheet-item .si-text { font-size: 12.5px; color: var(--text); line-height: 1.55; }
.al-sheet-item .si-date { font-size: 10.5px; color: var(--text-faint); margin-top: 6px; }
.al-sheet-empty { text-align: center; color: var(--text-dim); font-size: 12.5px; padding: 30px 10px; }

/* ---------- Ripple (dipasang lewat js/alkitab-enhance.js) ---------- */
.al-ripple{
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 70%);
  transform: scale(0); opacity: .9;
  animation: alRippleOut .55s ease-out forwards;
}
@keyframes alRippleOut{ to{ transform: scale(2.6); opacity: 0; } }

/* ---------- View Transitions (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference){
  ::view-transition-old(al-view){ animation: alViewOut .28s var(--al-ease) both; }
  ::view-transition-new(al-view){ animation: alViewIn .32s var(--al-ease-soft) both; }
}
@keyframes alViewOut{ from{ opacity: 1; transform: translateY(0) scale(1); } to{ opacity: 0; transform: translateY(-6px) scale(.99); } }
@keyframes alViewIn{ from{ opacity: 0; transform: translateY(10px) scale(1.01); } to{ opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- Reveal saat discroll (progressive; browser lama tetap terlihat penuh) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference){
    .al-quickcard, .al-explore-card, .al-continue-card{
      animation: alScrollReveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
    @keyframes alScrollReveal{ from{ opacity: .3; transform: translateY(14px) scale(.97); } to{ opacity: 1; transform: translateY(0) scale(1); } }
  }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =================================================================
   MENU AYAT (tekan lama) — Copy / Interpret / Share / Save / Add note
   + baris pilihan warna sorot. Lihat js/verse-context-menu.js
   ================================================================= */
.vcm-overlay{
  position: fixed; inset: 0; z-index: 999995;
  background: transparent;
  display: none;
}
.vcm-overlay.show{ display: block; }

.vcm-menu{
  position: fixed; z-index: 999996;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(20,14,6,.28);
  opacity: 0; pointer-events: none;
  transform: translateY(6px) scale(.96);
  transform-origin: top center;
  transition: opacity .16s var(--al-ease), transform .16s var(--al-ease);
}
.vcm-menu.show{ opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }

.vcm-item{
  display: flex; align-items: center; gap: 10px;
  padding: 10px 10px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500; color: var(--text);
  cursor: pointer; transition: background .15s ease;
}
.vcm-item .icon{ color: var(--text-dim); flex-shrink: 0; }
.vcm-item:active{ background: var(--surface-2); }

.vcm-colors{
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; padding: 10px 8px 4px 8px; margin-top: 4px;
  border-top: 1px solid var(--border);
}
.vcm-swatch{
  width: 26px; height: 26px; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--border);
  background: var(--swatch-color, transparent);
  transition: transform .15s var(--al-ease), border-color .15s ease;
}
.vcm-swatch:active{ transform: scale(.85); }
.vcm-swatch.active{ border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in oklch, var(--accent) 30%, transparent); }
.vcm-swatch-none{
  background:
    linear-gradient(45deg, transparent 46%, #d33 48%, #d33 52%, transparent 54%),
    var(--surface-2);
}
