/* Destruitor Idle — aba Proficiência da janela do personagem (proficiencia.js), no formato da do Huntera.
   Usa as cores do app.css (--gold, --line, --dim...). */

/* 4 abas na janela do personagem (Personagem, Outfit, Proficiência, Mortes) */
.ptabs { grid-template-columns: repeat(4, 1fr); }
.g .ptabs button { position: relative; }
.prof-badge { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; padding: 0 5px; border-radius: 9px;
  background: var(--gold); color: #1d1606; font: 800 11px/1 system-ui, sans-serif; letter-spacing: 0; font-style: normal; vertical-align: 1px; }

.prof { display: grid; grid-template-columns: 240px 1fr; gap: 12px; min-height: 420px; position: relative; font-size: 13px; }
.prof-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; background: #121624; border: 1px solid #2a3044; border-radius: 8px; padding: 10px; }
.prof-side-h { display: flex; justify-content: space-between; align-items: baseline; }
.prof-side-h b { color: var(--txt); font-size: 14px; }
.prof-n { color: #7fa3ff; font-size: 12px; font-variant-numeric: tabular-nums; }
.g .prof-filtro { width: 100%; padding: 6px 8px; border-radius: 6px; border: 1px solid #39425a; background: #151a29; color: var(--txt); font-size: 13px; }
.prof-busca { display: flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid #39425a; border-radius: 6px; background: #151a29; }
.prof-busca span { font-size: 12px; opacity: .7; }
.g .prof-busca input { flex: 1; min-width: 0; padding: 6px 0; border: 0; background: transparent; color: var(--txt); font-size: 13px; outline: none; }
.prof-lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; overflow-y: auto; overflow-x: hidden; max-height: 470px; padding-right: 2px; align-content: start; }
.g .prof-it { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 5px 3px 4px; border: 1px solid #2c3346; border-radius: 6px;
  background: #0f1320; cursor: pointer; min-width: 0; position: relative; }
.g .prof-it:hover { border-color: #4a5677; }
.g .prof-it.sel { border-color: #7fa3ff; box-shadow: inset 0 0 0 1px #7fa3ff55; background: #151c30; }
.g .prof-it.emp::before { content: ''; position: absolute; top: 3px; left: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.g .prof-it.pend { border-color: var(--gold); animation: profpisca 1.8s ease-in-out infinite; }
.g .prof-it.dom { border-color: #b98a2e; }
@keyframes profpisca { 0%, 100% { box-shadow: 0 0 0 0 rgba(216, 166, 74, .45); } 50% { box-shadow: 0 0 0 3px rgba(216, 166, 74, 0); } }
.prof-it-w { display: grid; place-items: center; width: 32px; height: 32px; }
.prof-it-ic { width: 32px; height: 32px; image-rendering: pixelated; }
/* sem o icone da arma: o simbolo da classe */
.sem-ic::before { font-size: 18px; line-height: 1; color: #6f7a99; }
.sem-ic.c-sword::before { content: '🗡'; } .sem-ic.c-axe::before { content: '🪓'; } .sem-ic.c-club::before { content: '🔨'; }
.sem-ic.c-distance::before { content: '🏹'; } .sem-ic.c-wand::before { content: '🪄'; }
.prof-stars { display: inline-flex; gap: 1px; font-size: 9px; line-height: 1; color: #3d4560; }
.prof-stars i { font-style: normal; }
.prof-stars i.on { color: #7fa3ff; }
.dom .prof-stars i.on, .prof-crest.dom ~ .prof-id .prof-stars i.on { color: var(--gold-2); }
.prof-bar { display: block; width: 100%; height: 3px; border-radius: 2px; background: #22283a; overflow: hidden; }
.prof-bar i { display: block; height: 100%; background: #5a7bd8; }
.prof-bar.dom i { background: var(--gold); }
.prof-vazio { color: var(--dim); font-size: 12.5px; margin: 8px 2px; grid-column: 1 / -1; line-height: 1.45; }

.prof-det { display: flex; flex-direction: column; gap: 10px; min-width: 0; overflow-y: auto; max-height: 600px; }
.prof-head { display: flex; align-items: center; gap: 12px; }
.prof-crest { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border: 1px solid #39425a; border-radius: 8px; background: #121624; }
.prof-crest.dom { border-color: var(--gold); box-shadow: 0 0 10px #d8a64a55; }
.prof-head-ic { width: 40px; height: 40px; image-rendering: pixelated; }
.prof-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.prof-nome { font-size: 16px; color: var(--txt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prof-id small { color: var(--dim); font-size: 12px; }
.prof-marcas { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prof-marcas .prof-stars { font-size: 13px; }
.prof-nv { color: #7fa3ff; font-weight: 700; font-size: 12.5px; }
.prof-nv.dom { color: var(--gold-2); }
.prof-emp { color: var(--ok); font-size: 12px; }
.prof-cont { flex: none; padding: 5px 9px; border: 1px solid #39425a; border-radius: 6px; background: #151a29; color: var(--dim); font-size: 12px; }
.prof-xp { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px; border: 1px solid #2a3044; border-radius: 8px; background: #121624; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.prof-xp .prof-bar { height: 5px; }
.prof-lvs { display: flex; flex-direction: column; gap: 6px; }
.prof-lv { display: grid; grid-template-columns: 96px 1fr; border: 1px solid #2a3044; border-radius: 8px; background: #121624; overflow: hidden; }
.prof-lv.chosen { border-left: 3px solid var(--ok); }
.prof-lv.pending { border-left: 3px solid var(--gold); }
.prof-lv-l { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; background: #151a29; text-align: center; }
.prof-lv-l b { font-size: 13.5px; }
.prof-lv-l small { color: #7fa3ff; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.prof-lv-st { color: #6f7586; font-size: 11px; }
.prof-lv-st i { font-style: normal; }
.prof-lv-st.ok { color: var(--ok); }
.prof-lv-st.lib { color: var(--gold-2); }
.prof-lv-pk { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px; padding: 6px; }
.g .prof-pk { display: flex; align-items: center; gap: 8px; padding: 6px 8px; text-align: left; border: 1px solid #2c3346; border-radius: 6px; background: #0f1320;
  color: var(--txt); cursor: pointer; position: relative; min-width: 0; font-size: 12.5px; line-height: 1.3; }
.g .prof-pk:hover:not(:disabled) { border-color: #5a7bd8; }
.g .prof-pk:disabled { cursor: default; opacity: .55; }
.g .prof-pk.on { border-color: var(--ok); background: #13261b; opacity: 1; }
.g .prof-pk.att { border-color: #8a6a2a; }
.g .prof-pk.breve { opacity: .45; }
.prof-pk-ic { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border: 1px solid #39425a; border-radius: 6px; background: #1a2033; font-size: 16px; line-height: 1; }
.prof-pk-sp { width: 30px; height: 30px; }
.prof-pk-ic.t8, .prof-pk-ic.t9, .prof-pk-ic.t10, .prof-pk-ic.t11, .prof-pk-ic.t12, .prof-pk-ic.t13, .prof-pk-ic.t14, .prof-pk-ic.t15 { color: #ffb347; }
.prof-pk-ic.t3, .prof-pk-ic.t4, .prof-pk-ic.t25, .prof-pk-ic.t26 { color: #9fc0ff; }
.prof-pk-ck { position: absolute; left: 30px; top: 26px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: var(--ok); color: #0d1a10; font: 900 10px/1 system-ui, sans-serif; }
.prof-pk-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prof-pk-tx em { font-style: normal; font-size: 11.5px; }
.prof-pk-gp { color: var(--gold-2); }
.prof-pk-ok { color: var(--ok); }
.prof-pk-breve { color: #8f95a6; }
.prof-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid #2a3044; border-radius: 8px; background: #121624; color: var(--dim); font-size: 12px; }
.g .prof-foot .btn { flex: none; }

/* confirmacao (ativar com gold, limpar) */
.prof-conf { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: #0a0d14cc; border-radius: 8px; }
.prof-conf-b { width: min(420px, calc(100% - 24px)); padding: 16px; border: 1px solid #3a4258; border-radius: 8px; background: #151a29; box-shadow: 0 16px 40px #000a; }
.prof-conf-b > b { display: block; font-size: 15px; color: var(--gold-2); margin-bottom: 10px; }
.prof-conf-b p { margin: 8px 0; color: var(--dim); line-height: 1.45; font-size: 12.5px; }
.prof-conf-pk { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid #2c3346; border-radius: 6px; background: #0f1320; }
.prof-conf-gold { font-variant-numeric: tabular-nums; }
.prof-conf-falta { color: var(--bad) !important; }
.prof-conf-bt { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.g .prof-conf .btn.primary { background: var(--gold); border-color: var(--gold); color: #1d1606; }
.g .prof-conf .btn.danger { background: #5a1f1c; border-color: #8a3a33; color: #ffd6cf; }
.g .prof-conf .btn:disabled { opacity: .45; cursor: default; }

/* ficha do item */
.prof-ic .prof-stars.ic { font-size: 11px; vertical-align: 1px; }
.prof-ic-pend { color: var(--gold-2); }

/* celular: a lista em cima (rola de lado), os niveis embaixo */
@media (max-width: 759px) {
  .g .ptabs button { letter-spacing: .02em; font-size: 11px; padding: 8px 2px; }
  .prof { grid-template-columns: 1fr; min-height: 0; }
  .prof-lista { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58px; grid-template-rows: auto; overflow-x: auto; overflow-y: hidden; max-height: none; padding-bottom: 4px; }
  .prof-det { max-height: none; overflow: visible; }
  .prof-head { flex-wrap: wrap; }
  .prof-cont { order: 3; flex-basis: 100%; text-align: center; }
  .prof-nome { white-space: normal; }
  .prof-lv { grid-template-columns: 1fr; }
  .prof-lv-l { flex-direction: row; justify-content: space-between; padding: 6px 10px; }
  .prof-lv-pk { grid-template-columns: 1fr; }
  .prof-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .prof-conf { position: fixed; border-radius: 0; z-index: 80; }
}
