/* ============================================================
   NoorAlFajr — Quran Display Styles
   ============================================================ */

/* ─── Surah Header ─── */
.surah-header {
  background: var(--gradient-dark-brand);
  padding: var(--space-10) var(--space-6);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.surah-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4z'/%3E%3C/g%3E%3C/svg%3E");
}
.surah-name-ar-hero {
  font-family: 'Scheherazade New', var(--font-arabic);
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--gold-300);
  direction: rtl;
  text-shadow: 0 2px 20px rgba(245,158,11,0.3);
  position: relative; z-index: 1;
}
.surah-info-hero {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  flex-wrap: wrap;
  position: relative; z-index: 1;
}
.surah-info-pill {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.9);
}

/* ─── Display Mode Selector ─── */
.display-modes {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
  padding: var(--space-4);
  background: var(--color-bg-sidebar);
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: var(--header-h);
  z-index: 10;
  backdrop-filter: blur(8px);
}
.display-mode-btn {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-muted);
}
.display-mode-btn.active {
  background: var(--primary-600);
  border-color: var(--primary-600);
  color: white;
}

/* ─── Ayah Wrapper ─── */
.ayah-wrapper {
  padding: var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-fast);
}
.ayah-wrapper:hover   { background: var(--primary-50); }
.ayah-wrapper.playing { background: var(--primary-50); border-left: 4px solid var(--primary-400); }
.ayah-wrapper.bookmarked { background: var(--gold-50); }
[data-theme="dark"] .ayah-wrapper:hover  { background: rgba(16,185,129,0.05); }
[data-theme="dark"] .ayah-wrapper.playing { background: rgba(16,185,129,0.08); }

.ayah-arabic-text {
  font-family: 'Scheherazade New', var(--font-arabic);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 2.8;
  direction: rtl;
  text-align: right;
  color: var(--gray-900);
  margin-bottom: var(--space-4);
}
[data-theme="dark"] .ayah-arabic-text { color: var(--color-text); }

.ayah-translation {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-relaxed);
  padding-top: var(--space-2);
  border-top: 1px dashed var(--color-border);
}
.ayah-transliteration {
  font-style: italic;
  color: var(--color-text-light);
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-bottom: var(--space-2);
}

/* Ayah actions */
.ayah-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
  flex-wrap: wrap;
}
.ayah-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.ayah-action-btn:hover { background: var(--primary-50); color: var(--primary-600); border-color: var(--primary-200); }
.ayah-action-btn.active { background: var(--primary-100); color: var(--primary-700); }

/* ─── Audio Player ─── */
.audio-player-bar {
  position: fixed;
  bottom: var(--bottom-nav-h);
  left: 0; right: 0;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: calc(var(--z-header) - 1);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
}
@media (min-width: 1024px) { .audio-player-bar { bottom: 0; } }
.audio-player-bar .audio-info { flex: 1; min-width: 0; }
.audio-player-bar .audio-info .audio-title { font-weight: var(--fw-semibold); font-size: var(--text-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.audio-player-bar .audio-info .audio-subtitle { font-size: var(--text-xs); color: var(--color-text-muted); }
.audio-progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  cursor: pointer;
}
.audio-progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--primary-500);
  border-radius: var(--radius-full);
}

/* ─── Reciter Selector ─── */
.reciter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-3);
}
.reciter-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--color-border);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  color: var(--color-text-muted);
}
.reciter-pill:hover { border-color: var(--primary-300); color: var(--primary-600); }
.reciter-pill.active { border-color: var(--primary-500); background: var(--primary-50); color: var(--primary-700); }
.reciter-pill .reciter-avatar { width: 48px; height: 48px; border-radius: var(--radius-full); background: var(--gradient-brand); margin-bottom: var(--space-2); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }

/* ─── Mushaf Mode ─── */
.mushaf-page {
  background: #fffef7;
  border: 1px solid var(--gold-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  font-family: 'Scheherazade New', var(--font-arabic);
  font-size: 1.8rem;
  line-height: 3;
  direction: rtl;
  text-align: justify;
  box-shadow: inset 0 0 30px rgba(245,158,11,0.05), var(--shadow-lg);
}
[data-theme="dark"] .mushaf-page { background: #1a1a0f; border-color: rgba(245,158,11,0.15); }

/* ─── Word-by-word tooltip ─── */
.word-link { cursor: pointer; border-bottom: 1px dashed var(--gold-400); transition: color var(--transition-fast); }
.word-link:hover { color: var(--primary-600); }

/* ─── Bookmarked indicator ─── */
.bookmark-dot {
  width: 8px; height: 8px;
  border-radius: var(--radius-full);
  background: var(--gold-500);
  display: inline-block;
  margin-right: var(--space-2);
}
