/* أنماط مخصصة للتصميم الإسلامي الحديث Modern Islamic UI */

:root {
  --primary-gold: #d4af37;
  --primary-emerald: #0b3b2c;
  --surface-color: rgba(15, 23, 42, 0.9);
  --card-color: rgba(30, 41, 59, 0.7);
  --border-color: rgba(212, 175, 55, 0.25);
}

html.light {
  --surface-color: rgba(248, 250, 249, 0.95);
  --card-color: rgba(255, 255, 255, 0.9);
  --border-color: rgba(184, 148, 40, 0.3);
}

html.light body {
  background-color: #f1f5f3;
  color: #0f172a;
}

html.light .bg-slate-900\/90,
html.light .bg-slate-950\/95,
html.light .bg-slate-900\/85 {
  background-color: rgba(255, 255, 255, 0.96) !important;
  color: #0f172a !important;
  border-color: rgba(212, 175, 55, 0.25) !important;
}

html.light .bg-slate-800,
html.light .bg-slate-850\/60,
html.light .bg-slate-850\/80,
html.light .bg-slate-800\/80,
html.light .bg-slate-800\/70,
html.light .bg-slate-800\/60 {
  background-color: #f8fafc !important;
  color: #1e293b !important;
  border-color: #e2e8f0 !important;
}

html.light .text-slate-100,
html.light .text-slate-200 {
  color: #0f172a !important;
}

html.light .text-slate-300,
html.light .text-slate-400 {
  color: #475569 !important;
}

/* خط الرقعة والديواني الأصيل */
.font-ruqaa {
  font-family: 'Aref Ruqaa', 'Amiri', serif;
}

/* شريط تمرير ناعم ومخفي */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* حركات وانتقالات انسيابية */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.animate-fadeIn {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slideUp {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scaleUp {
  animation: scaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* شريط تمرير الصوت المخصص */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #d4af37;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
  transition: transform 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:active {
  transform: scale(1.35);
}

/* أمواج الصوت والترددات التفاعلية عند تشغيل الصوتية */
.eq-bar {
  display: inline-block;
  width: 3.5px;
  background: linear-gradient(to top, #d4af37, #10b981);
  border-radius: 9999px;
  animation: eqBounce 1s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 16px; animation-delay: 0.35s; }
.eq-bar:nth-child(3) { height: 22px; animation-delay: 0.55s; }
.eq-bar:nth-child(4) { height: 12px; animation-delay: 0.2s; }
.eq-bar:nth-child(5) { height: 20px; animation-delay: 0.45s; }
.eq-bar:nth-child(6) { height: 14px; animation-delay: 0.15s; }
.eq-bar:nth-child(7) { height: 8px; animation-delay: 0.6s; }

@keyframes eqBounce {
  0% { height: 5px; }
  50% { height: 22px; }
  100% { height: 9px; }
}

.is-audio-paused .eq-bar {
  animation-play-state: paused !important;
  height: 5px !important;
}

/* توهج ودوران أسطوانة الغلاف عند التشغيل */
@keyframes spinDisk {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.disk-rotating {
  animation: spinDisk 22s linear infinite;
}
.is-audio-paused .disk-rotating {
  animation-play-state: paused !important;
}

/* أزرار التنقل السفلية */
.nav-item.active {
  color: #d4af37 !important;
}
.nav-item.active svg {
  transform: translateY(-2px);
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.4));
}

/* أزرار الأقسام والبطاقات */
.category-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.5);
}
.category-card:active {
  transform: scale(0.98);
}

/* تحسين لمس الهواتف */
button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}