/*!*****************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************/
@import url('https://fonts.googleapis.com/css2?family=Amiri+Quran&family=Noto+Naskh+Arabic:wght@400;600;700&family=Outfit:wght@300;400;500;600;700&family=Scheherazade+New:wght@400;600;700&display=swap');

:root {
  --font-arabic-amiri: 'Amiri Quran', serif;
  --font-arabic-scheherazade: 'Scheherazade New', serif;
  --font-arabic-noto: 'Noto Naskh Arabic', serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Emerald & Gold Theme (Default) */
[data-theme='emerald-gold'], :root {
  --bg-primary: #061913;
  --bg-secondary: #0a261d;
  --bg-card: rgba(14, 43, 34, 0.75);
  --bg-card-hover: rgba(20, 58, 46, 0.9);
  --border-color: rgba(212, 175, 55, 0.25);
  --border-highlight: rgba(212, 175, 55, 0.65);
  --text-primary: #f2f7f4;
  --text-secondary: #a3c2b5;
  --text-muted: #628878;
  --accent-gold: #d4af37;
  --accent-gold-glow: rgba(212, 175, 55, 0.4);
  --accent-emerald: #10b981;
  --active-ayah-bg: rgba(212, 175, 55, 0.12);
  --active-ayah-border: #d4af37;
  --player-bg: rgba(6, 25, 19, 0.94);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Dark Onyx Theme */
[data-theme='dark-onyx'] {
  --bg-primary: #0b0f17;
  --bg-secondary: #131b2e;
  --bg-card: rgba(21, 30, 50, 0.75);
  --bg-card-hover: rgba(30, 42, 69, 0.9);
  --border-color: rgba(99, 102, 241, 0.25);
  --border-highlight: rgba(129, 140, 248, 0.65);
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --accent-gold: #fbbf24;
  --accent-gold-glow: rgba(251, 191, 36, 0.35);
  --accent-emerald: #38bdf8;
  --active-ayah-bg: rgba(99, 102, 241, 0.15);
  --active-ayah-border: #818cf8;
  --player-bg: rgba(11, 15, 23, 0.95);
  --glass-border: rgba(255, 255, 255, 0.08);
}

/* Light Parchment Theme */
[data-theme='light-parchment'] {
  --bg-primary: #faf6ee;
  --bg-secondary: #f3ebd9;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border-color: rgba(180, 140, 60, 0.3);
  --border-highlight: rgba(180, 140, 60, 0.8);
  --text-primary: #2c221e;
  --text-secondary: #5c4e46;
  --text-muted: #8c7b70;
  --accent-gold: #b48c3c;
  --accent-gold-glow: rgba(180, 140, 60, 0.3);
  --accent-emerald: #059669;
  --active-ayah-bg: rgba(180, 140, 60, 0.15);
  --active-ayah-border: #b48c3c;
  --player-bg: rgba(250, 246, 238, 0.96);
  --glass-border: rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  min-height: 100vh;
  scroll-behavior: smooth;
  
  /* Disable User Zooming, Pinching & Selection for Pure Native App Feel */
  touch-action: manipulation;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
       user-select: none;
  overscroll-behavior-y: none;
  font-size: 16px;
}

/* Allow text selection ONLY on Arabic Quran text & Tafsir for copying */
.selectable-text, .ayah-arabic-text, .ayah-tafsir-text {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
       user-select: text !important;
}

/* Native Touch Active Feedback for Buttons & Interactive elements */
button, a, select, input {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: transform 0.12s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s ease, opacity 0.2s ease;
}

button:active, a:active {
  transform: scale(0.96);
}

/* Custom Scrollbar for Desktop */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Hide Scrollbar on Mobile App Mode */
@media (max-width: 768px) {
  ::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }
  body {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 10px 35px 0 rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.glass-panel:hover {
  border-color: var(--border-highlight);
}

/* Glowing logo effect */
.logo-glow {
  filter: drop-shadow(0 0 12px var(--accent-gold-glow));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logo-glow:hover {
  transform: scale(1.06) rotate(3deg);
  filter: drop-shadow(0 0 20px var(--accent-gold));
}

/* Islamic Badge styling */
.islamic-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-color);
  color: var(--accent-gold);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Ayah End Symbol ornament */
.ayah-end-symbol {
  font-family: var(--font-arabic-amiri);
  color: var(--accent-gold);
  display: inline-block;
  margin: 0 8px;
  font-size: 1.1em;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Animations */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(0.98); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-pulse-subtle {
  animation: pulse-subtle 2.5s infinite ease-in-out;
}

.animate-spin-slow {
  animation: spin-slow 14s linear infinite;
}

/* Safe Area Inset Support (Notched Screens / Mobile Phones) */
header {
  padding-top: max(10px, env(safe-area-inset-top, 0px)) !important;
}

.mobile-only-nav {
  padding-bottom: max(6px, env(safe-area-inset-bottom, 0px)) !important;
}

/* Responsive Layout Utilities */
.mobile-only-nav {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only-nav {
    display: block !important;
  }
  .desktop-only-player {
    display: none !important;
  }
  .hide-on-mobile {
    display: none !important;
  }
  .header-subtitle {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .hide-on-small-mobile {
    display: none !important;
  }
}

