/* chat-attachments.css — acabamento AAA do picker de anexos do chat (📎).
 *
 * As classes .attach-types/.attach-type e os formulários do picker não tinham
 * CSS: o navegador desenhava botões padrão (fundo branco) destoando do HUD.
 * Idioma visual do jogo: painel quase-preto azulado, borda dourada, brilho
 * suave no hover (mesma família de style.css §chat e mobile-hud.css).
 */

/* ── Container do picker: popover acima da linha de input ── */
#chatBox .chat-input-row {
  position: relative;
}

#chatAttachPicker {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 6px);
  z-index: 30;
  padding: 10px;
  background: linear-gradient(180deg, #10141fd9, #0a0d15f2);
  border: 1px solid #6b5a2e;
  border-radius: 10px;
  box-shadow: 0 12px 32px #000c, inset 0 1px 0 #f0c04022;
  backdrop-filter: blur(6px);
  max-height: min(46vh, 360px);
  overflow-y: auto;
}

.attach-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #f0c040;
  border-bottom: 1px solid #3a3325;
  padding-bottom: 6px;
}

/* ── Grade de tipos de anexo ── */
.attach-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.attach-type {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #1a2030, #12151d);
  border: 1px solid #3a3325;
  border-radius: 8px;
  color: #e8dfc8;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.attach-type:hover,
.attach-type:focus-visible {
  border-color: #f0c040;
  box-shadow: 0 0 12px #f0c04033;
  transform: translateY(-1px);
  outline: none;
}

.attach-type:active {
  transform: translateY(0);
  box-shadow: 0 0 4px #f0c0402a;
}

.attach-type strong { font-size: 12px; color: #f0c040; letter-spacing: .02em; }
.attach-type small { font-size: 10.5px; color: #8f9ab5; }

/* ── Formulários do picker (item/oferta/missão/localização) ── */
#chatAttachPicker form {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#chatAttachPicker input {
  flex: 1 1 96px;
  min-width: 0;
  background: #05070c;
  border: 1px solid #3a3325;
  border-radius: 6px;
  color: #fff;
  padding: 7px 9px;
  font-size: 12.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#chatAttachPicker input:focus {
  border-color: #f0c040;
  box-shadow: 0 0 8px #f0c0402e;
}

#chatAttachPicker button[type="submit"] {
  flex: 1 1 100%;
  padding: 8px 10px;
  background: linear-gradient(180deg, #2a2415, #1a1608);
  border: 1px solid #6b5a2e;
  border-radius: 6px;
  color: #f0c040;
  font-weight: bold;
  font-size: 11.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}

#chatAttachPicker button[type="submit"]:hover {
  background: linear-gradient(180deg, #3a3220, #2a2415);
  box-shadow: 0 0 10px #f0c04033;
}

#chatAttachPicker p {
  margin: 2px 0;
  color: #8f9ab5;
  font-size: 12px;
}

/* Anexos recebidos continuam legíveis mesmo quando a mensagem é vazia. */
.chat-attachment-badge {
  display: inline-flex;
  align-items: center;
  margin: 3px 0 0 4px;
  padding: 2px 7px;
  border: 1px solid #6b5a2e;
  border-radius: 999px;
  background: #171307;
  color: #ffd977;
  font-size: 11px;
  line-height: 1.3;
  vertical-align: middle;
}

/* ── Negociação com fake player (WTB): botão no balão + linhas de compra ── */
.fake-trade-link {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  background: linear-gradient(180deg, #2a2415, #1a1608);
  border: 1px solid #6b5a2e;
  border-radius: 999px;
  color: #f0c040;
  font-size: 11px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.fake-trade-link:hover {
  border-color: #f0c040;
  box-shadow: 0 0 8px #f0c04033;
}

.fake-trade-face {
  margin: 10px 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #3a3325;
  color: #f0c040;
  font-family: 'Cinzel', serif;
  letter-spacing: .04em;
  font-size: 13px;
}

.fake-trade-face small { color: #8f9ab5; font-family: Arial, sans-serif; font-size: 10.5px; }

.fake-buy-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.fake-buy-item { flex: 1; font-size: 12.5px; color: #e8dfc8; }
.fake-buy-item small { display: block; color: #8f9ab5; font-size: 10.5px; }

.fake-buy-qty {
  width: 56px;
  background: #05070c;
  border: 1px solid #3a3325;
  border-radius: 6px;
  color: #fff;
  padding: 5px 6px;
  font-size: 12.5px;
}

.fake-buy-sell {
  padding: 6px 12px;
  background: linear-gradient(180deg, #3a2f14, #241d0c);
  border: 1px solid #b8963f;
  border-radius: 6px;
  color: #ffd977;
  font: bold 11.5px/1 Arial, sans-serif;
  letter-spacing: .05em;
  cursor: pointer;
}

.fake-buy-sell:hover:not(:disabled) { box-shadow: 0 0 10px #f0c04040; }
.fake-buy-sell:disabled { opacity: .4; cursor: not-allowed; }

/* ── Modal de Moderação de Chat ao Vivo (Advertências e Mutes) ── */
.chat-moderation-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 6, 12, 0.82);
  backdrop-filter: blur(8px);
  padding: 16px;
  animation: fadeInModal .2s ease-out;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

.chat-moderation-card {
  width: 100%;
  max-width: 490px;
  background: linear-gradient(180deg, #161c28, #0b0f17);
  border: 2px solid #b8963f;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8), 0 0 24px rgba(184, 150, 63, 0.25);
  overflow: hidden;
  color: #e8dfc8;
  font-family: inherit;
}

.mod-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid #3a3325;
}

.mod-title {
  font-size: 15px;
  font-weight: bold;
  color: #ffd977;
  letter-spacing: .04em;
}

.mod-badge {
  font-size: 11px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mod-badge.warning {
  background: #7a5200;
  color: #ffe066;
  border: 1px solid #d49b00;
}

.mod-badge.muted {
  background: #7a1111;
  color: #ff9999;
  border: 1px solid #ff4444;
  animation: pulseMuted 1.5s infinite;
}

@keyframes pulseMuted {
  0%, 100% { opacity: 1; }
  50% { opacity: .7; }
}

.mod-body {
  padding: 18px;
  font-size: 13.5px;
  line-height: 1.5;
}

.mod-lead {
  margin: 0 0 12px;
  color: #f5f0e1;
}

.mod-info-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid #3a3325;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
}

.mod-countdown {
  font-size: 14px;
  color: #ffb84d;
}

.mod-rules {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12px;
}

.mod-rules ul {
  margin: 4px 0 0 18px;
  padding: 0;
  color: #b5bed5;
}

.mod-rules li {
  margin-bottom: 3px;
}

.mod-notice {
  margin: 0;
  font-size: 12.5px;
  color: #a0aec0;
}

.mod-notice.warning {
  color: #ffcc66;
  border-left: 3px solid #ffaa00;
  padding-left: 10px;
}

.mod-actions {
  padding: 12px 18px 16px;
  display: flex;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid #28241b;
}

.mod-btn {
  padding: 9px 24px;
  background: linear-gradient(180deg, #b8963f, #7c6224);
  border: 1px solid #ffe07a;
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  transition: all .15s ease;
}

.mod-btn:hover {
  background: linear-gradient(180deg, #d4ae4a, #94752c);
  transform: translateY(-1px);
}
