/* Language switcher styles — shared across all pages */
.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  flex-shrink: 0;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0;
  transition: all 0.2s;
}
.lang-btn:hover {
  border-color: var(--primary, #ff6b35);
  background: var(--primary-light, #fff0e8);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
  padding: 6px;
  display: none;
  z-index: 200;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text, #1f2937);
  text-align: left;
  transition: background 0.15s;
}
.lang-menu button:hover { background: var(--primary-light, #fff0e8); }
.lang-menu button.active {
  background: var(--primary-light, #fff0e8);
  color: var(--primary, #ff6b35);
  font-weight: 600;
}
.lang-menu button .flag { font-size: 18px; }
.lang-menu button .check { margin-left: auto; color: var(--primary, #ff6b35); font-weight: 700; }

/* Mobile: keep switcher reachable in the hamburger area */
@media (max-width: 768px) {
  .lang-switch { margin-left: 4px; }
}
