/* ===== Quran Read (Text) Page ===== */
.read-view {
  padding: 0.5rem 0;
}

.read-intro {
  text-align: center;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.read-loading,
.read-error {
  text-align: center;
  padding: 2rem;
  color: var(--color-text-muted);
}

.read-error {
  color: #b91c1c;
}

.read-surah-list {
  display: grid;
  gap: 0.75rem;
}

.read-surah-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-bg-card, var(--color-white));
  border-radius: var(--radius);
  border: 1px solid rgba(13, 148, 136, 0.12);
  cursor: pointer;
  transition: all 0.2s;
}

.read-surah-item:hover {
  border-color: var(--color-teal);
  box-shadow: var(--shadow-soft);
}

.read-surah-item .surah-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-beige) 0%, #fde68a 100%);
  color: var(--color-gold);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.read-surah-item .surah-info {
  flex: 1;
  text-align: right;
}

.read-surah-item .surah-name-ar {
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-text);
  display: block;
}

.read-surah-item .surah-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* Surah view (verses) */
.read-surah-view .read-surah-header {
  margin-bottom: 1.5rem;
}


.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1rem;
  background: var(--color-teal);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-back:hover {
  background: var(--color-teal-dark);
  transform: translateX(2px);
}

.read-surah-title {
  font-family: var(--font-arabic);
  font-size: 1.75rem;
  color: var(--color-teal-dark);
}

/* شريط الصوت أعلى السورة */
.read-audio-bar {
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
  color: var(--color-white);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-card);
}

.read-audio-selects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.read-audio-selects label {
  font-weight: 600;
}

.read-audio-selects select {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  min-width: 160px;
  background: #fff;
  color: #1e293b;
}

.read-audio-selects select option {
  background: #fff;
  color: #1e293b;
}

.read-audio-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.read-ctrl-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-white);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.read-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.03);
}

.read-play-btn {
  min-width: 90px;
}

#readAudio {
  display: none;
}

.read-verses {
  background: var(--color-bg-card, var(--color-white));
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(13, 148, 136, 0.1);
}

/* مصحف: كتلة نص متدفقة مع علامات آيات */
.mushaf-block {
  font-family: var(--font-arabic);
  font-size: 1.65rem;
  line-height: 2.2;
  color: var(--color-text);
  text-align: justify;
  text-justify: inter-word;
  max-width: 100%;
}

.mushaf-block .verse-text {
  display: inline;
}

.mushaf-block .verse-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 4px;
  margin: 0 0.15em;
  background: linear-gradient(135deg, #d4a84b 0%, #b45309 100%);
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  border: 2px solid #92400e;
  border-radius: 6px;
  vertical-align: middle;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* الوضع الداكن: الحفاظ على لون علامة الآية */
[data-theme="dark"] .mushaf-block .verse-marker {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  border-color: #78350f;
  color: #fff;
}

@media (max-width: 600px) {
  .mushaf-block {
    font-size: 1.4rem;
    line-height: 2.1;
  }
  .mushaf-block .verse-marker {
    min-width: 28px;
    height: 28px;
    font-size: 0.7em;
  }
}

