/* shared/i18n.css — minimal styles for language banner + switcher.
   Page-specific RTL overrides go in each page's stylesheet under [dir="rtl"]. */

.i18n-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #002855;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  max-width: calc(100vw - 32px);
}

.i18n-banner-text {
  flex: 1;
}

.i18n-banner button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  padding: 6px 12px;
  font: inherit;
  cursor: pointer;
  border-radius: 0;
}

.i18n-banner-yes {
  background: #F26522 !important;
  border-color: #F26522 !important;
}

.i18n-banner button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.i18n-banner-yes:hover {
  background: #d9561c !important;
}

[dir="rtl"] .i18n-banner {
  direction: rtl;
}

/* Language switcher (optional component; pages include it in their header) */
.lang-switcher {
  position: relative;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
}

.lang-switcher-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 0;
  transition: border-color 0.2s, background 0.2s;
}

.lang-switcher-btn:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.lang-switcher-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  color: #002855;
  min-width: 140px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  display: none;
  z-index: 1000;
}

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

.lang-switcher-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 12px;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.lang-switcher-menu button:hover,
.lang-switcher-menu button[aria-current="true"] {
  background: #f3f4f6;
}

.lang-switcher-menu button[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

[dir="rtl"] .lang-switcher-menu {
  right: auto;
  left: 0;
  text-align: right;
}
