@import url('https://fonts.googleapis.com/css2?family=Amiri+Quran&family=Inter:wght@400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;700&family=Noto+Sans+Devanagari:wght@400;500&display=swap');

:root {
  --bg: #f8f9fa;
  --bg-card: #ffffff;
  --text-main: #1f2937;
  --text-muted: #6b7280;
  --primary: #059669;
  --primary-light: #d1fae5;
  --accent: #d97706;
  --border: #e5e7eb;
  --font-arabic: 'Amiri Quran', serif;
  --font-urdu: 'Noto Nastaliq Urdu', serif;
  --font-hindi: 'Noto Sans Devanagari', sans-serif;
  --font-sans: 'Inter', sans-serif;
  --radius: 1rem;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --ayah-size: 2.2rem;
  --trans-size: 1rem;
}

[data-theme="dark"] {
  --bg: #111827;
  --bg-card: #1f2937;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border: #374151;
  --primary: #10b981;
  --primary-light: #064e3b;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background-color: var(--bg); color: var(--text-main); line-height: 1.6; transition: background-color 0.3s, color 0.3s; }

/* HEADER */
.header { background: var(--bg-card); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; box-shadow: var(--shadow); }
.header-inner { max-width: 1000px; margin: 0 auto; padding: 1rem 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo span { color: var(--accent); font-family: var(--font-arabic); font-size: 1.8rem; }

.controls { display: flex; gap: 1rem; align-items: center; }
.btn-icon { background: var(--bg); border: 1px solid var(--border); color: var(--text-main); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; font-size: 1.2rem; }
.btn-icon:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }

/* HERO */
.hero { text-align: center; padding: 4rem 1rem 2rem; background: linear-gradient(135deg, var(--primary-light), transparent); border-bottom: 1px solid var(--border); }
.surah-title-ar { font-family: var(--font-arabic); font-size: 4rem; color: var(--primary); margin-bottom: 0.5rem; text-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.surah-title-en { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.surah-meta { color: var(--text-muted); font-size: 0.95rem; font-weight: 500; display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.surah-meta span { background: var(--bg-card); padding: 0.3rem 1rem; border-radius: 100px; border: 1px solid var(--border); }

/* BISMILLAH */
.bismillah { text-align: center; font-family: var(--font-arabic); font-size: 2.5rem; padding: 3rem 0; color: var(--text-main); }

/* SETTINGS BAR */
.settings-bar { max-width: 1000px; margin: 2rem auto; padding: 1.5rem; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; justify-content: space-between; box-shadow: var(--shadow); }
.toggle-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.toggle-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; font-weight: 500; }
.toggle-checkbox { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); cursor: pointer; }

/* AUDIO PLAYER */
.audio-section { display: flex; flex-direction: column; gap: 0.5rem; width: 100%; max-width: 400px; }
.audio-label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
audio { width: 100%; height: 40px; outline: none; border-radius: 100px; }

/* AYAHS LIST */
.ayahs-container { max-width: 1000px; margin: 0 auto; padding: 0 1rem 4rem; }
.ayah-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); position: relative; }
.ayah-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--border); }
.ayah-number { width: 36px; height: 36px; background: var(--primary-light); color: var(--primary); font-weight: 700; border-radius: 50%; display: flex; align-items: center; justify-content: center; border: 2px solid var(--primary); }
.ayah-actions { display: flex; gap: 0.5rem; }
.action-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 1.2rem; transition: color 0.2s; }
.action-btn:hover { color: var(--primary); }

.ayah-arabic { font-family: var(--font-arabic); font-size: var(--ayah-size); line-height: 2.2; text-align: right; color: var(--text-main); margin-bottom: 1.5rem; direction: rtl; }
.ayah-transliteration { font-size: var(--trans-size); font-weight: 500; color: var(--primary); margin-bottom: 1rem; font-style: italic; }
.ayah-translation-en { font-size: var(--trans-size); color: var(--text-main); margin-bottom: 0.8rem; }
.ayah-translation-ur { font-family: var(--font-urdu); font-size: calc(var(--trans-size) * 1.3); color: var(--text-main); margin-bottom: 0.8rem; text-align: right; direction: rtl; }
.ayah-translation-hi { font-family: var(--font-hindi); font-size: var(--trans-size); color: var(--text-main); }

/* BENEFITS SECTION */
.benefits-section { max-width: 1000px; margin: 0 auto 4rem; padding: 2.5rem; background: var(--bg-card); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.benefits-section h2 { color: var(--primary); font-size: 1.8rem; margin-bottom: 1.5rem; text-align: center; }
.benefits-list { list-style: none; display: grid; gap: 1rem; }
.benefits-list li { display: flex; gap: 1rem; align-items: flex-start; font-size: 0.95rem; }
.benefits-list li::before { content: '✨'; font-size: 1.2rem; }

/* FOOTER */
.footer { text-align: center; padding: 3rem 1rem; border-top: 1px solid var(--border); margin-top: 3rem; color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 1.5rem; justify-content: center; margin-bottom: 1rem; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }

/* RESPONSIVE */
@media (max-width: 600px) {
  .ayah-card { padding: 1.5rem; }
  .surah-title-ar { font-size: 3rem; }
  .settings-bar { flex-direction: column; align-items: flex-start; }
}
