/* ============================================
   Prophets' Du'as — pill + dedicated page
   Indigo/violet theme (companion to Hajj gold theme)
   ============================================ */

/* === Motivation page Prophets' Du'as pill === */
.prophets-pill {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.1rem;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  color: #fff;
  border-radius: var(--r-pill);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
  transition: transform 0.25s var(--t-base), box-shadow 0.25s;
  margin-bottom: 0.5rem;
  cursor: pointer;
}
.prophets-pill::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: hajj-pill-shine 3.5s ease-in-out infinite;
  animation-delay: 1.5s;
}
.prophets-pill:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(139, 92, 246, 0.5); }
.prophets-pill:active { transform: scale(0.98); }
.prophets-pill-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.22);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.prophets-pill-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.prophets-pill-text strong { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.01em; }
.prophets-pill-text em { font-size: 0.78rem; font-style: normal; opacity: 0.88; font-weight: 500; }
.prophets-pill-arrow { font-size: 1.1rem; font-weight: 800; opacity: 0.85; }

/* === Prophets' Du'as full-page === */
.prophets-page {
  padding: 0 0 4rem;
  animation: fade-in 0.4s ease;
}

.pp-hero {
  position: relative;
  padding: 2.5rem 1.5rem 3rem;
  margin: -1rem -1rem 2rem;
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 40%, #6366f1 100%);
  border-radius: var(--r-xl);
  color: #f5f3ff;
  overflow: hidden;
  text-align: center;
}
.pp-hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pp-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: orb-drift 18s ease-in-out infinite; }
.pp-orb-1 { width: 240px; height: 240px; background: #a78bfa; top: -60px; right: -40px; }
.pp-orb-2 { width: 280px; height: 280px; background: #38bdf8; bottom: -100px; left: -50px; animation-delay: -8s; }
.pp-orb-3 { width: 180px; height: 180px; background: #f472b6; top: 30%; right: 25%; animation-delay: -4s; opacity: 0.35; }
.pp-hero-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }
.pp-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.95rem;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  margin-bottom: 1.25rem;
}
.pp-title {
  font-size: clamp(1.75rem, 6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.15;
}
.pp-lead {
  font-size: 0.98rem;
  line-height: 1.65;
  opacity: 0.95;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

/* TOC chips inside hero */
.pp-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.pp-toc-link {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  background: rgba(255,255,255,0.12);
  color: #f5f3ff;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1);
  transition: background var(--t-fast), transform var(--t-fast);
}
.pp-toc-link:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
}

/* Each prophet card */
.pp-prophet {
  padding: 1.75rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--c-bg-elev);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  scroll-margin-top: 24px;
  position: relative;
  transition: box-shadow 0.3s;
}
.pp-prophet:hover { box-shadow: var(--shadow-md); }
.pp-prophet-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
}
.pp-prophet-num {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(139, 92, 246, 0.35);
  letter-spacing: -0.02em;
}
.pp-prophet-titles { flex: 1; min-width: 0; }
.pp-prophet-titles h2 {
  font-size: clamp(1.2rem, 4vw, 1.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pp-prophet-titles .pp-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: #7c3aed;
}
[data-theme="dark"] .pp-prophet-titles .pp-arabic { color: #a78bfa; }
.pp-prophet-title {
  font-size: 0.88rem;
  color: var(--c-text-muted);
  font-style: italic;
  line-height: 1.4;
}

/* Meta info: sent to / qoum / book */
.pp-prophet-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
}
@media (min-width: 720px) {
  .pp-prophet-meta { grid-template-columns: repeat(2, 1fr); }
  .pp-meta-row:has(.pp-book-value) { grid-column: 1 / -1; }
}
.pp-meta-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pp-meta-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.pp-meta-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--c-text);
  line-height: 1.45;
}
.pp-book-value {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.06));
  border-radius: var(--r-pill);
  border: 1px solid rgba(99, 102, 241, 0.2);
  font-weight: 700;
  color: #6366f1;
  width: fit-content;
}
[data-theme="dark"] .pp-book-value { color: #a78bfa; border-color: rgba(168, 85, 247, 0.35); }

/* Story */
.pp-prophet-story {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--c-text);
  margin-bottom: 1.5rem;
}

/* Du'a block */
.pp-dua-block {
  padding: 1.5rem 1.35rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--r-lg);
  margin-bottom: 1rem;
  position: relative;
}
.pp-dua-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.pp-dua-head .pp-dua-tag { margin-bottom: 0; }

/* Share button (du'a cards) */
.pp-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--c-bg-elev);
  color: #6366f1;
  border: 1.5px solid rgba(99, 102, 241, 0.3);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--t-fast);
  letter-spacing: 0.01em;
}
.pp-share-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
}
.pp-share-btn:active { transform: scale(0.96); }
[data-theme="dark"] .pp-share-btn { color: #a78bfa; border-color: rgba(167, 139, 250, 0.35); }

.pp-share-btn-inline {
  margin-top: 0.5rem;
  align-self: flex-start;
}
.pp-dua-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: white;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}
.pp-dua-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.45rem;
  line-height: 1.95;
  text-align: right;
  direction: rtl;
  color: var(--c-text);
  margin-bottom: 1rem;
  letter-spacing: 0;
}
.pp-dua-translit {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--c-text-muted);
  margin-bottom: 0.85rem;
}
.pp-dua-translit em {
  font-style: italic;
  color: var(--c-text);
}
.pp-dua-trans {
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--c-text);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.pp-dua-ref {
  font-size: 0.78rem;
  color: #6366f1;
  font-style: normal;
  font-weight: 700;
}
[data-theme="dark"] .pp-dua-ref { color: #a78bfa; }

/* Allah's response */
.pp-response-block {
  padding: 1.25rem 1.35rem;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(245, 158, 11, 0.05));
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--r-lg);
  position: relative;
}
.pp-response-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: white;
  background: linear-gradient(135deg, #10b981, #059669);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-pill);
  margin-bottom: 0.85rem;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
.pp-response-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--c-text);
  font-style: italic;
}

/* "More du'as" button */
.pp-more-duas-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 1rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1.15rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.05));
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  border-radius: var(--r-md);
  color: #6366f1;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: left;
}
.pp-more-duas-btn:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(168, 85, 247, 0.08));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.18);
}
.pp-more-duas-btn:active { transform: scale(0.98); }
.pp-more-duas-btn span {
  font-size: 1.1rem;
  font-weight: 800;
  opacity: 0.8;
}
[data-theme="dark"] .pp-more-duas-btn { color: #a78bfa; }

/* More du'as modal content */
.more-duas-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 0.25rem;
}
.more-dua-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.85rem;
  padding: 1.15rem 1.1rem;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
}
.more-dua-num {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}
.more-dua-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.3rem;
  line-height: 1.85;
  text-align: right;
  direction: rtl;
  color: var(--c-text);
  margin-bottom: 0.6rem;
}
.more-dua-translit {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--c-text-muted);
  margin-bottom: 0.5rem;
}
.more-dua-translit em { font-style: italic; color: var(--c-text); }
.more-dua-trans {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--c-text);
  margin-bottom: 0.65rem;
}
.more-dua-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--c-border);
}
.more-dua-ref {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6366f1;
  font-style: normal;
}
[data-theme="dark"] .more-dua-ref { color: #a78bfa; }
.more-dua-context {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--c-text-muted);
  font-style: italic;
  margin: 0;
}

/* Note (for prophets without recorded du'as) */
.pp-note {
  padding: 1.1rem 1.25rem;
  background: var(--c-bg-soft);
  border-left: 3px solid var(--c-primary);
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--c-text-muted);
  font-style: italic;
  margin-bottom: 1rem;
}

/* Back CTA */
.pp-back-cta {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

/* Desktop refinements */
@media (min-width: 1024px) {
  .prophets-page { padding-bottom: 5rem; }
  .pp-hero { margin: 0 0 3rem; padding: 3rem 2rem 3.5rem; }
  .pp-prophet { padding: 2rem 1.75rem; }
}

/* ============================================
   Ghazawat (Battles) — emerald/stone theme
   ============================================ */

/* Motivation-page pill variant (overrides indigo gradient) */
.prophets-pill.battles-pill {
  background: linear-gradient(135deg, #0f766e 0%, #047857 50%, #065f46 100%);
  box-shadow: 0 10px 24px rgba(4, 120, 87, 0.4), 0 0 0 1px rgba(255,255,255,0.1) inset;
}
.prophets-pill.battles-pill:hover { box-shadow: 0 14px 32px rgba(4, 120, 87, 0.5); }

/* Dashboard pill variant (base class .hajj-pill) */
.hajj-pill.battle-pill {
  background: linear-gradient(135deg, #1c1917 0%, #065f46 55%, #0f766e 100%);
  box-shadow: 0 8px 22px rgba(6, 95, 70, 0.42);
}

/* Page */
.battles-page { padding: 0 0 4rem; animation: fade-in 0.4s ease; }

.bt-hero {
  position: relative;
  padding: 2.5rem 1.5rem 2.75rem;
  margin: -1rem -1rem 2rem;
  background: linear-gradient(135deg, #0c0a09 0%, #134e4a 45%, #047857 100%);
  border-radius: var(--r-xl);
  color: #fff;
  overflow: hidden;
}
.bt-hero-content { position: relative; z-index: 1; }
.bt-badge {
  display: inline-block;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em;
  background: rgba(255,255,255,0.18);
  padding: 0.35rem 0.8rem; border-radius: var(--r-pill);
  margin-bottom: 0.85rem;
}
.bt-title { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.6rem; }
.bt-lead { font-size: 0.94rem; line-height: 1.7; opacity: 0.92; margin: 0 0 1.1rem; }
.bt-today { display: block; margin-top: 0.6rem; color: #6ee7b7; font-weight: 700; }
.bt-toc { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.bt-toc-link {
  font-size: 0.8rem; font-weight: 700; color: #fff; text-decoration: none;
  background: rgba(255,255,255,0.16); padding: 0.45rem 0.85rem; border-radius: var(--r-pill);
  transition: background var(--t-fast);
}
.bt-toc-link:hover { background: rgba(255,255,255,0.3); }

.bt-card {
  background: var(--c-bg-elev);
  border: 1px solid var(--c-border);
  border-radius: var(--r-xl);
  padding: 1.5rem 1.35rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 80px;
}
.bt-card.bt-active {
  border-color: rgba(4, 120, 87, 0.55);
  box-shadow: 0 0 0 2px rgba(4, 120, 87, 0.25), 0 14px 34px rgba(4, 120, 87, 0.15);
}
.bt-card-head { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1rem; }
.bt-card-emoji {
  font-size: 1.5rem; flex-shrink: 0;
  width: 46px; height: 46px; display: grid; place-items: center;
  background: linear-gradient(135deg, #047857, #0f766e); color: #fff;
  border-radius: 50%;
}
.bt-card-titles { flex: 1; min-width: 0; }
.bt-card-titles h2 { font-size: 1.12rem; font-weight: 800; margin: 0; letter-spacing: -0.01em; }
.bt-arabic { font-family: 'Amiri', serif; font-weight: 400; opacity: 0.7; font-size: 0.95rem; margin-inline-start: 0.35rem; }
.bt-when { font-size: 0.78rem; color: var(--c-text-muted); margin: 0.2rem 0 0; font-weight: 600; }
.bt-now-tag {
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.1em;
  background: linear-gradient(135deg, #10b981, #059669); color: #fff;
  padding: 0.3rem 0.7rem; border-radius: var(--r-pill); flex-shrink: 0;
}
.bt-headline { font-size: 1.02rem; font-weight: 700; color: var(--c-text); margin: 0 0 0.35rem; }
.bt-tagline { font-size: 0.9rem; line-height: 1.6; color: var(--c-text-muted); margin: 0 0 1.25rem; }

.bt-section { margin-bottom: 1.35rem; }
.bt-h3 {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #047857; margin: 0 0 0.7rem;
}
[data-theme="dark"] .bt-h3 { color: #34d399; }
.bt-story { font-size: 0.93rem; line-height: 1.75; color: var(--c-text); margin: 0 0 0.85rem; }

.bt-ayah {
  padding: 1.1rem 1.2rem; margin-bottom: 0.85rem;
  background: linear-gradient(135deg, rgba(4,120,87,0.08), rgba(15,118,110,0.05));
  border: 1.5px solid rgba(4, 120, 87, 0.25);
  border-radius: var(--r-lg);
}
.bt-ayah-ar {
  font-family: 'Amiri', serif; font-size: 1.4rem; line-height: 1.95;
  text-align: right; direction: rtl; color: var(--c-text); margin: 0 0 0.85rem;
}
.bt-ayah-tr { font-size: 0.93rem; line-height: 1.7; color: var(--c-text); margin: 0 0 0.55rem; font-weight: 500; }
.bt-ayah-ref { font-size: 0.76rem; font-weight: 700; font-style: normal; color: #047857; }
[data-theme="dark"] .bt-ayah-ref { color: #34d399; }

.bt-grid { display: grid; gap: 1.1rem; }
.bt-list { margin: 0; padding-inline-start: 1.1rem; display: flex; flex-direction: column; gap: 0.45rem; }
.bt-list li { font-size: 0.9rem; line-height: 1.6; color: var(--c-text); }
.bt-list-check { list-style: none; padding-inline-start: 0; }
.bt-list-check li { position: relative; padding-inline-start: 1.6rem; }
.bt-list-check li::before {
  content: '✓'; position: absolute; inset-inline-start: 0; top: 0;
  color: #059669; font-weight: 800;
}

.bt-back-cta { margin-top: 2.5rem; display: flex; justify-content: center; }

@media (min-width: 768px) {
  .bt-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .battles-page { padding-bottom: 5rem; }
  .bt-hero { margin: 0 0 3rem; padding: 3rem 2rem 3.25rem; }
  .bt-card { padding: 2rem 1.75rem; }
}
