/* Phase 16 i18n UI styles — matches TB Eradicator terminal aesthetic */

/* Picker */
#tbe-lang-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  color: #e0e0e0;
  margin-inline-start: 12px;
}
#tbe-lang-picker label {
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#tbe-lang-picker-select {
  background: #0a0a1a;
  color: #00d2ff;
  border: 1px solid #00d2ff;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  max-width: 220px;
  min-height: 44px;
}
#tbe-lang-picker-select:focus { outline: 2px solid #00d2ff; outline-offset: 2px; }

/* Suggestion bar */
#tbe-suggestion-bar {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  background: #1a1a2e;
  border-block-end: 1px solid #00d2ff;
  color: #e0e0e0;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 9999;
  box-shadow: 0 2px 12px rgba(0, 210, 255, 0.15);
}
#tbe-suggestion-bar[hidden] { display: none; }
#tbe-suggestion-bar button {
  background: transparent;
  color: #00d2ff;
  border: 1px solid #00d2ff;
  padding: 4px 12px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
}
#tbe-suggestion-bar button:hover { background: rgba(0, 210, 255, 0.15); }
#tbe-suggestion-bar button.tbe-dismiss { color: #888; border-color: #888; }

/* Feedback modal */
#tbe-feedback-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
}
#tbe-feedback-modal.tbe-open { display: flex; }
#tbe-feedback-modal .tbe-dialog {
  background: #0a0a1a;
  border: 1px solid #00d2ff;
  color: #e0e0e0;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  padding: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}
#tbe-feedback-modal h2 {
  color: #00d2ff;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 12px;
}
#tbe-feedback-modal label {
  display: block;
  margin-block-start: 10px;
  color: #aaa;
  font-size: 11px;
  text-transform: uppercase;
}
#tbe-feedback-modal input,
#tbe-feedback-modal textarea {
  width: 100%;
  background: #1a1a2e;
  color: #e0e0e0;
  border: 1px solid #333;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
  min-height: 44px;
}
#tbe-feedback-modal textarea { min-height: 64px; resize: vertical; }
#tbe-feedback-modal .tbe-actions {
  display: flex;
  gap: 8px;
  margin-block-start: 16px;
  justify-content: flex-end;
}
#tbe-feedback-modal button {
  background: transparent;
  color: #00d2ff;
  border: 1px solid #00d2ff;
  padding: 6px 14px;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  min-height: 44px;
}
#tbe-feedback-modal button.tbe-primary { background: #00d2ff; color: #0a0a1a; font-weight: bold; }
#tbe-feedback-modal button.tbe-cancel { color: #888; border-color: #888; }
#tbe-feedback-modal .tbe-volunteer {
  margin-block-start: 12px;
  font-size: 11px;
  color: #888;
}
#tbe-feedback-modal .tbe-volunteer a { color: #00d2ff; }

/* Floating feedback button */
#tbe-feedback-fab {
  position: fixed;
  inset-block-end: 16px;
  inset-inline-end: 16px;
  background: #1a1a2e;
  color: #00d2ff;
  border: 1px solid #00d2ff;
  padding: 8px 14px;
  font-family: 'Courier New', monospace;
  font-size: 11px;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 500;
  opacity: 0.8;
  min-height: 44px;
}
#tbe-feedback-fab:hover { opacity: 1; }
html[data-lang="en"] #tbe-feedback-fab { display: none; }

/* Review banner (Tier 2+3) */
#tbe-review-banner {
  background: #ffd700;
  color: #0a0a1a;
  padding: 8px 16px;
  text-align: center;
  font-family: 'Courier New', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
#tbe-review-banner a {
  color: #0a0a1a;
  text-decoration: underline;
  margin-inline-start: 8px;
}
#tbe-review-banner[hidden] { display: none; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  #tbe-suggestion-bar,
  #tbe-feedback-modal .tbe-dialog { transition: none; animation: none; }
}
