/* ==========================================================
   LAYOUT DOS MASCOTES V4
   - Geral: imagem completa acima e texto abaixo
   - Times: texto sobre a imagem, com mascote centralizado
   - Destaques: imagem centralizada com texto sobreposto
   - Sem quadriculado no Team 02
   ========================================================== */

/* ----------------------------------------------------------
   HERO GERAL: mantém a separação imagem + conteúdo
   ---------------------------------------------------------- */

body[data-scope="general"] .hero-panel {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas:
    "visual"
    "copy" !important;
  gap: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: #080c16 !important;
}

body[data-scope="general"] .hero-image-stage {
  grid-area: visual;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom:
    1px solid
    color-mix(in srgb, var(--scope-accent) 24%, rgba(255,255,255,.06));
}

body[data-scope="general"] .hero-backdrop-image {
  object-fit: contain !important;
  object-position: center center !important;
  filter: brightness(.82) saturate(.98) !important;
}

body[data-scope="general"] .hero-backdrop-blur {
  filter: blur(30px) brightness(.32) saturate(.96) !important;
  opacity: .86 !important;
}

body[data-scope="general"] .hero-image-stage::after {
  background:
    linear-gradient(
      180deg,
      rgba(5,7,14,.02),
      rgba(5,7,14,.08) 72%,
      rgba(5,7,14,.28)
    ) !important;
}

body[data-scope="general"] .hero-copy {
  grid-area: copy;
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding:
    clamp(30px, 4vw, 48px)
    clamp(28px, 5vw, 62px)
    clamp(34px, 4.5vw, 54px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    linear-gradient(
      145deg,
      rgba(11,15,28,.98),
      rgba(8,11,21,.99)
    ) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

body[data-scope="general"] .hero-copy h1 {
  max-width: none !important;
  font-size: clamp(2.8rem, 5.2vw, 5.2rem) !important;
}

/* ----------------------------------------------------------
   HEROS INDIVIDUAIS: imagem e conteúdo na mesma caixa
   ---------------------------------------------------------- */

body[data-scope="team01"] .hero-panel,
body[data-scope="team02"] .hero-panel,
body[data-scope="team09"] .hero-panel {
  position: relative;
  isolation: isolate;
  display: flex !important;
  align-items: flex-end !important;
  min-height: clamp(560px, 48vw, 700px) !important;
  padding: 0 !important;
  overflow: hidden;
  background: #080c16 !important;
}

body[data-scope="team01"] .hero-image-stage,
body[data-scope="team02"] .hero-image-stage,
body[data-scope="team09"] .hero-image-stage {
  position: absolute !important;
  z-index: 0;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  background: #070b14 !important;
}

body[data-scope="team01"] .hero-backdrop-blur,
body[data-scope="team02"] .hero-backdrop-blur,
body[data-scope="team09"] .hero-backdrop-blur {
  inset: -8% !important;
  width: 116% !important;
  height: 116% !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: blur(34px) brightness(.28) saturate(1.05) !important;
  opacity: .94 !important;
}

body[data-scope="team01"] .hero-backdrop-image,
body[data-scope="team02"] .hero-backdrop-image,
body[data-scope="team09"] .hero-backdrop-image {
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: brightness(.74) saturate(.98) !important;
  transform: none !important;
}

body[data-scope="team01"] .hero-image-stage::after,
body[data-scope="team02"] .hero-image-stage::after,
body[data-scope="team09"] .hero-image-stage::after {
  content: "";
  display: block;
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5,7,14,.04) 0%,
      rgba(5,7,14,.08) 38%,
      rgba(5,7,14,.55) 72%,
      rgba(5,7,14,.88) 100%
    ),
    linear-gradient(
      90deg,
      rgba(5,7,14,.44) 0%,
      rgba(5,7,14,.10) 42%,
      rgba(5,7,14,.04) 72%,
      rgba(5,7,14,.16) 100%
    ) !important;
  pointer-events: none;
}

/* Remove definitivamente qualquer malha ou pseudo-overlay antigo. */
body[data-scope="team01"] .hero-panel::before,
body[data-scope="team01"] .hero-panel::after,
body[data-scope="team02"] .hero-panel::before,
body[data-scope="team02"] .hero-panel::after,
body[data-scope="team09"] .hero-panel::before,
body[data-scope="team09"] .hero-panel::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  mask-image: none !important;
}

body[data-scope="team01"] .hero-copy,
body[data-scope="team02"] .hero-copy,
body[data-scope="team09"] .hero-copy {
  position: relative !important;
  z-index: 3;
  display: block !important;
  width: min(58%, 650px) !important;
  max-width: 650px !important;
  min-height: 0 !important;
  margin:
    0
    0
    clamp(24px, 3vw, 38px)
    clamp(24px, 3.4vw, 44px) !important;
  padding: clamp(22px, 2.8vw, 32px) !important;
  border:
    1px solid
    color-mix(in srgb, var(--scope-accent) 28%, rgba(255,255,255,.07));
  border-radius: 24px !important;
  background: rgba(6, 9, 17, .74) !important;
  box-shadow: 0 24px 54px rgba(0,0,0,.34) !important;
  backdrop-filter: blur(12px);
}

body[data-scope="team01"] .hero-copy h1,
body[data-scope="team02"] .hero-copy h1,
body[data-scope="team09"] .hero-copy h1 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .14em;
  max-width: 590px !important;
  margin: 10px 0 8px !important;
  font-size: clamp(2.35rem, 4.15vw, 4.35rem) !important;
  line-height: .98 !important;
  letter-spacing: -.06em !important;
}

body[data-scope="team01"] .hero-manifesto,
body[data-scope="team02"] .hero-manifesto,
body[data-scope="team09"] .hero-manifesto {
  max-width: 570px;
}

/* ----------------------------------------------------------
   CARDS DE DESTAQUE: imagem centralizada e texto sobre a imagem
   ---------------------------------------------------------- */

.result-card {
  position: relative;
  isolation: isolate;
  display: flex !important;
  min-height: 370px !important;
  overflow: hidden;
  background: #080c16 !important;
}

.result-card-media {
  position: absolute !important;
  z-index: 0;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  overflow: hidden;
  border: 0 !important;
  background: #070b14 !important;
}

.result-card-image-blur {
  position: absolute !important;
  z-index: 0;
  inset: -9% !important;
  width: 118% !important;
  height: 118% !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: blur(24px) brightness(.27) saturate(1.02) !important;
  opacity: .96 !important;
}

.result-card-image {
  position: absolute !important;
  z-index: 1;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  filter: brightness(.78) saturate(.98) !important;
  transform: none !important;
}

.result-card-media::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5,7,14,.20) 0%,
      rgba(5,7,14,.24) 34%,
      rgba(5,7,14,.68) 68%,
      rgba(5,7,14,.97) 100%
    ),
    linear-gradient(
      120deg,
      color-mix(in srgb, var(--accent) 10%, transparent),
      transparent 46%
    ) !important;
  pointer-events: none;
}

.result-card-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 370px !important;
  padding: 22px 22px 23px !important;
  background: transparent !important;
}

.result-card-top {
  gap: 12px;
}

.result-card-label strong {
  max-width: 270px;
  font-size: 1.02rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.92);
}

.result-winner {
  margin-top: auto !important;
  padding-top: 74px !important;
}

.result-winner-copy span,
.result-winner-copy strong,
.result-value span,
.result-value strong {
  text-shadow: 0 2px 12px rgba(0,0,0,.96);
}

.result-value {
  margin-top: 18px !important;
}

.result-card.is-empty .result-card-image,
.result-card.is-empty .result-card-image-blur {
  opacity: .22 !important;
  filter: grayscale(1) brightness(.38) !important;
}

/* ----------------------------------------------------------
   RESPONSIVO
   ---------------------------------------------------------- */

@media (max-width: 980px) {
  body[data-scope="general"] .hero-image-stage {
    aspect-ratio: 16 / 9;
    height: auto !important;
  }

  body[data-scope="team01"] .hero-panel,
  body[data-scope="team02"] .hero-panel,
  body[data-scope="team09"] .hero-panel {
    min-height: 660px !important;
  }

  body[data-scope="team01"] .hero-copy,
  body[data-scope="team02"] .hero-copy,
  body[data-scope="team09"] .hero-copy {
    width: calc(100% - 40px) !important;
    max-width: 620px !important;
    margin: 0 20px 24px !important;
  }
}

@media (max-width: 720px) {
  body[data-scope="general"] .hero-copy {
    padding: 24px 18px 30px !important;
  }

  body[data-scope="general"] .hero-copy h1 {
    font-size: clamp(2.45rem, 10vw, 4rem) !important;
  }

  body[data-scope="team01"] .hero-panel,
  body[data-scope="team02"] .hero-panel,
  body[data-scope="team09"] .hero-panel {
    min-height: 610px !important;
  }

  body[data-scope="team01"] .hero-copy,
  body[data-scope="team02"] .hero-copy,
  body[data-scope="team09"] .hero-copy {
    width: calc(100% - 28px) !important;
    margin: 0 14px 16px !important;
    padding: 20px !important;
    border-radius: 20px !important;
  }

  body[data-scope="team01"] .hero-copy h1,
  body[data-scope="team02"] .hero-copy h1,
  body[data-scope="team09"] .hero-copy h1 {
    font-size: clamp(2.05rem, 10vw, 3.25rem) !important;
  }

  .result-card {
    min-height: 350px !important;
  }

  .result-card-content {
    min-height: 350px !important;
    padding: 19px 18px 21px !important;
  }
}
