/*
 * عالم نسبة — تحسينات خفيفة للصفحات القديمة.
 * لا تغيّر التخطيط ولا الخطوط ولا الألوان الأساسية؛ تحسّن القراءة والتفاعل وسهولة الاستخدام فقط.
 */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(247, 148, 29, .28); }

/* تركيز واضح عند التنقل بلوحة المفاتيح */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(247, 148, 29, .55);
  outline-offset: 2px;
}

/* حقول وأزرار النماذج القديمة: حواف ناعمة وتفاعل */
input[type="text"], input[type="password"], input[type="email"], input[type="search"], input:not([type]), select, textarea {
  border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"]:focus, input[type="password"]:focus, input:not([type]):focus, select:focus, textarea:focus {
  border-color: #f7941d;
  box-shadow: 0 0 0 3px rgba(247, 148, 29, .18);
}
input[type="submit"], input[type="button"], button { cursor: pointer; }

/* الصور لا تتجاوز عرض الشاشة في الجوال */
@media (max-width: 760px) {
  img { max-width: 100%; height: auto; }
  iframe { max-width: 100%; }
}

/* ---- شريط المشاركة السفلي ---- */
.nb-sharebar {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  max-width: calc(100% - 16px);
  overflow-x: auto;
  background: rgba(255, 255, 255, .94);
  border: 1px solid #ddd8cf;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(40, 32, 20, .15);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: "Almarai", Tahoma, Arial, sans-serif;
  direction: rtl;
}
.nb-sharebar-label { font-weight: 700; font-size: 13px; color: #6b7178; padding: 0 4px 0 6px; white-space: nowrap; }
.nb-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f0ea;
  color: #4a4f55;
  text-decoration: none;
  transition: background .15s, color .15s, transform .1s;
}
.nb-share svg { width: 18px; height: 18px; fill: currentColor; }
.nb-share:hover { transform: translateY(-1px); color: #fff; }
.nb-share[data-net="whatsapp"]:hover { background: #25d366; }
.nb-share[data-net="x"]:hover { background: #111; }
.nb-share[data-net="facebook"]:hover { background: #1877f2; }
.nb-share[data-net="telegram"]:hover { background: #229ed9; }
.nb-share[data-net="linkedin"]:hover { background: #0a66c2; }
.nb-share[data-net="email"]:hover, .nb-share[data-net="print"]:hover,
.nb-share[data-net="copy"]:hover, .nb-share[data-net="native"]:hover { background: #f7941d; }
.nb-share.nb-done { background: #1f8a4c; color: #fff; }
.nb-share[hidden] { display: none; }
@media print { .nb-sharebar { display: none; } }
