/* ==========================================================================
   Daily Noor (نور يومي) - Custom Stylesheet
   Theme: Deep Emerald, Warm Gold, and Obsidian Slate
   ========================================================================== */

:root {
  --color-emerald-deep: #064e3b;
  --color-emerald-mid: #047857;
  --color-emerald-light: #10b981;
  --color-emerald-subtle: #ecfdf5;
  --color-gold-deep: #b45309;
  --color-gold-mid: #d97706;
  --color-gold-bright: #fbbf24;
  --color-gold-light: #fef3c7;
  --color-gold-glow: rgba(245, 158, 11, 0.25);
  
  --font-arabic: 'Amiri', 'Traditional Arabic', serif;
  --font-latin: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Reem Kufi', 'Plus Jakarta Sans', sans-serif;
}

/* Base typography and smooth rendering */
body {
  font-family: var(--font-latin);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.font-arabic {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  line-height: 2.2;
}

.font-heading {
  font-family: var(--font-heading);
}

/* Subtle Islamic Star Lattice Pattern */
.bg-islamic-pattern-light {
  background-color: #f8fafc;
  background-image: radial-gradient(rgba(4, 120, 87, 0.08) 1px, transparent 1px),
                    radial-gradient(rgba(217, 119, 6, 0.06) 1px, #f8fafc 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

.bg-islamic-pattern-dark {
  background-color: #0b131f;
  background-image: radial-gradient(rgba(16, 185, 129, 0.12) 1px, transparent 1px),
                    radial-gradient(rgba(245, 158, 11, 0.08) 1px, #0b131f 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
}

/* Geometric Arch / Mihrab Decorative Borders */
.islamic-border-gold {
  border: 1px solid rgba(217, 119, 6, 0.35);
  box-shadow: 0 0 15px rgba(217, 119, 6, 0.08), inset 0 0 15px rgba(217, 119, 6, 0.03);
}

.islamic-border-emerald {
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

/* Gold Gradient Text */
.text-gold-gradient {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-emerald-gradient {
  background: linear-gradient(135deg, #047857 0%, #10b981 50%, #065f46 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Islamic Verse End Symbol ۝ */
.ayah-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  font-family: var(--font-arabic);
  font-size: 1.15em;
  margin: 0 0.35rem;
  vertical-align: middle;
}

/* Glassmorphism Cards */
.glass-card-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(51, 65, 85, 0.6);
}

/* Audio Player Range Slider Styling */
input[type="range"] {
  accent-color: #10b981;
}

input[type="range"]::-webkit-slider-thumb {
  background: #10b981;
  border: 2px solid #ffffff;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.3);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.5);
}

/* Transitions */
.card-transition {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Pulse Glow Keyframes */
@keyframes goldPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
}

.pulse-gold {
  animation: goldPulse 2.5s infinite;
}

/* Print Friendly Styles */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  header, footer, nav, button, .no-print {
    display: none !important;
  }
  #mainCard {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}
