/* ============================================================
   CAMPANHA.CSS — Naruto Players 2.0
   ============================================================ */

.camp-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

/* Header */
.camp-header { margin-bottom: 24px; }
.camp-titulo {
  font-family: "Teko", "Bangers", cursive;
  font-size: 2rem; font-weight: 700;
  color: #20212A; letter-spacing: 1px; margin: 0 0 4px;
}
.camp-subtitulo { font-size: .85rem; color: #666873; margin: 0; }

/* ── GRID DE CAPÍTULOS ──────────────────────────────────────── */
.camp-cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.camp-cap-card {
  background: #F4F2ED;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 16px; overflow: hidden;
  cursor: pointer; transition: all .2s;
}
.camp-cap-card:hover:not(.bloqueado) {
  border-color: #FA832E;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250,131,46,.15);
}
.camp-cap-card.bloqueado {
  opacity: .5; cursor: not-allowed;
  filter: grayscale(.4);
}
.camp-cap-card.completo {
  border-color: rgba(46,204,113,.3);
}

.camp-cap-img-wrap {
  height: 120px; overflow: hidden;
}
.camp-cap-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  display: block;
}

.camp-cap-body { padding: 14px 16px; }

.camp-cap-num {
  font-family: "Inter", sans-serif;
  font-size: .68rem; font-weight: 800;
  color: #FA832E; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 4px;
}
.camp-cap-nome {
  font-family: "Teko", cursive;
  font-size: 1.2rem; font-weight: 700;
  color: #20212A; margin-bottom: 4px;
}
.camp-cap-desc {
  font-size: .75rem; color: #666873;
  line-height: 1.4; margin-bottom: 12px;
}

.camp-cap-prog-wrap {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.camp-cap-prog-bar {
  flex: 1; height: 5px;
  background: rgba(0,0,0,.07); border-radius: 99px; overflow: hidden;
}
.camp-cap-prog-fill {
  height: 100%; background: #FA832E; border-radius: 99px;
  transition: width .5s ease;
}
.camp-cap-prog-fill.completo { background: #2ecc71; }
.camp-cap-prog-txt {
  font-size: .7rem; color: #666873; white-space: nowrap;
  font-family: "Inter", sans-serif; font-weight: 700;
}

.camp-cap-nivel {
  font-size: .68rem; color: #666873;
  font-family: "Inter", sans-serif;
}
.camp-cap-lock {
  font-size: .72rem; color: #e74c3c;
  font-family: "Inter", sans-serif; font-weight: 700;
}

/* ── PAINEL DE ESTÁGIOS ─────────────────────────────────────── */
#campEstagiosPainel { display: none; }

.camp-painel-header {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
}
.camp-btn-voltar {
  background: rgba(0,0,0,.06); border: 1px solid rgba(0,0,0,.1);
  color: #20212A; border-radius: 8px; padding: 8px 16px; cursor: pointer;
  font-family: "Inter", sans-serif; font-size: .82rem; font-weight: 700;
  transition: all .15s; flex-shrink: 0;
}
.camp-btn-voltar:hover { border-color: #FA832E; color: #FA832E; }
.camp-painel-info {}
.camp-painel-titulo {
  font-family: "Teko", cursive; font-size: 1.5rem;
  font-weight: 700; color: #20212A; margin: 0 0 2px;
}
.camp-painel-subtitulo { font-size: .78rem; color: #666873; }

/* Grid de estágios */
.camp-est-grid {
  display: flex; flex-direction: column; gap: 8px;
}

.camp-est-card {
  display: flex; align-items: center; gap: 14px;
  background: #F4F2ED; border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px; padding: 14px 16px;
  cursor: pointer; transition: all .15s;
}
.camp-est-card:hover:not(.bloqueado) {
  border-color: #FA832E; background: rgba(250,131,46,.05);
}
.camp-est-card.boss {
  border-color: rgba(231,76,60,.3);
  background: rgba(231,76,60,.05);
}
.camp-est-card.boss:hover:not(.bloqueado) {
  border-color: #e74c3c; background: rgba(231,76,60,.1);
}
.camp-est-card.concluido {
  border-color: rgba(46,204,113,.25);
}
.camp-est-card.bloqueado {
  opacity: .4; cursor: not-allowed;
}

.camp-est-num {
  font-family: "Teko", cursive; font-size: 1.4rem;
  font-weight: 700; color: #666873; width: 32px;
  text-align: center; flex-shrink: 0;
}
.camp-est-card.boss .camp-est-num { color: #e74c3c; }
.camp-est-card.concluido .camp-est-num { color: #2ecc71; }

.camp-est-info { flex: 1; min-width: 0; }
.camp-est-nome {
  font-family: "Teko", cursive; font-size: 1rem;
  font-weight: 600; color: #20212A; margin-bottom: 2px;
}
.camp-est-inimigos {
  font-size: .72rem; color: #666873; margin-bottom: 3px;
}
.camp-est-recomp {
  font-size: .7rem; color: #FA832E; font-weight: 700;
  font-family: "Inter", sans-serif;
}

.camp-est-status { font-size: 1.4rem; flex-shrink: 0; }
.camp-est-check  { font-size: 1.2rem; }
.camp-est-lock   { font-size: 1rem; opacity: .5; }
.camp-est-play   {
  font-size: .8rem; background: #FA832E; color: #fff;
  border-radius: 50%; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
}

/* ── MODAL DE COMBATE ───────────────────────────────────────── */
#campModal {
  position: fixed; inset: 0; z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.85); backdrop-filter: blur(6px);
  padding: 16px;
}

.camp-modal-card {
  background: #FFFFFF; border: 1px solid rgba(250,131,46,.3);
  border-radius: 20px; width: 100%; max-width: 440px;
  box-shadow: 0 0 60px rgba(250,131,46,.12);
  overflow: hidden;
  transition: max-width .2s ease;
}
.camp-modal-card.combate { max-width: 560px; }

/* Header modal */
.camp-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: rgba(250,131,46,.08);
  border-bottom: 1px solid rgba(250,131,46,.2);
}
.camp-modal-header-titulo {
  font-family: "Teko", cursive; font-size: 1.1rem;
  font-weight: 700; color: #20212A; letter-spacing: 1.5px;
}

/* Fase VS */
.camp-vs-phase { padding: 36px 24px; text-align: center; }
.camp-vs-estagio {
  font-family: "Teko", cursive; font-size: 1.6rem;
  font-weight: 700; color: #20212A; margin-bottom: 6px;
}
.camp-vs-inimigos { font-size: .82rem; color: #666873; margin-bottom: 20px; }
.camp-vs-badge {
  font-family: "Teko", "Bangers", cursive;
  font-size: 3rem; font-weight: 700; color: #e74c3c;
  animation: campVsPulse 1s ease-in-out infinite alternate;
  text-shadow: 0 0 24px rgba(231,76,60,.5);
}
@keyframes campVsPulse {
  from { transform: scale(1); }
  to   { transform: scale(1.15); }
}
.camp-vs-loader {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 16px; font-size: .78rem; color: #666873;
  font-family: "Inter", sans-serif;
}
.camp-vs-dot {
  width: 6px; height: 6px; border-radius: 50%; background: #FA832E;
  animation: campDot 1.2s ease-in-out infinite;
}
.camp-vs-dot:nth-child(2) { animation-delay: .2s; }
.camp-vs-dot:nth-child(3) { animation-delay: .4s; }
@keyframes campDot {
  0%,80%,100% { transform: scale(0.6); opacity:.4; }
  40%         { transform: scale(1);   opacity:1;  }
}

/* Fase de apresentação do boss (atributos, antes do combate) */
.camp-boss-intro-phase { padding: 28px 24px 22px; text-align: center; }
.camp-boss-intro-av {
  width: 84px; height: 84px; margin: 0 auto 10px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 2.4rem;
  background: #EDE9DE; border: 3px solid rgba(231,76,60,.4);
}
.camp-boss-intro-av img { width: 100%; height: 100%; object-fit: cover; }
.camp-boss-intro-nome {
  font-family: "Teko", cursive; font-size: 1.6rem; font-weight: 700; color: #20212A; margin-bottom: 2px;
}
.camp-boss-intro-sub { font-size: .72rem; color: #666873; margin-bottom: 16px; }
.camp-boss-intro-stats { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; text-align: left; }
.camp-boss-intro-stat-row {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0,0,0,.03); border: 1px solid rgba(0,0,0,.06);
  border-radius: 8px; padding: 7px 12px; font-size: .78rem;
}
.camp-boss-intro-stat-label { color: #666873; font-weight: 700; }
.camp-boss-intro-stat-val { color: #20212A; font-weight: 800; font-family: "Inter", sans-serif; }
.camp-boss-intro-btn {
  width: 100%; background: #FA832E; color: #fff; border: none;
  border-radius: 10px; padding: 12px; cursor: pointer;
  font-family: "Inter", sans-serif; font-size: .85rem; font-weight: 800;
}
.camp-boss-intro-btn:hover { background: #ff9a4d; }
.camp-boss-intro-cancelar {
  width: 100%; background: transparent; border: none; margin-top: 8px;
  color: #666873; cursor: pointer; font-family: "Inter", sans-serif;
  font-size: .72rem; font-weight: 700;
}
.camp-boss-intro-cancelar:hover { color: #666873; }

/* Fase luta (boss — combate interativo) */
.camp-battle-phase { padding: 18px 20px 16px; }
.camp-battle-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 10px;
}
.camp-battle-estagio {
  font-family: "Teko", cursive; font-size: 1.4rem; font-weight: 700; color: #20212A;
}
.camp-battle-abandonar {
  background: rgba(231,76,60,.1); border: 1px solid rgba(231,76,60,.3);
  color: #e88a7a; border-radius: 8px; padding: 5px 10px; cursor: pointer;
  font-family: "Inter", sans-serif; font-size: .68rem; font-weight: 700; flex-shrink: 0;
}
.camp-battle-abandonar:hover { background: rgba(231,76,60,.2); }

.camp-battle-fighters { display: flex; align-items: stretch; gap: 10px; margin-bottom: 10px; }
.camp-battle-fcard {
  flex: 1 1 0; min-width: 0; text-align: center;
  background: #FFFFFF; border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px; padding: 12px 10px;
}
.camp-battle-fcard.boss { border-color: rgba(231,76,60,.25); }
.camp-battle-fav {
  width: 54px; height: 54px; margin: 0 auto 6px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  background: #EDE9DE; border: 2px solid rgba(0,0,0,.1);
}
.camp-battle-fcard.mine .camp-battle-fav { border-color: #2ecc7155; }
.camp-battle-fcard.boss .camp-battle-fav { border-color: #e74c3c55; }
.camp-battle-fav img { width: 100%; height: 100%; object-fit: cover; }
.camp-battle-fnome {
  font-size: .76rem; font-weight: 800; color: #20212A; margin-bottom: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.camp-battle-hp-bar {
  height: 10px; border-radius: 6px; overflow: hidden;
  background: #FFFFFF; border: 1px solid #D9D5CC; margin-bottom: 4px;
}
.camp-battle-hp-fill { height: 100%; transition: width .35s ease; }
.camp-battle-hp-fill.jogador { background: linear-gradient(90deg,#2ecc71,#27ae60); }
.camp-battle-hp-fill.inimigo { background: linear-gradient(90deg,#e74c3c,#c0392b); }
.camp-battle-hp-txt { font-size: .64rem; font-weight: 700; color: #666873; }
.camp-battle-vs {
  flex-shrink: 0; align-self: center;
  font-family: "Teko","Bangers",cursive; font-size: 1.1rem; font-weight: 700;
  color: #666873;
}

.camp-battle-turno {
  text-align: center; font-size: .78rem; font-weight: 700; color: #FA832E;
  margin-bottom: 10px; min-height: 1.1em;
}

.camp-battle-acoes { margin-bottom: 10px; }
.camp-battle-abas { display: flex; gap: 6px; margin-bottom: 8px; }
.camp-battle-aba {
  flex: 1 1 0; background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.08);
  color: #666873; border-radius: 8px; padding: 7px; cursor: pointer;
  font-family: "Inter", sans-serif; font-size: .72rem; font-weight: 700;
}
.camp-battle-aba.ativa { background: rgba(250,131,46,.15); border-color: #FA832E; color: #FA832E; }

.camp-fisico-btn {
  width: 100%; background: rgba(46,204,113,.1); border: 1px solid rgba(46,204,113,.3);
  color: #7ad695; border-radius: 10px; padding: 12px; cursor: pointer;
  font-family: "Inter", sans-serif; font-size: .8rem; font-weight: 700;
}
.camp-fisico-btn:hover { background: rgba(46,204,113,.18); }

.camp-jutsu-grid {
  display: flex; flex-wrap: wrap; gap: 6px;
  max-height: 130px; overflow-y: auto; padding-right: 2px;
}
.camp-jutsu-card {
  flex: 1 1 calc(33.33% - 5px); min-width: 96px;
  background: rgba(0,0,0,.04); border: 1px solid rgba(0,0,0,.08);
  border-radius: 8px; padding: 7px 6px; text-align: center; cursor: pointer;
}
.camp-jutsu-card:hover { border-color: #FA832E; background: rgba(250,131,46,.08); }
.camp-jutsu-ico { font-size: 1.1rem; margin-bottom: 2px; }
.camp-jutsu-ico img { width: 22px; height: 22px; object-fit: contain; }
.camp-jutsu-nome {
  font-size: .64rem; font-weight: 700; color: #20212A;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.camp-jutsu-dano { font-size: .6rem; color: #e88a7a; font-weight: 700; }
.camp-jutsu-vazio {
  width: 100%; text-align: center; font-size: .72rem; color: #666873; padding: 10px 0;
}

.camp-battle-log {
  height: 84px; overflow-y: auto;
  background: rgba(0,0,0,.03); border: 1px solid rgba(0,0,0,.06);
  border-radius: 8px; padding: 8px 10px; font-size: .7rem; color: #666873;
  display: flex; flex-direction: column; gap: 3px;
}
.camp-battle-log-item { opacity: 0; animation: campLogIn .25s ease forwards; }
@keyframes campLogIn { from { opacity:0; transform: translateY(3px);} to { opacity:1; transform: translateY(0);} }

/* Fase resultado */
.camp-result-phase { padding: 28px 24px; text-align: center; }
.camp-result-icon  { font-size: 3.5rem; margin-bottom: 8px; animation: campResultIn .4s ease; }
@keyframes campResultIn {
  from { transform: scale(0); opacity:0; }
  to   { transform: scale(1); opacity:1; }
}
.camp-result-titulo {
  font-family: "Teko", "Bangers", cursive;
  font-size: 2rem; font-weight: 700;
  letter-spacing: 2px; margin-bottom: 6px;
}
.camp-result-titulo.vitoria { color: #2ecc71; text-shadow: 0 0 20px rgba(46,204,113,.4); }
.camp-result-titulo.derrota { color: #e74c3c; text-shadow: 0 0 20px rgba(231,76,60,.4); }
.camp-result-sub { font-size: .82rem; color: #666873; margin-bottom: 16px; line-height: 1.5; }

.camp-recompensas {
  display: flex; justify-content: center; gap: 16px; margin-bottom: 16px;
}
.camp-recomp-item {
  background: rgba(250,131,46,.1); border: 1px solid rgba(250,131,46,.25);
  border-radius: 8px; padding: 6px 16px;
  font-family: "Teko", cursive; font-size: 1rem; font-weight: 600;
  color: #FA832E;
}

.camp-modal-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid rgba(0,0,0,.05);
  display: flex; justify-content: center; gap: 10px;
}
.camp-btn-fechar {
  background: #FA832E; color: #fff; border: none;
  border-radius: 10px; padding: 10px 32px; cursor: pointer;
  font-family: "Teko", cursive; font-size: 1rem;
  font-weight: 600; letter-spacing: 1px; transition: background .15s;
}
.camp-btn-fechar:hover { background: #d35400; }

/* Responsive */
@media(max-width:600px) {
  .camp-cap-grid { grid-template-columns: 1fr; }
}

/* Estágio de história */
.camp-est-card.historia {
  border-color: rgba(75,146,247,.25);
  background: rgba(75,146,247,.04);
}
.camp-est-card.historia:hover:not(.bloqueado) {
  border-color: #4B92F7;
  background: rgba(75,146,247,.1);
}
.camp-est-card.historia .camp-est-num { color: #4B92F7; }
.camp-est-card.historia .camp-est-recomp { color: #4B92F7; }
