/* Guia dos Itens: cards no estilo da caixa de informação do item no jogo. */

.it-wrap { padding-top: 32px; padding-bottom: 80px; }
.it-lead { margin: -6px 0 18px; color: var(--muted); }

/* Tipos irmãos (abas) */
.it-sibs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.it-sib {
  padding: 8px 14px;
  border: 1px solid #262626;
  border-radius: 999px;
  background: #101010;
  color: #cfcfcf;
  font: 500 13px var(--font);
  text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.it-sib:hover { color: #fff; border-color: #444; }
.it-sib.active { color: #fff; border-color: var(--kfh-orange); background: rgba(255, 106, 0, .12); }

/* Busca e filtro */
.it-tools {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 22px; padding: 12px 14px;
  border: 1px solid #1f1f1f; border-radius: 6px;
  background: linear-gradient(var(--kfh-orange), var(--kfh-red)) left top / 3px 100% no-repeat, #0e0e0e;
}
.it-search {
  display: flex; align-items: center; gap: 8px;
  flex: 0 1 280px; height: 38px; padding: 0 12px;
  border: 1px solid #2a2a2a; border-radius: 4px; background: #0a0a0a; color: var(--muted);
}
.it-search:focus-within { border-color: var(--kfh-orange); }
.it-search .icon { width: 18px; height: 18px; flex: none; }
.it-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: #fff; font: 14px var(--font); }
.it-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.it-chip {
  height: 34px; padding: 0 12px;
  border: 1px solid #2a2a2a; border-radius: 4px;
  background: #111; color: #cfcfcf;
  font: 600 13px var(--font); cursor: pointer;
}
.it-chip:hover { color: #fff; border-color: #444; }
.it-chip.active { color: #fff; border-color: var(--kfh-orange); background: rgba(255, 106, 0, .14); }

/* Cards */
.it-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  align-items: start;
}
.it-card {
  position: relative;
  padding: 16px 16px 14px;
  border: 1px solid #2b2418;
  border-radius: 6px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 170, 60, .08), transparent 60%),
    linear-gradient(#111, #0a0a0a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.it-card:hover { border-color: rgba(255, 140, 40, .6); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.it-card[hidden] { display: none; }
.it-card__slot {
  display: grid; place-items: center;
  min-height: 112px;
  margin-bottom: 12px;
  border: 1px solid #1e1e1e;
  border-radius: 4px;
  background:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 22px 22px,
    radial-gradient(circle at 50% 50%, #1b1610, #0b0b0b 70%);
}
.it-card__slot img { display: block; max-width: 100%; height: auto; margin: 10px 0; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .7)); }
.it-card__name {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #222;
  text-align: center;
  color: #fff;
  font: 700 16px/1.25 var(--display);
}
.it-card dl { margin: 0; }
.it-card dl > div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 13px; line-height: 1.35; }
.it-card dt { color: #a9a9a9; }
.it-card dd { margin: 0; color: #f2f2f2; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.it-req { margin-top: 8px !important; padding-top: 8px; border-top: 1px dashed #262626; }
.it-req dt, .it-req dd { color: #ffab5c !important; }
.it-free { margin: 8px 0 0; padding-top: 8px; border-top: 1px dashed #262626; color: var(--muted); font-size: 13px; text-align: center; }
.it-spec { margin-top: 8px; padding-top: 8px; border-top: 1px dashed #262626; }
.it-spec__who { margin: 0 0 4px; color: #8fdc8a; font-size: 13px; line-height: 1.4; }
.it-spec__who b { color: #b6f0b2; }
.it-spec dt, .it-spec dd { color: #8fdc8a !important; }

.it-none { padding: 40px 0; text-align: center; color: var(--muted); }
.it-note {
  margin: 28px 0 0; padding: 14px 16px;
  border: 1px solid #1f1f1f; border-radius: 6px; background: #0e0e0e;
  color: #bdbdbd; font-size: 14px; line-height: 1.6;
}

/* Hub */
.it-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.it-tile {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 16px 12px 14px;
  border: 1px solid #222; border-radius: 6px;
  background: linear-gradient(#121212, #0b0b0b);
  color: #fff; text-decoration: none; text-align: center;
  transition: border-color .2s, transform .2s;
}
.it-tile:hover { border-color: var(--kfh-orange); transform: translateY(-2px); }
.it-tile__img {
  display: grid; place-items: center;
  width: 100%; height: 104px; margin-bottom: 6px;
  border-radius: 4px;
  background: radial-gradient(circle at 50% 50%, #1d1710, #0b0b0b 70%);
}
.it-tile__img img { max-height: 96px; width: auto; height: auto; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .7)); }
.it-tile b { font: 700 15px var(--display); }
.it-tile small { color: var(--muted); font-size: 12px; }
.it-howto {
  margin-top: 40px; padding: 20px 22px;
  border: 1px solid #1f1f1f; border-radius: 6px;
  background: linear-gradient(var(--kfh-orange), var(--kfh-red)) left top / 3px 100% no-repeat, #0e0e0e;
}
.it-howto h2 { margin: 0 0 10px; font: 700 18px var(--display); color: #fff; }
.it-howto ul { margin: 0; padding-left: 18px; color: #d0d0d0; line-height: 1.7; }

@media (max-width: 560px) {
  .it-grid { grid-template-columns: 1fr; }
  .it-search { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .it-card, .it-tile { transition: none; } .it-card:hover, .it-tile:hover { transform: none; } }
