/* ============================================================
   NoorAlFajr — Hadith Styles
   ============================================================ */

/* ─── Collection Cards ─── */
.collection-card {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  color: inherit;
  display: block;
}
.collection-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); text-decoration: none; color: inherit; }
.collection-card-header {
  padding: var(--space-6);
  color: white;
  position: relative;
  overflow: hidden;
}
.collection-card-header::after { content: '📚'; position: absolute; right: var(--space-4); bottom: var(--space-2); font-size: 3rem; opacity: 0.2; }
.collection-card-body { padding: var(--space-5); background: var(--color-bg-card); border: 1px solid var(--color-border); border-top: none; border-radius: 0 0 var(--radius-2xl) var(--radius-2xl); }
.collection-count { font-size: var(--text-3xl); font-weight: var(--fw-extrabold); font-family: var(--font-english); }

/* Collection color themes */
.collection-bukhari   { background: linear-gradient(135deg, #1e40af, #3b82f6); }
.collection-muslim    { background: linear-gradient(135deg, #065f46, #10b981); }
.collection-tirmidhi  { background: linear-gradient(135deg, #92400e, #f59e0b); }
.collection-abudawud  { background: linear-gradient(135deg, #7c2d12, #ea580c); }
.collection-nasai     { background: linear-gradient(135deg, #4c1d95, #7c3aed); }
.collection-ibnmajah  { background: linear-gradient(135deg, #881337, #f43f5e); }
.collection-nawawi    { background: linear-gradient(135deg, #134e4a, #14b8a6); }
.collection-qudsi     { background: linear-gradient(135deg, #312e81, #6366f1); }
.collection-riyadh    { background: linear-gradient(135deg, #064e3b, #059669); }

/* ─── Hadith Display ─── */
.hadith-display {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card);
  overflow: hidden;
}
.hadith-header {
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg-sidebar);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.hadith-number-badge {
  background: var(--gradient-brand);
  color: white;
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-bold);
  font-family: var(--font-english);
}
.hadith-arabic-section {
  padding: var(--space-6);
  background: linear-gradient(135deg, var(--primary-50), transparent);
  border-bottom: 1px solid var(--color-border);
}
.hadith-arabic-text {
  font-family: var(--font-arabic);
  font-size: 1.4rem;
  line-height: 2.5;
  direction: rtl;
  text-align: right;
  color: var(--gray-900);
}
[data-theme="dark"] .hadith-arabic-text { color: var(--color-text); }
[data-theme="dark"] .hadith-arabic-section { background: rgba(16,185,129,0.05); }

.hadith-translation-section { padding: var(--space-6); }
.hadith-translation-text { line-height: var(--lh-relaxed); font-size: var(--text-base); }

.hadith-metadata {
  padding: var(--space-4) var(--space-6);
  background: var(--color-bg-sidebar);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.hadith-metadata-item { display: flex; align-items: center; gap: var(--space-1); }

/* ─── Search Results ─── */
.search-highlight { background: var(--gold-200); color: var(--gold-900); border-radius: 2px; padding: 0 2px; }

/* ─── Topic Filters ─── */
.topic-filter-row { display: flex; gap: var(--space-2); flex-wrap: wrap; padding: var(--space-4) 0; }
.topic-pill {
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  font-size: var(--text-xs);
  font-weight: var(--fw-medium);
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-muted);
  white-space: nowrap;
}
.topic-pill:hover { border-color: var(--primary-300); color: var(--primary-600); background: var(--primary-50); }
.topic-pill.active  { background: var(--primary-600); border-color: var(--primary-600); color: white; }

/* ─── Daily Hadith Banner ─── */
.daily-hadith-banner {
  background: var(--gradient-dark-brand);
  border-radius: var(--radius-2xl);
  padding: var(--space-8) var(--space-6);
  color: white;
  position: relative;
  overflow: hidden;
}
.daily-hadith-banner::before { content: '"'; position: absolute; top: -20px; left: var(--space-4); font-size: 8rem; color: rgba(255,255,255,0.05); font-family: Georgia, serif; line-height: 1; }
.daily-hadith-banner .dh-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: var(--ls-widest); color: var(--gold-300); margin-bottom: var(--space-3); }
.daily-hadith-banner .dh-text { font-size: var(--text-lg); line-height: var(--lh-relaxed); color: rgba(255,255,255,0.9); }
.daily-hadith-banner .dh-source { margin-top: var(--space-4); font-size: var(--text-sm); color: rgba(255,255,255,0.6); }
