/* ─────────────────────────────────────────────────────────────────
   css/tile-spoken-multilang.css
   --------------------------------------------------------------------
   Styles for the per-tile multilingual Spoken Text editor that lives
   inside the Edit Tile props panel + the inline language picker
   spawned by the "+ Add translation" button.

   Tap-target floor: 44×44 (NN/g + mobile-tokens.css contract).
   Inputs honor the global 16px font-size floor from mobile-tokens.css
   so iOS Safari doesn't zoom on focus.

   LABEL: PILOT-READY (visual surface — needs mobile hardware verify).
───────────────────────────────────────────────────────────────── */

.props-spoken-multilang {
  margin-top: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.props-spoken-primary-tag {
  font-size: 0.75rem;
  color: var(--ink-muted, #6b7280);
  letter-spacing: 0.01em;
  font-weight: 500;
}

.props-spoken-primary-tag [data-primary-lang] {
  color: var(--ink, #222);
  font-weight: 600;
}

.props-spoken-alts-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.props-spoken-alts-list:empty {
  display: none;
}

.props-spoken-alt {
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px;
  padding: 0.55rem;
  background: var(--surface-soft, #f9fafb);
}

.props-spoken-alt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.props-spoken-alt-lang {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink, #222);
}

.props-spoken-alt-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-muted, #6b7280);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.props-spoken-alt-remove:hover,
.props-spoken-alt-remove:focus-visible {
  color: #b91c1c;
  border-color: #fca5a5;
  outline: none;
  background: #fef2f2;
}

.props-spoken-alt-text {
  width: 100%;
  min-height: 44px;
  resize: vertical;
}

.props-spoken-add-btn {
  align-self: flex-start;
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  border: 1px dashed var(--border, #d1d5db);
  border-radius: 10px;
  background: transparent;
  color: var(--accent, #2563eb);
  font-weight: 600;
  cursor: pointer;
}

.props-spoken-add-btn:hover,
.props-spoken-add-btn:focus-visible {
  border-style: solid;
  background: rgba(37, 99, 235, 0.06);
  outline: none;
}

/* ─── Inline language picker spawned by "+ Add translation" ──── */

.props-spoken-lang-picker {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.45rem;
  padding: 0.55rem;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.props-spoken-lang-select {
  flex: 1 1 180px;
  min-height: 44px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border, #d1d5db);
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #222);
}

.props-spoken-lang-ok,
.props-spoken-lang-cancel {
  min-height: 44px;
  min-width: 64px;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.props-spoken-lang-ok {
  border: 1px solid var(--accent, #2563eb);
  background: var(--accent, #2563eb);
  color: #fff;
}

.props-spoken-lang-cancel {
  border: 1px solid var(--border, #d1d5db);
  background: #fff;
  color: var(--ink, #222);
}

.props-spoken-lang-ok:hover,
.props-spoken-lang-ok:focus-visible,
.props-spoken-lang-cancel:hover,
.props-spoken-lang-cancel:focus-visible {
  outline: none;
  filter: brightness(0.97);
}

@media (max-width: 480px) {
  .props-spoken-lang-picker {
    flex-direction: column;
    align-items: stretch;
  }
  .props-spoken-lang-select,
  .props-spoken-lang-ok,
  .props-spoken-lang-cancel {
    width: 100%;
  }
}
