/* =========================================================
   Hotel Zumbi Universe — Sobreviventes do Hotel V6 Premium
   Path: /css/screens/team.css
   ========================================================= */

.team-screen {
  display: grid;
  gap: 12px;
  width: 100%;
  padding-bottom: 18px;
}

/* =========================================================
   HERO / TOPO
   ========================================================= */

.team-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 210px 190px;
  gap: 12px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(62, 255, 155, .16);
  border-radius: 26px;
  background:
    radial-gradient(circle at 12% 0%, rgba(62, 255, 155, .13), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(39, 214, 255, .11), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .018)),
    rgba(7, 13, 24, .9);
  box-shadow: 0 20px 58px rgba(0, 0, 0, .34);
}

.team-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(62, 255, 155, .028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(62, 255, 155, .02) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: .55;
}

.team-hero > * {
  position: relative;
  z-index: 2;
}

.team-hero h1 {
  margin: 4px 0 6px;
  color: var(--text);
  font-size: clamp(1.28rem, 3.2vw, 2rem);
  letter-spacing: -.055em;
  line-height: .96;
}

.team-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
}

/* =========================================================
   LÍDER
   ========================================================= */

.team-leader-card {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 160px;
  padding: 12px;
  border: 1px solid rgba(62, 255, 155, .13);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(62, 255, 155, .14), transparent 56%),
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)),
    rgba(0, 0, 0, .16);
  text-align: center;
}

.team-leader-img {
  width: 106px;
  height: 106px;
  object-fit: contain;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 20%, rgba(62, 255, 155, .14), transparent 62%);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .42));
}

.team-leader-card strong {
  color: var(--text);
  font-size: .82rem;
  line-height: 1.05;
}

.team-leader-card small {
  color: var(--green);
  font-size: .62rem;
  font-weight: 900;
}

/* =========================================================
   PODER
   ========================================================= */

.team-power-card {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 160px;
  padding: 14px;
  border: 1px solid rgba(62, 255, 155, .18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0%, rgba(62, 255, 155, .18), transparent 56%),
    linear-gradient(180deg, rgba(62, 255, 155, .09), rgba(39, 214, 255, .035)),
    rgba(0, 0, 0, .2);
}

.team-power-card span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.team-power-card strong {
  color: #46ffad;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1;
  letter-spacing: -.055em;
  text-shadow: 0 0 18px rgba(70, 255, 173, .22);
}

.team-power-card small {
  color: rgba(225, 238, 255, .68);
  font-size: .66rem;
}

/* =========================================================
   SEÇÕES
   ========================================================= */

.team-section {
  display: grid;
  gap: 11px;
  padding: 13px;
  border: 1px solid rgba(62, 255, 155, .12);
  border-radius: 23px;
  background:
    radial-gradient(circle at 8% 0%, rgba(62, 255, 155, .08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .016)),
    rgba(7, 13, 24, .82);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .26);
}

/* =========================================================
   SLOTS / EQUIPE ATIVA
   ========================================================= */

.team-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.team-slot-card {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 174px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 0%, rgba(62, 255, 155, .08), transparent 52%),
    rgba(255, 255, 255, .03);
  text-align: center;
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

.team-slot-card:hover {
  transform: translateY(-2px);
  border-color: rgba(62, 255, 155, .28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .28);
}

.team-slot-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), transparent 42%);
  opacity: .8;
}

.team-slot-card > * {
  position: relative;
  z-index: 2;
}

.team-slot-img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .36));
}

.team-empty {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-inline: auto;
  border: 2px dashed rgba(62, 255, 155, .22);
  border-radius: 18px;
  background: rgba(62, 255, 155, .045);
  color: rgba(225, 238, 255, .42);
  font-size: 1.75rem;
  font-weight: 900;
}

.team-slot-card strong {
  color: var(--text);
  font-size: .72rem;
  line-height: 1.05;
}

.team-slot-card small {
  color: var(--muted);
  font-size: .56rem;
}

.team-slot-card.is-empty {
  opacity: .72;
}

.team-slot-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  width: 100%;
}

.team-slot-actions .btn-primary,
.team-slot-actions .btn-secondary,
.team-slot-actions button {
  flex: 1 1 64px;
  min-height: 27px;
  padding-inline: 7px;
  font-size: .56rem;
}

/* =========================================================
   ESTRELAS
   ========================================================= */

.team-stars {
  display: flex;
  justify-content: center;
  gap: 1px;
  min-height: 17px;
}

.team-stars span {
  color: rgba(255, 255, 255, .18);
  font-size: .82rem;
  line-height: 1;
}

.team-stars span.is-active {
  color: #ffd54a;
  text-shadow: 0 0 9px rgba(255, 213, 74, .5);
}

/* =========================================================
   COLEÇÃO
   ========================================================= */

.team-avatar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 9px;
}

.team-avatar-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  min-height: 245px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 19px;
  background:
    radial-gradient(circle at 50% 0%, rgba(62, 255, 155, .075), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .014)),
    rgba(255, 255, 255, .028);
  transition:
    transform .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    filter .16s ease;
}

.team-avatar-card:hover {
  transform: translateY(-2px);
  border-color: rgba(62, 255, 155, .24);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .26);
}

.team-avatar-img {
  width: 82px;
  height: 82px;
  margin-inline: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .36));
}

.team-avatar-rarity {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 999px;
  background: rgba(255, 255, 255, .052);
  color: rgba(225, 238, 255, .76);
  font-size: .56rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .045em;
}

.team-avatar-card strong {
  color: var(--text);
  font-size: .74rem;
  line-height: 1.08;
}

.team-avatar-card small {
  color: var(--muted);
  font-size: .58rem;
  line-height: 1.15;
}

/* Fragmentos */

.team-fragments {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid rgba(255, 255, 255, .055);
  border-radius: 12px;
  background: rgba(0, 0, 0, .22);
  font-size: .68rem;
}

.team-fragments span {
  color: var(--muted);
}

.team-fragments strong {
  color: var(--green);
  font-size: .68rem;
}

/* Ações */

.team-avatar-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}

.team-avatar-actions button,
.team-avatar-actions .btn-primary,
.team-avatar-actions .btn-secondary {
  flex: 1;
  min-height: 29px;
  padding-inline: 8px;
  font-size: .58rem;
}

/* =========================================================
   STATUS
   ========================================================= */

.team-avatar-card.is-in-team {
  border-color: rgba(62, 255, 155, .36);
  box-shadow:
    inset 0 0 0 1px rgba(62, 255, 155, .08),
    0 0 22px rgba(62, 255, 155, .08);
}

.team-avatar-card.is-in-team::after {
  content: "NA EQUIPE";
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 4;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(62, 255, 155, .13);
  color: var(--green);
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .06em;
}

.team-avatar-card.is-locked {
  opacity: .58;
  filter: grayscale(.35);
}

.team-avatar-card.is-locked .team-avatar-img {
  filter:
    grayscale(.55)
    drop-shadow(0 10px 14px rgba(0, 0, 0, .32));
}

/* =========================================================
   RARIDADES
   ========================================================= */

.rarity-common {
  border-color: rgba(190, 205, 215, .12);
}

.rarity-rare {
  border-color: rgba(39, 214, 255, .3);
  box-shadow: inset 0 0 18px rgba(39, 214, 255, .045);
}

.rarity-rare .team-avatar-rarity {
  color: #7ee7ff;
  background: rgba(39, 214, 255, .09);
}

.rarity-epic {
  border-color: rgba(155, 92, 255, .34);
  box-shadow: inset 0 0 20px rgba(155, 92, 255, .055);
}

.rarity-epic .team-avatar-rarity {
  color: #caa7ff;
  background: rgba(155, 92, 255, .1);
}

.rarity-legendary {
  border-color: rgba(255, 196, 73, .42);
  box-shadow:
    inset 0 0 22px rgba(255, 196, 73, .075),
    0 0 18px rgba(255, 196, 73, .055);
}

.rarity-legendary .team-avatar-rarity {
  color: #ffd76b;
  background: rgba(255, 196, 73, .1);
}

/* =========================================================
   FAILSAFE
   ========================================================= */

.is-img-error {
  display: none !important;
}

/* =========================================================
   RESPONSIVO
   ========================================================= */

@media (min-width: 1180px) {
  .team-avatar-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
}

@media (max-width: 980px) {
  .team-hero {
    grid-template-columns: 1fr 170px;
  }

  .team-power-card {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .team-slots-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .team-screen {
    gap: 10px;
    padding-bottom: 14px;
  }

  .team-hero {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 23px;
  }

  .team-hero p {
    font-size: .72rem;
  }

  .team-leader-card,
  .team-power-card {
    min-height: auto;
  }

  .team-leader-img {
    width: 92px;
    height: 92px;
  }

  .team-section {
    padding: 11px;
    border-radius: 21px;
  }

  .team-slots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .team-slot-card {
    min-height: 154px;
    padding: 9px;
    border-radius: 17px;
  }

  .team-slot-img,
  .team-empty {
    width: 66px;
    height: 66px;
  }

  .team-avatar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .team-avatar-card {
    min-height: 232px;
    padding: 9px;
    border-radius: 17px;
  }

  .team-avatar-img {
    width: 72px;
    height: 72px;
  }

  .team-avatar-actions {
    flex-direction: column;
  }

  .team-slot-actions {
    flex-direction: column;
  }

  .team-power-card strong {
    font-size: 1.55rem;
  }
}

@media (max-width: 420px) {
  .team-avatar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-avatar-card {
    min-height: 224px;
  }

  .team-avatar-rarity {
    font-size: .5rem;
    padding: 3px 7px;
  }

  .team-fragments {
    font-size: .62rem;
  }

  .team-fragments strong {
    font-size: .62rem;
  }
}
