/* ============================================================
   تلميع مظهر سورة قرآن — طبقة خفيفة فوق التصميم الحالي
   لا تغيّر الألوان (حتى تبقى أوضاع: العادي، الليلي، الذهبي، الأخضر كما هي)
   لإيقافها: احذف محتوى هذا الملف أو استرجع عملية «إصلاح الصفحات» التي أضافتها
   ============================================================ */

/* عام: نعومة الخطوط وتمرير سلس */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* نص المحتوى: أكبر قليلاً ومسافة أسطر أريح (القائمة العلوية لا تتأثر) */
.post-content-area p,
.post-content-area li,
.single-post-area p,
.widget-wrap p,
.widget-wrap li {
  font-size: 15.5px;
  line-height: 1.85;
}

/* نص الآيات بخط حفص: مسافة أسطر تتسع للتشكيل */
.post-content-area [style*="hafs"],
.posts-list [style*="hafs"] {
  line-height: 2.05 !important;
  word-spacing: 1px;
}

/* العناوين */
h1, h2, h3, h4 { text-wrap: balance; }
.banner-area h1 { letter-spacing: 0; }

/* الأزرار: أوضح وأسهل للنقر (44 بكسل على الجوال) */
a.button, .button, .genric-btn, .primary-btn {
  font-size: 13.5px !important;
  line-height: 1.4;
  padding: 7px 16px !important;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
a.button:hover, .button:hover, .genric-btn:hover, .primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
}

/* القائمة الجانبية: زوايا أهدأ وحدّ خفيف */
.widget-wrap {
  border-radius: 16px !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04), 0 0 0 1px rgba(0, 0, 0, .04);
}
.widget-wrap img { border-radius: 10px; }

/* الصور داخل المحتوى */
.post-content-area img.img-fluid { border-radius: 12px; }

/* الهيدر عند التمرير: زجاجي خفيف (اللون نفسه لا يتغيّر) */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #header.header-scrolled { -webkit-backdrop-filter: saturate(1.3) blur(8px); backdrop-filter: saturate(1.3) blur(8px); }
}

/* قائمة الجوال: انزلاق أنعم وظل */
#mobile-nav { transition: left .3s cubic-bezier(.2, .8, .2, 1), right .3s cubic-bezier(.2, .8, .2, 1); }
.mobile-nav-active #mobile-nav { box-shadow: 0 0 24px rgba(0, 0, 0, .25); }
#mobile-body-overly { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

/* بطاقات القرّاء والسور في الرئيسية وصفحة التحميل */
:where(.single-popular-carusel) { transition: transform .2s ease, box-shadow .2s ease; border-radius: 14px; }
:where(.single-popular-carusel):hover { transform: translateY(-2px); }
:where(.single-popular-carusel) img { border-radius: 12px; }

/* الجداول */
.post-content-area table { border-collapse: collapse; width: 100%; }
.post-content-area table td, .post-content-area table th { padding: 8px 10px; }

/* إبراز التركيز عند التنقل بلوحة المفاتيح (إتاحة) */
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

/* الجوال */
@media (max-width: 767px) {
  .container { padding-left: 14px; padding-right: 14px; }
  .post-content-area p, .post-content-area li, .single-post-area p { font-size: 16px; }
  a.button, .button, .genric-btn, .primary-btn { min-height: 44px; margin: 4px; }
  .banner-area h1 { font-size: 24px; line-height: 1.5; }
  .widget-wrap { border-radius: 14px !important; }
  /* أزرار تيليغرام وواتساب العائمة كانت تغطي نص الآيات: أصغر وأخف */
  div[aria-label="روابط قنواتنا على وسائل التواصل"] {
    transform: scale(.72);
    transform-origin: bottom left;
    left: 8px !important;
    bottom: 10px !important;
    opacity: .9;
  }
}

/* تقليل الحركة لمن يفضّل ذلك */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a.button, .button, .genric-btn, .primary-btn { transition: none; }
}
