/*! WormGPT settings — nav icons, language flag, and light mobile polish.
 *  Additive only. It deliberately does NOT change the modal layout
 *  (the base settings-center.css layout is kept as-is). License: MIT. */

/* Icon in each settings nav item */
.settings-layout nav button { display: flex; align-items: center; gap: 9px; }
.settings-nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex: none;
  color: #8fb6e8;
  transition: color 0.15s ease;
}
.settings-layout nav button.active .settings-nav-ico { color: #cfe2ff; }

/* Language control: flag + label */
.wg-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(var(--zy-veil), 0.16);
  background: rgba(var(--zy-veil), 0.04);
  color: var(--zy-text);
  cursor: pointer;
  font: inherit;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.wg-lang-toggle:hover {
  border-color: rgba(var(--zy-veil), 0.3);
  background: rgba(var(--zy-veil), 0.07);
}
.wg-lang-toggle:active { transform: scale(0.98); }
.wg-lang-flag {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 1px rgba(var(--zy-veil), 0.2);
}
.wg-lang-arrow { opacity: 0.5; font-size: 14px; }

/* Language choice inside user settings: flag, language name and country */
.wg-lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}
.wg-lang-grid + .wg-lang-grid { margin-top: 0; }
.wg-lang-grid .wg-lang-opt {
  justify-content: flex-start;
  width: 100%;
  opacity: 1;
  padding: 9px 11px;
  border: 1px solid rgba(var(--zy-veil), 0.14);
  background: rgba(var(--zy-veil), 0.04);
}
.wg-lang-grid .wg-lang-opt:hover {
  border-color: rgba(var(--zy-veil), 0.3);
  background: rgba(var(--zy-veil), 0.07);
}
.wg-lang-name { font-weight: 500; }
.wg-lang-country {
  margin-inline-start: auto;
  opacity: 0.6;
  font-size: 12px;
  white-space: nowrap;
}
.wg-lang-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--zy-text);
  opacity: 0.72;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  line-height: 1;
  transition: background 0.15s ease, opacity 0.15s ease;
}
.wg-lang-opt:hover { background: rgba(var(--zy-veil), 0.08); opacity: 1; }
.wg-lang-opt.active {
  background: rgba(77, 144, 254, 0.18);
  opacity: 1;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(77, 144, 254, 0.35);
}

/* Small, safe phone refinements (no layout overhaul) */
@media (max-width: 600px) {
  .settings-close { width: 40px; height: 40px; font-size: 26px !important; }
  .settings-detail { flex-wrap: wrap; gap: 10px; }
  .settings-detail > button, .wg-lang-toggle { min-height: 42px; }
  .settings-dialog input, .settings-dialog select, .settings-dialog textarea { font-size: 16px; }
  .settings-plans, .settings-window-grid { grid-template-columns: 1fr !important; }
}
