/* ===== v10 =====
   1) أزرار الهيرو: نمط الزجاج، حجم أكبر، أنزل قليلًا
   2) صورة المطور الأصلية داخل دائرة
   3) القائمة: نافذة صغيرة بنمط uiverse (Radio by reglobby) مع أيقونات بأسلوب آبل
   لتغيير حجم الزرين عدّل المتغيرين --btn-w و --btn-h فقط. */

:root {
  --btn-w: 190px;
  --btn-h: 46px;
}

/* ---------- 1) الأزرار: نمط الزجاج القديم، أكبر حجمًا فقط، وأنزل قليلًا ---------- */
html body .hero-actions { margin-top: 64px; gap: 12px; }

html body .hero-actions.hero-actions .btn.btn-primary,
html body .hero-actions.hero-actions .btn.btn-secondary {
  box-sizing: border-box;
  width: min(var(--btn-w), 84vw);
  min-width: 0;
  padding: 0 16px;
  height: var(--btn-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.98rem;
  line-height: 1;
}

html body .hero-actions .btn .btn-ico {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* المعرض يبقى في مكانه رغم تكبير الزرين وإنزالهما */
html body .gallery-wrapper { margin-top: 114px; }
@media (max-width: 480px) {
  html body .gallery-wrapper { margin-top: 114px; }
}

/* ---------- 2) صورة المطور: كاملة كما أُرسلت ---------- */
html .dev-bar { border-radius: 50px; padding: 12px 16px; }

html .dev-photo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid var(--g-border);
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

html .dev-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- مسافات القسمين: تقليل الفراغ فوق "المطور" وتحت الشريط ---------- */
html body .features { padding-bottom: 20px; }
html body .owner-section { padding-top: 36px; padding-bottom: 0; }
html body .footer { margin-top: 20px; }

/* ---------- 3) القائمة الصغيرة ---------- */
html body .overlay,
html[data-theme="light"] body .overlay {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  z-index: 1050;
}

.menu-pop {
  --m-bg: #0d1117;
  --m-line: #21262c;
  --m-hover: #21262c;
  --m-active: #1a1f24;
  --m-text: #ffffff;
  --m-icon: #7d8590;
  --m-accent: #2f81f7;

  position: fixed;
  top: 84px;
  left: max(calc(4% + 12px), calc(50% - 488px));
  z-index: 1100;
  width: 190px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--m-bg);
  border: 1px solid var(--m-line);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transform-origin: top left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.97);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

.menu-pop.active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

html[data-theme="light"] .menu-pop {
  --m-bg: #ffffff;
  --m-line: rgba(20, 24, 36, 0.12);
  --m-hover: #eef1f6;
  --m-active: #e4e9f1;
  --m-text: #141824;
  --m-icon: #6a7285;
  box-shadow: 0 14px 34px rgba(20, 24, 36, 0.16);
}

.menu-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--m-text);
  font-family: var(--font-main);
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.menu-item svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--m-icon);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.15s ease;
}

/* شريط أزرق صغير على الجهة اليمنى (بداية السطر في العربية) للعنصر المضغوط/المحدد */
.menu-item::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 2px;
  width: 3px;
  height: 56%;
  transform: translateY(-50%);
  border-radius: 3px;
  background: var(--m-accent);
  opacity: 0;
  transition: opacity 0.15s ease;
}

@media (hover: hover) {
  .menu-item:hover { background: var(--m-hover); }
  .menu-item:hover svg { stroke: var(--m-text); }
}

.menu-item:focus-visible,
.menu-item:active { background: var(--m-active); outline: none; }

.menu-item:focus-visible::before,
.menu-item:active::before { opacity: 1; }

.menu-item:active svg,
.menu-item:focus-visible svg { stroke: var(--m-accent); }

@media (prefers-reduced-motion: reduce) {
  .menu-pop, .menu-pop.active, .menu-item { transition: none; }
}
