/* ==========================================================
   modals.css — Estilos compartilhados de modais e overlays
   ========================================================== */

/* ── Arena de Batalha — Status Cards ── */

/* Linha de stats (ATK / DEF / SPD) */
.battle-stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
  font-size: 10px;
  font-family: monospace;
  color: #fff;
  gap: 4px;
  flex-shrink: 0;
}

/* Badge individual de stat */
.battle-stat-box {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #000;
  padding: 3px 6px;
  border-radius: 4px;
  flex: 1;
  justify-content: center;
  border: 1px solid #333;
}

/* Texto flutuante sobre a HP bar */
.battle-hp-txt {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.3px;
  text-shadow:
    0 0 3px #000, 0 0 3px #000,
    1px 1px 2px #000, -1px -1px 2px #000,
    1px -1px 2px #000, -1px 1px 2px #000;
}

/* Painel de controle de combate */
.battle-control-panel {
  background: rgba(0, 0, 0, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  z-index: 2;
  backdrop-filter: blur(10px);
}

/* Grid de movimentos */
.battle-moves-grid {
  display: grid;
  gap: 6px;
  padding: 6px 12px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.35);
  align-items: center;
  flex-shrink: 0;
}

/* ── Padrões de Modal — Reutilizados em vários modais ── */

/* Círculo de imagem do Pokémon (confirmações) */
.modal-pk-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed;
  margin-bottom: 4px;
}
.modal-pk-circle--success {
  background: rgba(46, 204, 113, 0.05);
  border-color: rgba(46, 204, 113, 0.3);
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.1);
}
.modal-pk-circle--warning {
  background: rgba(230, 126, 34, 0.05);
  border-color: rgba(230, 126, 34, 0.3);
  box-shadow: 0 0 15px rgba(230, 126, 34, 0.1);
}
.modal-pk-circle__img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: pixelated;
  animation: bob 2.8s ease-in-out infinite;
}

/* Identidade do Pokémon (nome + nível) */
.modal-pk-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* Caixa de informações de transação */
.modal-info-box {
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  width: 100%;
  box-sizing: border-box;
  font-size: 12px;
  line-height: 1.6;
  color: #ddd;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Linha de info (rótulo: valor) */
.modal-info-row {
  display: flex;
  justify-content: space-between;
}
.modal-info-row--sep {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 6px;
}

/* Ícone de moeda pequeno */
.modal-coin-icon {
  width: 14px;
  height: 14px;
}

/* Container de botões de ação */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

/* Botão de ação full-width (usado com !important para override do btn base) */
.modal-full-btn {
  width: 100% !important;
  min-width: auto !important;
  padding: 12px 0 !important;
  font-size: 12.5px !important;
  letter-spacing: 1px !important;
  font-weight: bold !important;
  text-transform: uppercase !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

/* Barra de busca no topo de modais */
.modal-search-container {
  padding: 10px 18px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  background: rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Card de info do Pokémon (screen-habilidades) */
.modal-pk-info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 10px 14px;
  width: 100%;
}
.modal-pk-info-card__img {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
  object-fit: contain;
}
.modal-pk-info-card__body {
  text-align: left;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ── PvP ── */
.pvp-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  padding: 20px 0;
}
.pvp-battle-log {
  font-size: 10px;
  font-family: monospace;
  color: #ccc;
  max-height: 120px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  padding: 6px;
  margin-bottom: 8px;
}
