/* مسموع — تحسينات الجوال + قواعد Apple (2026-11-13) — ملف إضافي فوق التنسيق الأصلي، بدون إعادة بناء.
   الحذف = شيل سطر <link> من dist/public/index.html */

/* 1) الجوال: الشبكات اللي أعمدتها للشاشات الكبيرة بس كانت تمدّ العمود لعرض أكبر من الشاشة (الكلام والبحث ينقصّون يمين) */
@media (max-width: 1023px) {
  .grid:not([class*=" grid-cols-"]):not([class^="grid-cols-"]) { grid-template-columns: minmax(0, 1fr); }
}

/* 2) نصوص صغيرة: ما ننزل تحت 12px */
.text-\[10px\], .text-\[11px\] { font-size: 12px !important; line-height: 1.5; }

/* 3) الكتاب المميز: أسهم التنقل كانت فوق زر «Open book» على الجوال — صارت في سطر لحالها تحت */
@media (max-width: 639px) {
  .absolute.bottom-3.end-4.flex.items-center.gap-1\.5 { position: static !important; justify-content: center; margin: 4px auto 16px; }
  .absolute.bottom-3.end-4.flex.items-center.gap-1\.5 > button { width: 40px; height: 40px; }
}

/* 4) زر «Listen online» في البطاقات كان ينقصّ («Listen on…») — على الجوال نشيل الأيقونة ونكبّر الزر */
@media (max-width: 480px) {
  .relative.z-10.mt-auto.flex.items-center.gap-1\.5.pt-2 > a.flex-1.min-w-0 > span { height: 40px; padding-inline: 8px; font-size: 12.5px !important; }
  .relative.z-10.mt-auto.flex.items-center.gap-1\.5.pt-2 > a.flex-1.min-w-0 > span > svg { display: none; }
  .relative.z-10.mt-auto.flex.items-center.gap-1\.5.pt-2 > a.flex-1.min-w-0 .truncate { overflow: visible; text-overflow: clip; }
  .relative.z-10.mt-auto.flex.items-center.gap-1\.5.pt-2 > a:not(.flex-1), .relative.z-10.mt-auto.flex.items-center.gap-1\.5.pt-2 > button { min-width: 40px; min-height: 40px; }
}

/* 5) قواعد Apple: لمس واضح، أهداف 44px، خانات 16px على الجوال، بدون تكبير iOS */
html { -webkit-tap-highlight-color: transparent; }
a, button, [role="button"], label, summary { touch-action: manipulation; }
a:active, button:active, [role="button"]:active { transform: scale(.97); }
@media (hover: none) {
  .hover\:-translate-y-1:hover, .hover\:-translate-y-0\.5:hover, .group:hover .group-hover\:scale-105, .group:hover .group-hover\:scale-110 { transform: none !important; }
}
@media (max-width: 767px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size: 16px !important; }
  header nav a, header button, footer a { min-height: 40px; }
}

/* العربي: بدون تباعد أحرف (يكسر الوصل) */
[dir="rtl"] * { letter-spacing: 0 !important; }

/* تقليل الحركة: نحترم إعداد الجهاز */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-transparency: reduce) {
  * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
