/* ============================================================
   CARDS-JUTSU.CSS — o card de um golpe, numa só definição (15/09)

   Este bloco vivia dentro do css/jutsus.css. Saiu para aqui quando a
   página de Doujutsus passou a usar o MESMO card dos Jutsus: duas cópias
   do mesmo desenho iam divergir à primeira alteração, que é exactamente o
   que não se quer. Agora quem mexer aqui mexe nas duas páginas.

   Carregado por: html/jutsus.html e html/doujutsus.html.

   As classes mantêm o prefixo `jut-` de propósito. Renomeá-las para algo
   neutro obrigava a mexer em todo o js/jutsus.js sem ganho nenhum — e o
   prefixo continua a dizer de onde o desenho vem.
   ============================================================ */

/* ── GRID DE JUTSUS (cards) ─────────────────────────────────── */
.jut-jutsus-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.jut-card {
  flex: 1 1 220px;
  max-width: 260px;
  background: var(--ink-800);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.jut-card:hover { border-color: var(--ink-line-strong); transform: translateY(-2px); }
.jut-card.bloqueado { opacity: .55; }

/* Imagem do jutsu — padronizada 120x120, quadrada */
.jut-card-img-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 14px auto 0;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-900);
  border: 1px solid var(--ink-line);
  flex-shrink: 0;
}
.jut-card-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
}
.jut-card-img-fallback {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
}
.jut-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}
.jut-card-rank-badge {
  position: absolute;
  top: 6px; right: 6px;
  font-family: var(--font-mono);
  font-size: .64rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid;
}

.jut-card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  text-align: center;
}
.jut-card-nome { font-family: var(--font-body); font-weight: 700; font-size: .86rem; color: var(--text); }
.jut-card-desc { font-size: .7rem; color: var(--text-dim); line-height: 1.4; min-height: 2.6em; }

.jut-card-nivel-badge {
  position: absolute;
  top: 6px; left: 6px;
  font-family: var(--font-mono);
  font-size: .62rem;
  font-weight: 700;
  color: var(--ink-950);
  background: var(--chakra);
  padding: 2px 7px;
  border-radius: 6px;
}
.jut-card-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.jut-card-stat {
  font-size: .64rem;
  font-weight: 700;
  color: var(--text-dim);
  background: var(--ink-900);
  border: 1px solid var(--ink-line);
  border-radius: 6px;
  padding: 3px 7px;
}
.jut-card-stat.dano { color: var(--ember); }
.jut-card-footer { padding: 0 14px 14px; margin-top: auto; }
.jut-card-footer button { width: 100%; }

.jut-card-btn-aprender, .jut-card-btn-evoluir, .jut-card-btn-locked, .jut-card-btn-max {
  margin-top: auto;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .76rem;
  color: #fff;
  background: linear-gradient(135deg, var(--ember-dim), var(--ember));
  border: none;
  border-radius: 7px;
  padding: 9px 10px;
  transition: filter .15s ease;
}
.jut-card-btn-evoluir { background: linear-gradient(135deg, var(--chakra-dim), var(--chakra)); width: 100%; }
.jut-card-btn-aprender:hover, .jut-card-btn-evoluir:hover:not(:disabled) { filter: brightness(1.1); }
.jut-card-btn-evoluir:disabled { background: var(--ink-700); color: var(--text-faint); cursor: not-allowed; }

/* ── Up de jutsu em lote (29/08) ── */
.jut-card-upar-linha { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.jut-card-qtd-input {
  width: 100%;
  font-family: var(--font-body);
  font-size: .7rem;
  text-align: center;
  padding: 4px 4px;
  border-radius: 6px;
  border: 1px solid var(--ink-line);
  background: var(--ink-800);
  color: var(--text);
}
.jut-card-btn-locked, .jut-card-btn-max {
  background: var(--ink-700);
  color: var(--text-faint);
  cursor: not-allowed;
}

/* ── CARD DE ELEMENTO / KEKKEI GENKAI ────────────────────────
   O card quadrado e clicável da grelha de elementos. Veio do css/jutsus.css
   a 15/09 pela mesma razão que o card de golpe: a grelha de doujutsus passou
   a usá-lo tal e qual.

   Reutilizar o NOME da classe (e não só os valores) foi de propósito — o
   css/reskin-cards.css tem regras próprias para `.jut-elem-card` e
   `.jut-elem-card-img`, e assim a página de Doujutsus apanha o reskin de
   graça, sem lhe acrescentar uma linha. */
.jut-sub-abas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.jut-elem-card {
  flex: 1 1 130px;
  max-width: 150px;
  background: var(--ink-800);
  border: 1px solid var(--ink-line);
  border-radius: 12px;
  padding: 12px 10px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.jut-elem-card:hover { border-color: var(--ink-line-strong); transform: translateY(-2px); }
.jut-elem-card.active { background: rgba(255,90,54,.08); }
.jut-elem-card.aprendido { border-color: var(--ink-line-strong); }

.jut-elem-card-img-wrap {
  width: 56px; height: 56px;
  margin: 0 auto 8px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--ink-900);
  border: 1px solid var(--ink-line);
}
.jut-elem-card-img { width: 100%; height: 100%; object-fit: cover; }
.jut-elem-card-img-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.jut-elem-card-nome {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  color: var(--text);
  margin-bottom: 4px;
}
.jut-sub-nivel {
  font-size: .64rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--ink-700);
  color: var(--text-dim);
  display: inline-block;
}

/* ── RESPONSIVO ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .jut-card { flex: 1 1 100%; max-width: none; }
  .jut-elem-card { flex: 1 1 calc(50% - 6px); max-width: none; }
}
