/*
 * navbar-mobile.css — تنسيق الناف بار على الموبايل
 * مُحمَّل تلقائياً عبر includes/navbar.php على كامل الصفحات
 */

/* ═══════════════════════════════════════════════════
   1. إخفاء الأيقونات من الناف بار العلوي على الموبايل
   ═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-actions .nav-icon-wrap,
  .nav-actions .nav-icon-btn,
  .nav-actions .nib-bell,
  .nav-actions .nib-msg,
  .nav-actions .nav-cart-btn,
  .nav-actions .nav-va-btn,
  .nav-actions .nav-avatar-wrap,
  .nav-actions .nav-avatar-btn,
  .nav-actions .nav-signin,
  .nav-actions .lang-btn { display: none !important; }

  .nav-ham { display: flex !important; }
  body, html { overflow-x: hidden; }

  .navbar.scrolled {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(10, 10, 16, .97) !important;
  }
}

/* ═══════════════════════════════════════════════════
   2. عنوان القسم (Section Label)
   ═══════════════════════════════════════════════════ */
.mob-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: rgba(42, 125, 216, .6);
  padding: 14px 14px 6px;
  margin: 0;
}

/* ═══════════════════════════════════════════════════
   3. شبكة الإجراءات السريعة (Quick Actions Grid 2×2)
   ═══════════════════════════════════════════════════ */
.mob-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 4px 10px 10px;
}

.mob-quick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 14px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .07);
  text-decoration: none;
  color: rgba(255, 255, 255, .75);
  transition: background .2s, border-color .2s, transform .15s;
  min-height: 72px;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.mob-quick-btn:active {
  transform: scale(.96);
  background: rgba(42, 125, 216, .14);
  border-color: rgba(42, 125, 216, .35);
}

/* الدائرة حول الأيقونة */
.mob-quick-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(42, 125, 216, .1);
  border: 1px solid rgba(42, 125, 216, .2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255, 255, 255, .85);
  flex-shrink: 0;
}
.mob-quick-icon svg { width: 17px; height: 17px; }

/* نص تحت الأيقونة */
.mob-quick-label {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, .65);
  text-align: center;
  line-height: 1.2;
}

/* Badge عداد الإشعارات */
.mob-q-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ef4444;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  border: 1.5px solid rgba(9, 9, 17, .9);
}

/* ═══════════════════════════════════════════════════
   4. قائمة روابط الحساب
   ═══════════════════════════════════════════════════ */
.mob-account-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 10px 6px;
}

.mob-account-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  text-decoration: none;
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}
.mob-account-link:active {
  background: rgba(42, 125, 216, .1);
}

/* أيقونة مربعة ملوّنة */
.mob-acl-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

/* سهم اليمين */
.mob-acl-arrow {
  margin-inline-start: auto;
  font-size: 11px;
  color: rgba(255, 255, 255, .25);
}

/* ═══════════════════════════════════════════════════
   5. زر تسجيل الخروج
   ═══════════════════════════════════════════════════ */
.mob-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 10px 8px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .2);
  color: #f87171;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 48px;
}
.mob-logout-btn:active {
  background: rgba(239, 68, 68, .18);
}

/* ═══════════════════════════════════════════════════
   6. زر تسجيل الدخول (للزوار)
   ═══════════════════════════════════════════════════ */
.mob-signin-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 8px 10px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(42,125,216,.18), rgba(42,125,216,.08));
  border: 1px solid rgba(42, 125, 216, .35);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .3px;
  transition: background .2s, transform .15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 52px;
}
.mob-signin-btn:active {
  background: rgba(42, 125, 216, .28);
  transform: scale(.98);
}
.mob-signin-btn i { font-size: 16px; color: #60a5fa; }

/* ═══════════════════════════════════════════════════
   7. مبدّل اللغة في أسفل القائمة
   ═══════════════════════════════════════════════════ */
.mob-lang-wrap {
  padding: 6px 10px 10px;
  border-top: 1px solid rgba(42, 125, 216, .1);
  margin-top: 4px;
}

.mob-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 10px;
  background: rgba(42, 125, 216, .08);
  border: 1px solid rgba(42, 125, 216, .2);
  color: rgba(42, 125, 216, .85);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
  touch-action: manipulation;
}
.mob-lang-btn:active {
  background: rgba(42, 125, 216, .18);
}

/* ═══════════════════════════════════════════════════
   8. touch-action عام على كل عناصر التنقل
   ═══════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .mobile-nav a,
  .mob-services-toggle,
  .nav-ham {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav a,
  .mob-services-toggle {
    min-height: 44px;
  }
}
