/* ════════════════════════════════════════════════════════════════════════════
   HARAMAIN COMPANION — quran-v2.css  v1.0
   Quran-Modul Neugestaltung — Variant B (Teal / Gold / Dark)

   Inhalt:
   - Design-Tokens (CSS-Variablen, scoped auf .hcq-app)
   - Container + Header + Bottom-Nav
   - Screen 1: Smart-Home (Hero, Khatm, Smart-Aktionen, Verlauf)
   - Screen 2: Suren-Liste (Suche, Filter-Tabs, 114 Suren)
   - Screen 3: Read-View (Vers-Karten, Audio-Player, Vers-Aktionen)
   - Tafsir-Funktion entfernt (kommt in zukünftiger Phase)
   - Skeleton-Loading + Mode-Variants

   Erstellt: 09.05.2026
   Prefix:  .hcq-* (Haramain Companion Quran)
   Container-scope: alle Styles innerhalb .hcq-app
   ════════════════════════════════════════════════════════════════════════════ */

/* ─── Design-Tokens (scoped) ───────────────────────────────────────────────── */
.hcq-app {
  --hcq-bg-deep:    #0a1814;
  --hcq-bg-mid:     #0f2620;
  --hcq-bg-soft:    rgba(15,38,32,0.5);
  --hcq-bg-soft2:   rgba(15,38,32,0.7);
  --hcq-teal:       #2dd4bf;
  --hcq-teal-soft:  rgba(45,212,191,0.15);
  --hcq-teal-line:  rgba(45,212,191,0.25);
  --hcq-teal-glow:  rgba(45,212,191,0.4);
  --hcq-gold:       #d4a843;
  --hcq-gold-soft:  rgba(212,168,67,0.15);
  --hcq-gold-line:  rgba(212,168,67,0.4);
  --hcq-text:       #e8f3ef;
  --hcq-text-mid:   #b8d4cc;
  --hcq-text-mut:   #8db3a8;
  --hcq-text-sub:   #5a8a7e;
  --hcq-active-glow: 0 0 0 2px rgba(212,168,67,0.5), 0 0 22px rgba(212,168,67,0.18);
}

/* ─── Container (Vollbild-Overlay) ─────────────────────────────────────────── */
.hcq-app {
  position: fixed; inset: 0; z-index: 9050;
  background: var(--hcq-bg-deep);
  color: var(--hcq-text);
  display: none;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
}
.hcq-app.is-open { display: flex; }
.hcq-app * { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
.hcq-app button { font-family: inherit; }

/* Scroll-Bereich pro Screen */
.hcq-screen {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 100px;
  display: none;
}
.hcq-screen.is-active { display: block; }
/* Audio-Player aktiv → 200px Platz unten damit letzte Sure (113/114) sichtbar */
.hcq-app.is-audio-active .hcq-screen { padding-bottom: 200px; }

/* ─── Header ──────────────────────────────────────────────────────────────── */
.hcq-header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(180deg, var(--hcq-bg-mid) 0%, var(--hcq-bg-deep) 100%);
  border-bottom: 1px solid var(--hcq-teal-line);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
}
.hcq-back, .hcq-icon-btn {
  background: var(--hcq-teal-soft); border: none;
  width: 38px; height: 38px; border-radius: 11px;
  color: var(--hcq-teal); font-size: 17px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background-color 0.15s;
}
.hcq-back:hover, .hcq-icon-btn:hover { background: rgba(45,212,191,0.22); }
.hcq-title-block { flex: 1; min-width: 0; }
.hcq-title {
  font-size: 17px; font-weight: 600;
  color: var(--hcq-teal);
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hcq-title-arabic {
  font-family: 'Amiri','Scheherazade New','Traditional Arabic', serif;
  color: var(--hcq-gold); font-size: 18px;
}
.hcq-subtitle {
  font-size: 11px; color: var(--hcq-text-mut); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Schrift-Toggle (im Read-Screen Header) */
.hcq-font-toggle {
  background: var(--hcq-teal-soft); border: none;
  padding: 6px 11px; border-radius: 9px;
  color: var(--hcq-teal); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background-color 0.15s;
}
.hcq-font-toggle:hover { background: rgba(45,212,191,0.22); }

/* Mode-Toggle (AR / AR+Übersetzung) */
.hcq-mode-toggle {
  background: var(--hcq-teal-soft); border: none;
  padding: 6px 10px; border-radius: 9px;
  color: var(--hcq-teal); font-size: 11px; font-weight: 600;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREEN 1 — SMART-HOME
   ═══════════════════════════════════════════════════════════════════════════ */

.hcq-hero {
  margin: 14px 14px 12px;
  background:
    linear-gradient(135deg, rgba(26,58,50,0.92) 0%, rgba(15,38,32,0.92) 50%, rgba(26,40,32,0.95) 100%),
    url('./hero-bg.jpg') center / cover no-repeat;
  border: 1px solid var(--hcq-gold-line);
  border-radius: 18px; padding: 18px;
  position: relative; overflow: hidden;
}
.hcq-hero::before {
  /* Subtiler radialer Akzent statt Moschee-Emoji */
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(212,168,67,0.18) 0%, transparent 55%);
  pointer-events: none;
}
.hcq-hero-tag {
  display: inline-block; padding: 4px 10px;
  background: var(--hcq-gold-soft); color: var(--hcq-gold);
  border-radius: 20px; font-size: 10px; font-weight: 700;
  letter-spacing: 1.2px; margin-bottom: 10px;
}
.hcq-hero-arabic {
  font-family: 'Amiri','Scheherazade New', serif;
  font-size: 32px; color: var(--hcq-gold);
  direction: rtl; margin-bottom: 6px; line-height: 1.2;
}
.hcq-hero-title { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.hcq-hero-meta { font-size: 11px; color: var(--hcq-text-sub); margin-bottom: 12px; }
.hcq-hero-reason {
  font-size: 12px; color: var(--hcq-text-mid); line-height: 1.5;
  padding: 9px 11px;
  background: var(--hcq-teal-soft);
  border-left: 3px solid var(--hcq-teal); border-radius: 6px;
  margin-bottom: 14px;
}
.hcq-hero-actions { display: flex; gap: 8px; }
.hcq-hero-btn-primary {
  flex: 1; padding: 11px;
  background: var(--hcq-teal); color: var(--hcq-bg-deep);
  border: none; border-radius: 11px;
  font-size: 13px; font-weight: 700; cursor: pointer;
}
.hcq-hero-btn-secondary {
  padding: 11px 14px;
  background: var(--hcq-gold-soft);
  border: 1px solid var(--hcq-gold-line); border-radius: 11px;
  color: var(--hcq-gold); font-size: 14px; cursor: pointer;
}

/* Khatm-Tracker */
.hcq-khatm {
  margin: 0 14px 14px;
  background: var(--hcq-bg-soft); border: 1px solid var(--hcq-teal-line);
  border-radius: 14px; padding: 14px;
}
.hcq-khatm-row { display: flex; justify-content: space-between; margin-bottom: 10px; }
.hcq-khatm-title { font-size: 12px; color: var(--hcq-text-mid); font-weight: 600; }
.hcq-khatm-num { font-size: 12px; color: var(--hcq-gold); font-weight: 700; }
.hcq-khatm-bar {
  height: 6px; background: rgba(45,212,191,0.1);
  border-radius: 3px; overflow: hidden; margin-bottom: 8px;
}
.hcq-khatm-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hcq-teal) 0%, var(--hcq-gold) 100%);
  transition: width 0.3s;
}
.hcq-khatm-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--hcq-text-sub); }

/* Smart-Aktionen */
.hcq-smart-section { padding: 0 14px 14px; }
.hcq-smart-title {
  font-size: 10px; color: var(--hcq-text-sub);
  letter-spacing: 1.5px; margin-bottom: 10px; font-weight: 600;
}
.hcq-smart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hcq-smart-card {
  background: var(--hcq-bg-soft); border: 1px solid var(--hcq-teal-line);
  border-radius: 12px; padding: 12px; cursor: pointer;
  position: relative; transition: border-color 0.15s, transform 0.1s;
}
.hcq-smart-card:hover { border-color: var(--hcq-teal); }
.hcq-smart-card:active { transform: scale(0.98); }
.hcq-smart-card::after {
  content: '›'; position: absolute; right: 10px; top: 10px;
  color: var(--hcq-text-sub); font-size: 14px;
}
.hcq-smart-icon { font-size: 22px; margin-bottom: 6px; }
.hcq-smart-name { font-size: 13px; font-weight: 600; color: var(--hcq-text); }
.hcq-smart-meta { font-size: 10px; color: var(--hcq-text-mut); margin-top: 2px; }
.hcq-smart-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--hcq-gold); color: var(--hcq-bg-deep);
  padding: 2px 6px; border-radius: 4px;
  font-size: 8px; font-weight: 700; letter-spacing: 0.5px;
}

/* Zuletzt gelesen */
.hcq-recent-section { padding: 0 14px; }
.hcq-section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.hcq-section-head-title {
  font-size: 10px; color: var(--hcq-text-sub);
  letter-spacing: 1.5px; font-weight: 600;
}
.hcq-section-head-link {
  font-size: 11px; color: var(--hcq-teal); cursor: pointer;
  background: none; border: none; padding: 0;
}
.hcq-sura-mini {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; margin-bottom: 6px;
  background: var(--hcq-bg-soft); border: 1px solid var(--hcq-teal-line);
  border-radius: 10px; cursor: pointer;
  transition: border-color 0.15s;
}
.hcq-sura-mini:hover { border-color: var(--hcq-teal); }
.hcq-sura-mini-num {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--hcq-teal-soft); color: var(--hcq-teal);
  font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hcq-sura-mini-info { flex: 1; min-width: 0; }
.hcq-sura-mini-name { font-size: 13px; color: var(--hcq-text); font-weight: 600; }
.hcq-sura-mini-meta { font-size: 10px; color: var(--hcq-text-sub); }
.hcq-sura-mini-arabic {
  font-family: 'Amiri', serif; font-size: 20px;
  color: var(--hcq-gold); direction: rtl;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREEN 2 — SUREN-LISTE
   ═══════════════════════════════════════════════════════════════════════════ */

.hcq-search-bar {
  margin: 14px; padding: 12px 14px;
  background: var(--hcq-bg-soft); border: 1px solid var(--hcq-teal-line);
  border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
}
.hcq-search-icon { color: var(--hcq-text-sub); font-size: 14px; }
.hcq-search-input {
  flex: 1; background: none; border: none; outline: none;
  color: var(--hcq-text); font-size: 13px;
  font-family: inherit;
}
.hcq-search-input::placeholder { color: var(--hcq-text-sub); }

.hcq-filter-tabs {
  padding: 0 14px 14px;
  display: flex; gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.hcq-filter-tabs::-webkit-scrollbar { display: none; }
.hcq-filter-tab {
  padding: 6px 12px; background: transparent;
  border: 1px solid var(--hcq-teal-line); border-radius: 18px;
  color: var(--hcq-text-mut); font-size: 11px;
  cursor: pointer; white-space: nowrap; flex-shrink: 0;
  display: flex; align-items: center; gap: 5px;
  transition: all 0.15s;
}
.hcq-filter-tab.is-active {
  background: var(--hcq-teal); color: var(--hcq-bg-deep);
  border-color: var(--hcq-teal);
}
.hcq-filter-count {
  font-size: 9px; padding: 1px 5px;
  background: rgba(255,255,255,0.15); border-radius: 10px;
}
.hcq-filter-tab.is-active .hcq-filter-count { background: rgba(0,0,0,0.2); }

.hcq-sura-list { padding: 0 14px; }
.hcq-sura-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 6px;
  background: var(--hcq-bg-soft); border: 1px solid var(--hcq-teal-line);
  border-radius: 12px; cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.hcq-sura-item:hover { border-color: var(--hcq-teal); }
.hcq-sura-item:active { transform: scale(0.99); }
.hcq-sura-item.is-hajj { border-color: var(--hcq-gold-line); }
.hcq-sura-item.is-hajj:hover { border-color: var(--hcq-gold); }

.hcq-sura-num-star {
  position: relative; width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.hcq-sura-num-star::before {
  content: ''; position: absolute; inset: 0;
  border: 1.5px solid var(--hcq-teal);
  transform: rotate(45deg); border-radius: 4px;
}
.hcq-sura-item.is-hajj .hcq-sura-num-star::before { border-color: var(--hcq-gold); }
.hcq-sura-num-star span {
  position: relative; z-index: 1;
  font-weight: 700; color: var(--hcq-teal); font-size: 12px;
}
.hcq-sura-item.is-hajj .hcq-sura-num-star span { color: var(--hcq-gold); }
.hcq-sura-info { flex: 1; min-width: 0; }
.hcq-sura-name {
  font-size: 13px; font-weight: 600; color: var(--hcq-text);
  display: flex; align-items: center; gap: 6px;
}
.hcq-sura-bookmark { color: var(--hcq-gold); font-size: 11px; }
.hcq-sura-hajj-icon {
  color: var(--hcq-gold); font-size: 10px;
  background: var(--hcq-gold-soft); padding: 1px 5px; border-radius: 4px;
}
.hcq-sura-meta { font-size: 10px; color: var(--hcq-text-mut); margin-top: 2px; }
.hcq-sura-arabic {
  font-family: 'Amiri', serif; font-size: 20px;
  color: var(--hcq-gold); direction: rtl;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SCREEN 3 — READ + AUDIO-SYNC (Paket 2.3 — Kernerlebnis)
   ═══════════════════════════════════════════════════════════════════════════ */

.hcq-read-meta {
  padding: 12px 14px;
  background: var(--hcq-bg-soft);
  border-bottom: 1px solid var(--hcq-teal-line);
  display: flex; gap: 14px; flex-wrap: wrap;
}
.hcq-read-meta-item {
  font-size: 10px; color: var(--hcq-text-mut);
  display: flex; align-items: center; gap: 4px;
}
.hcq-read-meta-item strong { color: var(--hcq-teal); }

.hcq-bismillah {
  text-align: center; padding: 24px 14px 16px;
  font-family: 'Amiri','Scheherazade New', serif;
  color: var(--hcq-gold); font-size: 22px;
  line-height: 1.3; direction: rtl;
}

/* Vers-Cards */
.hcq-verses-container { padding-bottom: 20px; }

.hcq-verse {
  margin: 0 14px 12px; padding: 14px;
  background: var(--hcq-bg-soft);
  border: 1px solid var(--hcq-teal-line);
  border-radius: 14px;
  position: relative;
  transition: border-color 0.15s, box-shadow 0.2s;
}
.hcq-verse.is-active {
  border-color: var(--hcq-gold);
  box-shadow: var(--hcq-active-glow);
}
.hcq-verse-num {
  position: absolute; top: -10px; right: 14px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--hcq-bg-deep);
  border: 1.5px solid var(--hcq-gold);
  color: var(--hcq-gold);
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.hcq-verse-arabic {
  font-family: 'Amiri','Scheherazade New','Traditional Arabic', serif;
  font-size: var(--hcq-font-ar, 22px);
  line-height: 2;
  color: var(--hcq-text);
  direction: rtl; text-align: right;
  margin-bottom: 8px; padding-top: 4px;
}
.hcq-verse-trans {
  font-size: var(--hcq-font-trans, 13px);
  color: var(--hcq-text-mid); line-height: 1.6;
}

/* Mode-Variants: Nur-AR (versteckt Übersetzung) */
.hcq-app[data-mode="ar-only"] .hcq-verse-trans { display: none; }

/* Vers-Aktionen (erscheinen beim aktiven Vers) */
.hcq-verse-actions {
  display: none;
  gap: 8px; margin-top: 12px;
  padding-top: 10px; border-top: 1px dashed var(--hcq-teal-line);
}
.hcq-verse.is-active .hcq-verse-actions { display: flex; }
.hcq-verse-action {
  flex: 1; padding: 7px;
  background: transparent; border: 1px solid var(--hcq-teal-line);
  border-radius: 8px; color: var(--hcq-text-mut);
  font-size: 10px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 4px;
  transition: all 0.15s;
}
.hcq-verse-action:hover {
  background: var(--hcq-teal-soft); color: var(--hcq-teal);
  border-color: var(--hcq-teal);
}
.hcq-verse-action.is-saved {
  color: var(--hcq-gold); border-color: var(--hcq-gold-line);
  background: var(--hcq-gold-soft);
}

/* Skeleton (Lazy-Loading) */
.hcq-verse.is-skeleton {
  background: var(--hcq-bg-soft);
  border-color: rgba(45,212,191,0.1);
  pointer-events: none;
}
.hcq-verse.is-skeleton .hcq-verse-arabic,
.hcq-verse.is-skeleton .hcq-verse-trans {
  background: linear-gradient(90deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 100%);
  background-size: 200% 100%;
  animation: hcq-shimmer 1.4s infinite;
  color: transparent; border-radius: 4px; min-height: 16px;
  margin-bottom: 8px;
}
.hcq-verse.is-skeleton .hcq-verse-arabic { min-height: 32px; }
@keyframes hcq-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Audio-Player (fixed über Bottom-Nav) */
.hcq-audio-player {
  position: fixed; left: 0; right: 0; bottom: 60px;
  background: linear-gradient(180deg, rgba(15,38,32,0.95) 0%, var(--hcq-bg-deep) 100%);
  border-top: 1px solid var(--hcq-gold-line);
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 90;
  display: none;
}
.hcq-app.is-audio-active .hcq-audio-player { display: block; }

.hcq-audio-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; margin-bottom: 8px;
}
.hcq-audio-reciter {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--hcq-teal); font-weight: 600;
  background: none; border: none; cursor: pointer;
  text-align: left; padding: 0; font-family: inherit;
}
.hcq-audio-vers { color: var(--hcq-text-mut); font-size: 10px; }
.hcq-audio-time { color: var(--hcq-text-sub); font-size: 10px; }

.hcq-audio-bar {
  height: 3px; background: rgba(45,212,191,0.15);
  border-radius: 2px; overflow: hidden; margin-bottom: 10px;
  cursor: pointer;
}
.hcq-audio-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hcq-teal), var(--hcq-gold));
  transition: width 0.2s linear;
}
.hcq-audio-controls {
  display: flex; justify-content: center; align-items: center; gap: 10px;
}
.hcq-audio-btn {
  background: var(--hcq-teal-soft); border: none;
  width: 34px; height: 34px; border-radius: 50%;
  color: var(--hcq-teal); font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.hcq-audio-btn-play {
  width: 42px; height: 42px;
  background: var(--hcq-teal); color: var(--hcq-bg-deep);
  font-size: 14px;
}
.hcq-audio-btn-speed {
  background: transparent; border: 1px solid var(--hcq-teal-line);
  width: auto; padding: 0 8px; height: 28px;
  color: var(--hcq-text-mut); font-size: 10px; border-radius: 14px;
}

/* Reciter-Auswahl-Sheet */
.hcq-reciter-sheet {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--hcq-bg-mid);
  border-top: 2px solid var(--hcq-teal);
  border-radius: 20px 20px 0 0;
  padding: 16px 16px 40px;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.6);
  z-index: 200;
  display: none;
}
.hcq-reciter-sheet.is-open { display: block; }
/* .hcq-reciter-sheet-handle siehe v1.3 Block unten — klickbar zum Schließen */
.hcq-reciter-sheet-title {
  font-size: 12px; color: var(--hcq-text-sub);
  letter-spacing: 1.5px; margin-bottom: 12px; font-weight: 600;
}
.hcq-reciter-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; margin-bottom: 6px;
  background: var(--hcq-bg-soft); border: 1px solid var(--hcq-teal-line);
  border-radius: 10px; cursor: pointer;
  font-size: 13px; color: var(--hcq-text);
  width: 100%; text-align: left; font-family: inherit;
}
.hcq-reciter-item.is-active {
  border-color: var(--hcq-teal); background: var(--hcq-teal-soft);
}
.hcq-reciter-item-name { flex: 1; }
.hcq-reciter-item-check { color: var(--hcq-teal); }

/* ═══════════════════════════════════════════════════════════════════════════
   BOTTOM-NAV
   ═══════════════════════════════════════════════════════════════════════════ */

.hcq-bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 60px;
  background: var(--hcq-bg-mid);
  border-top: 1px solid var(--hcq-teal-line);
  display: flex; align-items: center; justify-content: space-around;
  z-index: 100;
}
.hcq-nav-btn {
  flex: 1; height: 100%;
  background: none; border: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--hcq-text-mut); font-size: 9px;
  cursor: pointer; transition: color 0.15s;
}
.hcq-nav-btn.is-active { color: var(--hcq-teal); }
.hcq-nav-btn-icon { font-size: 18px; }

/* ═══════════════════════════════════════════════════════════════════════════
   EMPTY STATE / LOADING
   ═══════════════════════════════════════════════════════════════════════════ */

.hcq-empty {
  padding: 60px 20px; text-align: center;
  color: var(--hcq-text-sub);
}
.hcq-empty-icon { font-size: 40px; margin-bottom: 10px; }
.hcq-empty-text { font-size: 12px; }

/* RTL-Anpassungen für Sprachen wie AR, UR, FA */
.hcq-app[dir="rtl"] .hcq-back { transform: scaleX(-1); }
.hcq-app[dir="rtl"] .hcq-verse-num { right: auto; left: 14px; }
.hcq-app[dir="rtl"] .hcq-smart-card::after { right: auto; left: 10px; transform: scaleX(-1); }

/* ═══════════════════════════════════════════════════════════════════════════
   v1.3 BUGFIXES (09.05.2026)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Mode + Font Buttons nur auf Read-Screen sichtbar */
.hcq-app[data-screen="home"] .hcq-mode-toggle,
.hcq-app[data-screen="home"] .hcq-font-toggle,
.hcq-app[data-screen="list"] .hcq-mode-toggle,
.hcq-app[data-screen="list"] .hcq-font-toggle {
  display: none;
}

/* Settings-Sheet Sections */
.hcq-settings-section { margin-bottom: 18px; }
.hcq-settings-section-label {
  font-size: 10px; color: var(--hcq-text-sub);
  letter-spacing: 1.5px; margin-bottom: 8px; font-weight: 600;
}
.hcq-settings-row {
  display: flex; gap: 6px; flex-wrap: wrap;
}
.hcq-settings-pill {
  padding: 8px 14px;
  background: var(--hcq-bg-soft); border: 1px solid var(--hcq-teal-line);
  border-radius: 20px;
  color: var(--hcq-text-mut); font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: all 0.15s;
}
.hcq-settings-pill:hover {
  background: var(--hcq-teal-soft); color: var(--hcq-teal);
  border-color: var(--hcq-teal);
}
.hcq-settings-pill.is-active {
  background: var(--hcq-teal); color: var(--hcq-bg-deep);
  border-color: var(--hcq-teal);
}

/* Settings-Sheet Handle als klickbare Schließ-Zone */
.hcq-reciter-sheet-handle {
  cursor: pointer;
  padding: 8px 0;
  margin-top: -8px;
  margin-bottom: 6px;
}
.hcq-reciter-sheet-handle::after {
  content: '';
  display: block;
  width: 40px; height: 4px;
  background: var(--hcq-text-sub);
  border-radius: 2px; margin: 0 auto;
}

/* Toast (für Coming-Soon-Hints) */
.hcq-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--hcq-bg-mid);
  color: var(--hcq-text);
  padding: 12px 22px;
  border-radius: 30px;
  border: 1px solid var(--hcq-gold-line);
  font-size: 13px; font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10000;
  max-width: 90%;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  pointer-events: none;
}
.hcq-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ═══════════════════════════════════════════════════════════════════════════
   v1.4 BUGFIXES (09.05.2026)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Schriftgrößen-Spinner (− [22px] +) */
.hcq-font-spinner {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  padding: 6px 0;
}
.hcq-spin-btn {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--hcq-teal-soft); border: 1px solid var(--hcq-teal-line);
  color: var(--hcq-teal);
  font-size: 22px; font-weight: 700; line-height: 1;
  cursor: pointer; font-family: inherit;
  transition: background-color 0.15s, transform 0.1s;
}
.hcq-spin-btn:hover { background: rgba(45,212,191,0.25); }
.hcq-spin-btn:active { transform: scale(0.95); }
.hcq-font-display {
  min-width: 70px; text-align: center;
  font-size: 16px; font-weight: 700; color: var(--hcq-text);
  font-variant-numeric: tabular-nums;
}

/* Sprach-Auswahl-Dropdown */
.hcq-lang-select {
  width: 100%;
  padding: 12px 14px;
  background: var(--hcq-bg-soft); border: 1px solid var(--hcq-teal-line);
  border-radius: 10px;
  color: var(--hcq-text); font-size: 13px; font-family: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%232dd4bf' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.hcq-lang-select:focus {
  outline: none; border-color: var(--hcq-teal);
}

/* Vers-Aktionen mit Icon + Mini-Label (column-flex) */
.hcq-verse-action {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 8px 4px;
  background: var(--hcq-bg-soft);
  border: 1px solid var(--hcq-teal-line);
  border-radius: 10px;
  color: var(--hcq-text-mid);
  cursor: pointer; font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.hcq-verse-action .hcq-vsa-icon {
  font-size: 16px; line-height: 1;
}
.hcq-verse-action .hcq-vsa-label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2px;
  opacity: 0.7;
  line-height: 1;
}
.hcq-verse-action:hover {
  border-color: var(--hcq-teal);
  color: var(--hcq-teal);
}
.hcq-verse-action.is-saved {
  background: var(--hcq-gold-soft);
  border-color: var(--hcq-gold);
  color: var(--hcq-gold);
}
.hcq-verse-action.is-saved .hcq-vsa-label {
  opacity: 0.95;
}
.hcq-verse-action.is-disabled {
  opacity: 0.4;
  cursor: default;
}
.hcq-verse-action.is-disabled:hover {
  border-color: var(--hcq-teal-line);
  color: var(--hcq-text-mid);
  background: var(--hcq-bg-soft);
}

/* Pull-to-Refresh deaktivieren — verhindert ungewolltes Page-Reload beim Hochwischen */
.hcq-app {
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}
.hcq-app [data-hcq-screen] {
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
}
/* Body-Level: solange Quran-App offen ist, kein body-Pull-to-Refresh */
body.hc-quran-open {
  overscroll-behavior: none;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════════
   v1.6 — HIFZ-MODUS (Auswendiglernen)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hifz-Sheet — wiederverwendet hcq-reciter-sheet styles */
.hcq-hifz-sheet { /* erbt von .hcq-reciter-sheet */ }

.hcq-hifz-empty-hint {
  text-align: center;
  padding: 20px;
}

.hcq-hifz-group { margin-bottom: 18px; }
.hcq-hifz-group-title {
  font-size: 11px;
  color: var(--hcq-gold);
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0 4px;
}

.hcq-hifz-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  margin-bottom: 6px;
  background: var(--hcq-bg-soft);
  border: 1px solid var(--hcq-teal-line);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.1s;
}
.hcq-hifz-item:hover { border-color: var(--hcq-teal); }
.hcq-hifz-item:active { transform: scale(0.99); }

.hcq-hifz-item-num {
  flex-shrink: 0;
  min-width: 50px;
  padding: 5px 8px;
  background: var(--hcq-teal-soft);
  color: var(--hcq-teal);
  border-radius: 8px;
  font-size: 11px; font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.hcq-hifz-item-info { flex: 1; min-width: 0; }
.hcq-hifz-item-name {
  font-size: 13px; font-weight: 600;
  color: var(--hcq-text);
  margin-bottom: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.hcq-hifz-item-bars {
  display: flex; gap: 3px;
}
.hcq-hifz-mastery-dot {
  width: 14px; height: 6px;
  background: rgba(45,212,191,0.15);
  border-radius: 3px;
  display: inline-block;
}
.hcq-hifz-mastery-dot.is-filled {
  background: linear-gradient(90deg, var(--hcq-teal), var(--hcq-gold));
}

.hcq-hifz-item-btn {
  background: var(--hcq-teal); color: var(--hcq-bg-deep);
  border: none; border-radius: 8px;
  padding: 7px 12px;
  font-size: 11px; font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.hcq-hifz-item-btn:hover { background: rgba(45,212,191,0.85); }

/* Practice-Modal */
.hcq-hifz-practice-overlay {
  position: fixed; inset: 0;
  background: rgba(10,24,20,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 220;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
}
.hcq-hifz-practice-overlay.is-open { display: flex; }

.hcq-hifz-practice-card {
  width: 100%; max-width: 480px;
  background: var(--hcq-bg-mid);
  border: 1px solid var(--hcq-gold-line);
  border-radius: 18px;
  padding: 20px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}

.hcq-hifz-practice-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.hcq-hifz-practice-title {
  font-size: 15px; font-weight: 700; color: var(--hcq-teal);
}
.hcq-hifz-practice-meta {
  font-size: 11px; color: var(--hcq-text-mut);
  margin-bottom: 18px;
}

.hcq-hifz-practice-arabic {
  font-family: 'Amiri','Scheherazade New', serif;
  font-size: 26px; line-height: 1.9;
  color: var(--hcq-text);
  direction: rtl; text-align: right;
  padding: 18px 16px;
  background: var(--hcq-bg-deep);
  border-radius: 12px;
  border: 1px solid var(--hcq-gold-line);
  margin-bottom: 12px;
  transition: filter 0.3s, opacity 0.3s;
}
.hcq-hifz-practice-arabic.is-hidden {
  filter: blur(12px);
  opacity: 0.4;
  user-select: none;
}

.hcq-hifz-practice-trans {
  font-size: 13px; color: var(--hcq-text-mid);
  line-height: 1.6;
  padding: 0 4px 12px;
}

.hcq-hifz-practice-controls {
  display: flex; gap: 8px; margin-bottom: 6px;
}
.hcq-hifz-btn-toggle {
  flex: 1;
  padding: 10px;
  background: var(--hcq-teal-soft);
  border: 1px solid var(--hcq-teal-line);
  color: var(--hcq-teal);
  border-radius: 10px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: background 0.15s;
}
.hcq-hifz-btn-toggle:hover { background: rgba(45,212,191,0.25); }
.hcq-hifz-btn-toggle.is-active {
  background: var(--hcq-gold-soft);
  border-color: var(--hcq-gold);
  color: var(--hcq-gold);
}

.hcq-hifz-rating-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 6px;
}
.hcq-hifz-rate {
  padding: 10px 4px;
  background: var(--hcq-bg-soft);
  border: 1px solid var(--hcq-teal-line);
  border-radius: 10px;
  color: var(--hcq-text-mid);
  font-size: 10px; font-weight: 600;
  cursor: pointer; font-family: inherit;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: all 0.15s;
}
.hcq-hifz-rate:hover {
  border-color: var(--hcq-teal);
  color: var(--hcq-teal);
}
.hcq-hifz-rate-icon {
  font-size: 22px; line-height: 1;
}

/* Loading-State (Read-Screen während Daten laden) */
.hcq-loading-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--hcq-text-mut);
}
.hcq-loading-spinner {
  width: 36px; height: 36px;
  margin: 0 auto 16px;
  border: 3px solid rgba(45,212,191,0.15);
  border-top-color: var(--hcq-teal);
  border-radius: 50%;
  animation: hcq-spin 0.9s linear infinite;
}
.hcq-loading-text {
  font-size: 13px;
  color: var(--hcq-text-mut);
}
@keyframes hcq-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

