/* Top bar: info button + language select. Kept separate from app.css to make the component auditable. */

.fs-top-bar {
  position: absolute;
  top: 10px;
  right: 12px;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  z-index: 50;
}

.fs-info-btn {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid #4b5563;
  background: rgba(15, 23, 42, 0.88);
  color: #e5e7eb;
  font-size: 13px;
  border-radius: 999px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.15s ease;
}

.fs-info-btn:hover {
  border-color: #9ca3af;
}

.fs-lang-select {
  position: relative;
}

.fs-lang-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #4b5563;
  background: rgba(15, 23, 42, 0.88);
  color: #e5e7eb;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s ease;
}

.fs-lang-trigger:hover {
  border-color: #9ca3af;
}

.fs-lang-select--open .fs-lang-trigger {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.15);
  color: #bbf7d0;
}

.fs-lang-trigger-arrow {
  font-size: 10px;
  opacity: 0.8;
  transition: transform 0.15s ease;
}

.fs-lang-select--open .fs-lang-trigger-arrow {
  transform: rotate(180deg);
}

.fs-lang-menu-wrap {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 168px;
  border-radius: 14px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.98);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.85), 0 0 0 1px rgba(15, 23, 42, 0.8);
  overflow: hidden;
}

.fs-lang-menu {
  list-style: none;
  margin: 0;
  padding: 4px;
  max-height: 240px;
  overflow-y: auto;
}

.fs-lang-menu li + li {
  margin-top: 2px;
}

.fs-lang-menu button {
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 12px;
  padding: 7px 8px;
  border-radius: 9px;
  cursor: pointer;
}

.fs-lang-menu button:hover {
  background: rgba(55, 65, 81, 0.6);
}

.fs-lang-menu button.fs-lang-active {
  background: rgba(34, 197, 94, 0.15);
  color: #bbf7d0;
}

.fs-lang-menu-note {
  margin: 0;
  padding: 8px 10px;
  border-top: 1px solid rgba(55, 65, 81, 0.9);
  font-size: 10px;
  line-height: 1.3;
  color: #9ca3af;
}
