/* ===== ملاءمة ترويسة سطح المكتب — سوق انجمينا (2026-10-29) =====
   المشكلة: صف الترويسة يحتاج 1386px بينما .container عرضه 1200px،
   فيخرج «أضف إعلانك» ومبدّل اللغة خارج الإطار ويُقصّان على سطح المكتب.
   الحل هنا: تقليص متدرّج (بلا إعادة بناء الحزمة) مع إبقاء كل العناصر ظاهرة.
   يُحمَّل هذا الملف بعد حزمة CSS في index.html.
   ⚠️ كل القواعد داخل min-width:861px كي لا تلمس تصميم الموبايل. */

/* --- 861px وما فوق: هوامش أضيق وأيقونات 38px وزر النشر أيقونة --- */
@media (min-width: 861px) {
  #site-header .header-main-inner { gap: 12px; }
  #site-header .search-box { min-width: 200px; }
  #site-header .header-actions { gap: 6px; }
  #site-header .btn-post {
    margin-inline-start: 0;
    width: 38px; height: 38px; padding: 0; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  #site-header .btn-post-label { display: none; }
  #site-header .header-actions .icon-btn {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px;
  }
  #site-header .header-actions .icon-btn .ico {
    width: 19px; height: 19px; flex: 0 0 19px;
  }
  #site-header .brand-logo { width: 42px; height: 42px; }
  #site-header .brand-text small { display: none; }
  #site-header .lang-dd-btn { height: 38px; padding: 0 8px; font-size: 12px; }
  #site-header .sq-brand-music-btn { width: 38px; height: 38px; }
}

/* --- 861–1150px: أيقونات 34px ومسافات أضيق --- */
@media (min-width: 861px) and (max-width: 1150px) {
  #site-header .header-actions { gap: 4px; }
  #site-header .header-actions .icon-btn {
    flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px;
  }
  #site-header .header-actions .icon-btn .ico {
    width: 17px; height: 17px; flex: 0 0 17px;
  }
  #site-header .btn-post { width: 34px; height: 34px; }
  #site-header .lang-dd-btn { height: 34px; padding: 0 6px; }
  #site-header .lang-dd-chev { display: none; }
  #site-header .sq-brand-music-btn { width: 34px; height: 34px; }
  #site-header .brand-text b { font-size: 16px; }
  #site-header .search-box { min-width: 160px; }
}

/* --- 1500px وما فوق: مساحة كافية ⇒ تعود الأحجام الأصلية ونص زر النشر --- */
@media (min-width: 1500px) {
  #site-header .container { max-width: 1440px; }
  #site-header .header-main-inner { gap: 18px; }
  #site-header .header-actions { gap: 8px; }
  #site-header .header-actions .icon-btn {
    flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px;
  }
  #site-header .header-actions .icon-btn .ico {
    width: 22px; height: 22px; flex: 0 0 22px;
  }
  #site-header .btn-post {
    width: auto; height: auto; padding: 11px 20px; border-radius: 12px;
    display: inline-flex; align-items: center; gap: 8px;
  }
  #site-header .btn-post-label { display: inline; }
  #site-header .brand-logo { width: 48px; height: 48px; }
  #site-header .brand-text small { display: block; }
  #site-header .lang-dd-btn { height: 42px; padding: 0 10px; font-size: 13px; }
  #site-header .sq-brand-music-btn { width: 44px; height: 44px; }
}
