

/* ─── HEADER ─────────────────────────────── */
.pp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background:var(--bg-header);
  backdrop-filter:blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 12px var(--shadow-color);
}

.pp-header-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
}

.pp-back-btn,
.pp-search-toggle-btn {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 12px;
  background:var(--brand-light);
  color:var(--brand);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
}
.pp-back-btn:active,
.pp-search-toggle-btn:active {
  transform: scale(0.92);
}

/* ─── SEARCH BAR ─────────────────────────── */
.pp-search-bar {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: #fff;
  border-bottom: 1px solid var(--border-color);
}
.pp-search-bar.open {
  max-height: 72px;
  padding: 10px 16px;
}
.pp-search-inner {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  border-radius: 14px;
  padding: 0 12px;
  gap: 8px;
}
.pp-search-icon {
  color: var(--accent);
  font-size: 13px;
  flex-shrink: 0;
}
.pp-search-input {
  flex: 1;
  height: 42px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-primary);
  outline: none;
}
.pp-search-input::placeholder { color: var(--text-secondary); }
.pp-search-clear {
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  padding: 4px;
  display: none;
}
.pp-search-clear.visible { display: flex; }

/* ─── BODY ───────────────────────────────── */
.pp-body {
  padding: 0 0 100px;
  background: var(--bg-primary);
  min-height: 100vh;
}

/* ─── HERO ───────────────────────────────── */
.pp-hero {
  margin: 0;
  padding: 28px 20px 24px;
  background: linear-gradient(145deg, #3b1f08, #7a4f2d, #c49a5a);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pp-hero-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  backdrop-filter: blur(4px);
}
.pp-hero-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
}
.pp-hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}
.pp-hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 12px;
  background: rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 12px 0;
}
.pp-hero-stat {
  flex: 1;
  text-align: center;
}
.pp-hero-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}
.pp-hero-stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}
.pp-hero-stat-divider {
  width: 1px;
  height: 32px;
  background: rgba(255,255,255,0.2);
}

/* ─── SECTION LABEL ──────────────────────── */
.pp-section-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 20px 18px 8px;
}

/* ─── LIST ───────────────────────────────── */
.pp-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 14px;
}

/* ─── LOADING ────────────────────────────── */
.pp-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 0;
  color: var(--text-secondary);
  font-size: 13px;
}
.pp-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: pp-spin 0.7s linear infinite;
}
@keyframes pp-spin { to { transform: rotate(360deg); } }

/* ─── BAB CARD ───────────────────────────── */
.pp-bab-card {
  background: var(--bg-card);
  border-radius: 18px;
  border: 1.5px solid var(--border-color);
  overflow: hidden;
  box-shadow: 0 2px 12px var(--shadow-color);
  transition: box-shadow var(--transition-base);
}
.pp-bab-card.open {
  box-shadow: 0 4px 24px var(--shadow-color);
  border-color: var(--accent);
}

.pp-bab-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
}
.pp-bab-header:active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(176,138,92,0.08);
}

.pp-bab-num {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.2;
}
.pp-bab-card.open .pp-bab-num {
  background: var(--accent);
  color: #fff;
}

.pp-bab-info {
  flex: 1;
  min-width: 0;
}
.pp-bab-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pp-bab-judul {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pp-bab-meta {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.pp-bab-chevron {
  color: var(--text-secondary);
  font-size: 13px;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.pp-bab-card.open .pp-bab-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

/* ─── BAB CONTENT ────────────────────────── */
.pp-bab-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
}
.pp-bab-card.open .pp-bab-content {
  max-height: 9999px;
}

.pp-bab-inner {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── PASAL CARD ─────────────────────────── */
.pp-pasal-card {
  background: var(--bg-primary);
  border-radius: 14px;
  border: 1px solid var(--border-color);
  overflow: hidden;
}
.pp-pasal-card.open {
  border-color: var(--accent);
}

.pp-pasal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.pp-pasal-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pp-pasal-card.open .pp-pasal-num {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.pp-pasal-info { flex: 1; min-width: 0; }
.pp-pasal-label {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
}
.pp-pasal-judul {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pp-pasal-chevron {
  color: var(--text-secondary);
  font-size: 12px;
  transition: transform var(--transition-base);
  flex-shrink: 0;
}
.pp-pasal-card.open .pp-pasal-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

/* ─── PASAL CONTENT ──────────────────────── */
.pp-pasal-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(.4,0,.2,1);
}
.pp-pasal-card.open .pp-pasal-content {
  max-height: 9999px;
}
.pp-pasal-inner {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── AYAT ───────────────────────────────── */
.pp-ayat {
  display: flex;
  gap: 10px;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 11px 12px;
  border: 1px solid var(--border-color);
}
.pp-ayat-num {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 22px;
}
.pp-ayat-isi {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ─── SEARCH HIGHLIGHT ───────────────────── */
.pp-highlight {
  background: #fef3c7;
  color: #b45309;
  border-radius: 3px;
  padding: 0 2px;
  font-weight: 700;
}

/* ─── EMPTY ──────────────────────────────── */
.pp-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--text-secondary);
  font-size: 13px;
}
.pp-empty i {
  font-size: 32px;
  color: var(--border-color);
  display: block;
  margin-bottom: 12px;
}

/* ─── FAB ────────────────────────────────── */
.pp-fab {
  position: fixed;
  bottom: 88px;
  right: 18px;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 18px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(176,138,92,0.35);
  cursor: pointer;
  z-index: 90;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.pp-fab:active {
  transform: scale(0.92);
}

/* ─── OVERLAY ────────────────────────────── */
.pp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 110;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}
.pp-overlay.active {
  opacity: 1;
  pointer-events: all;
}

/* ─── BOTTOM SHEET ───────────────────────── */
.pp-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-radius: 24px 24px 0 0;
  z-index: 120;
  padding: 12px 16px 40px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.12);
}
.pp-sheet.open {
  transform: translateY(0);
}
.pp-sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--border-color);
  margin: 0 auto 16px;
}
.pp-sheet-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 14px;
}
.pp-sheet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pp-sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-primary);
  border-radius: 14px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: border-color var(--transition-base), background var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}
.pp-sheet-item:active {
  background: var(--accent-light);
  border-color: var(--accent);
}
.pp-sheet-item-num {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
  line-height: 1.2;
}
.pp-sheet-item-judul {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}