:root {
  --bg-color: #f8f9fa;
  --text-color: #212529;
  --header-bg: #198754;
  --header-text: #ffffff;
  --card-bg: #ffffff;
  --link-color: #198754;
}

body {
  font-family: 'Amiri', serif;
  background-color: var(--bg-color);
  color: var(--text-color);
}

header {
  background-color: var(--header-bg);
  color: var(--header-text);
}

.card {
  background-color: var(--card-bg);
}

a {
  color: var(--link-color);
}

/* ========================= */
/* 🟢 ثيمات الأخضر الفاتحة */
/* ========================= */
.theme-mint {
  --bg-color: #e8f5e9;
  --text-color: #1b5e20;
  --header-bg: #66bb6a;
  --header-text: #ffffff;
  --card-bg: #ffffff;
  --link-color: #2e7d32;
}

.theme-olive {
  --bg-color: #f3f2e9;
  --text-color: #3e3e2e;
  --header-bg: #8d9440;
  --header-text: #ffffff;
  --card-bg: #fdfcf5;
  --link-color: #6b8e23;
}

.theme-emerald {
  --bg-color: #e0f7fa;
  --text-color: #004d40;
  --header-bg: #00bfa5;
  --header-text: #ffffff;
  --card-bg: #ffffff;
  --link-color: #00796b;
}

/* ========================= */
/* 🔴 ثيمات الأحمر الفاتحة */
/* ========================= */
.theme-rose {
  --bg-color: #fff5f7;
  --text-color: #5c1a1a;
  --header-bg: #f28b82;
  --header-text: #ffffff;
  --card-bg: #fffafa;
  --link-color: #c62828;
}

.theme-terra {
  --bg-color: #fef3ec;
  --text-color: #5a2e1f;
  --header-bg: #a0522d;
  --header-text: #ffffff;
  --card-bg: #fff8f4;
  --link-color: #8b4513;
}

.theme-pomegranate {
  --bg-color: #fdf2f2;
  --text-color: #6e0f0f;
  --header-bg: #c62828;
  --header-text: #ffffff;
  --card-bg: #fff5f5;
  --link-color: #b71c1c;
}

/* ========================= */
/* 🔵 ثيمات الأزرق الفاتحة */
/* ========================= */
.theme-sky {
  --bg-color: #e3f2fd;
  --text-color: #0d47a1;
  --header-bg: #64b5f6;
  --header-text: #ffffff;
  --card-bg: #ffffff;
  --link-color: #1565c0;
}

.theme-royal {
  --bg-color: #e8eaf6;
  --text-color: #1a237e;
  --header-bg: #3f51b5;
  --header-text: #ffffff;
  --card-bg: #ffffff;
  --link-color: #3949ab;
}

.theme-slate {
  --bg-color: #f0f4f8;
  --text-color: #2c3e50;
  --header-bg: #607d8b;
  --header-text: #ffffff;
  --card-bg: #ffffff;
  --link-color: #455a64;
}
/* ========================= */
/* 🟢 ثيمات الأخضر الداكنة */
/* ========================= */
.theme-forest-dark {
  --bg-color: #0d1f1a;
  --text-color: #e0f2f1;
  --header-bg: #1b5e20;
  --header-text: #ffffff;
  --card-bg: #1a2e2a;
  --link-color: #81c784;
}

.theme-olive-dark {
  --bg-color: #2e2e1e;
  --text-color: #f1f1f1;
  --header-bg: #6b8e23;
  --header-text: #ffffff;
  --card-bg: #3a3a2a;
  --link-color: #cddc39;
}

.theme-emerald-dark {
  --bg-color: #00332e;
  --text-color: #e0f2f1;
  --header-bg: #00796b;
  --header-text: #ffffff;
  --card-bg: #004d40;
  --link-color: #4db6ac;
}

/* ========================= */
/* 🔴 ثيمات الأحمر الداكنة */
/* ========================= */
.theme-burgundy-dark {
  --bg-color: #2a0e14;
  --text-color: #fce4ec;
  --header-bg: #800020;
  --header-text: #ffffff;
  --card-bg: #3e1a1f;
  --link-color: #ef5350;
}

.theme-terra-dark {
  --bg-color: #3b1f14;
  --text-color: #ffe0b2;
  --header-bg: #a0522d;
  --header-text: #ffffff;
  --card-bg: #4e2a1e;
  --link-color: #ff7043;
}

.theme-ruby-dark {
  --bg-color: #2b0d0d;
  --text-color: #fddede;
  --header-bg: #9b111e;
  --header-text: #ffffff;
  --card-bg: #3a1a1a;
  --link-color: #e57373;
}
/* ========================= */
/* 🔵 ثيمات الأزرق الداكنة */
/* ========================= */
.theme-navy-dark {
  --bg-color: #0a192f;
  --text-color: #e3f2fd;
  --header-bg: #001f3f;
  --header-text: #ffffff;
  --card-bg: #102840;
  --link-color: #64b5f6;
}

.theme-royal-dark {
  --bg-color: #1a237e;
  --text-color: #e8eaf6;
  --header-bg: #3f51b5;
  --header-text: #ffffff;
  --card-bg: #2c387e;
  --link-color: #7986cb;
}

.theme-slate-dark {
  --bg-color: #263238;
  --text-color: #eceff1;
  --header-bg: #37474f;
  --header-text: #ffffff;
  --card-bg: #37474f;
  --link-color: #90a4ae;
}

/* ========================= */
/* 🌈 ثيمات مريحة للعين */
/* ========================= */
.theme-sand {
  --bg-color: #fdf6e3;
  --text-color: #3e3e3e;
  --header-bg: #c2b280;
  --header-text: #000000;
  --card-bg: #fffef9;
  --link-color: #b58900;
}

.theme-lavender {
  --bg-color: #f3e5f5;
  --text-color: #4a148c;
  --header-bg: #ba68c8;
  --header-text: #ffffff;
  --card-bg: #ffffff;
  --link-color: #8e24aa;
}

.theme-cocoa {
  --bg-color: #fbeee6;
  --text-color: #4e342e;
  --header-bg: #6d4c41;
  --header-text: #ffffff;
  --card-bg: #fff8f5;
  --link-color: #8d6e63;
}

/* ========================= */
/* 📖 تنسيق الآيات داخل البطاقات */
/* ========================= */
.verses {
  font-family: 'Tajawal', sans-serif;
  border-radius: 0.5rem;
  line-height: 2.2;
  font-size: 1.4rem;
  margin-top: 2rem;
  padding: 1.5rem;
  color: var(--text-color);
  background-color: var(--card-bg);
}

.verses .ayah {
  margin-bottom: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.verses .ayah span {
  font-size: 0.9rem;
  margin-left: 0.5rem;
  color: var(--link-color);
}