/* =====================================================
   Shop.all — Language switcher + RTL + Arabic font
   Shared by: portal, fashion (+cart/checkout), cinema
   (+checkout), dashboard. Independent from the Games i18n.
   ===================================================== */

.lang-switch { position: relative; display: inline-flex; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 12px;
  border-radius: 10px;
  color: inherit;
  background: transparent;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 150ms ease;
}

.lang-btn .icon { width: 18px; height: 18px; }

.f-nav-icons .lang-btn:hover { background: #efeae1; }
.c-nav-right .lang-btn:hover { background: rgba(255, 255, 255, 0.08); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 168px;
  background: #15151a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 6px;
  display: none;
  z-index: 600;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.lang-switch.open .lang-menu { display: block; }

.lang-item {
  display: block;
  width: 100%;
  text-align: start;
  padding: 9px 12px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: #c9c9d1;
  background: transparent;
  cursor: pointer;
  transition: all 150ms ease;
}

.lang-item:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.lang-item.active { background: rgba(37, 99, 235, 0.24); color: #fff; font-weight: 600; }

/* Floating variant (portal + dashboard) */
.lang-float { position: fixed; top: 20px; inset-inline-end: 24px; z-index: 600; }
.lang-float .lang-btn {
  background: rgba(18, 18, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  backdrop-filter: blur(10px);
}
.lang-float .lang-btn:hover { background: rgba(18, 18, 24, 0.82); }

/* ================= RTL adjustments ================= */
[dir="rtl"] .world-btn svg,
[dir="rtl"] .cc-back .icon,
[dir="rtl"] .f-btn-full .icon,
[dir="rtl"] .db-nav-item .icon.chevron { transform: scaleX(-1); }

[dir="rtl"] .c-hero-inner,
[dir="rtl"] .f-hero-copy { text-align: right; }

/* ================= Arabic font (Cairo) ================= */
html[lang="ar"] body,
html[lang="ar"] input,
html[lang="ar"] textarea,
html[lang="ar"] button,
html[lang="ar"] select,
html[lang="ar"] .f-serif {
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
}

/* Keep the brand wordmark in its Latin form */
html[lang="ar"] .portal-logo,
html[lang="ar"] .f-logo,
html[lang="ar"] .c-logo,
html[lang="ar"] .db-brand { font-family: 'Inter', system-ui, sans-serif; }
