/* BP Eagles – Csapataink */

.bpe-teams,
.bpe-teams * {
  box-sizing: border-box;
}

.bpe-teams {
  --teams-blue: #0097df;
  --teams-blue-bright: #12acf3;
  --teams-bg: #030609;
  --teams-panel: #080d12;
  --teams-line: rgba(255, 255, 255, 0.105);
  --teams-text: #f5f7f9;
  --teams-muted: #84909a;
  --teams-shell: 1380px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(88px, 8vw, 132px) 0;
  color: var(--teams-text);
  background:
    linear-gradient(180deg, #030609, #060a0e 48%, #030609),
    var(--teams-bg);
  font-family: "Rajdhani", "Arial Narrow", Arial, sans-serif;
}

.bpe-teams::before {
  position: absolute;
  z-index: -1;
  top: 90px;
  left: 50%;
  width: 1px;
  height: 78%;
  content: "";
  background: linear-gradient(transparent, rgba(0, 151, 223, 0.22), transparent);
}

.bpe-teams::after {
  position: absolute;
  z-index: -1;
  right: -220px;
  bottom: -320px;
  width: 720px;
  height: 720px;
  border: 1px solid rgba(0, 151, 223, 0.08);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.008);
}

.bpe-teams__shell {
  width: min(calc(100% - 64px), var(--teams-shell));
  margin-inline: auto;
}

.bpe-teams-heading {
  display: grid;
  margin-bottom: 42px;
  grid-template-columns: 1fr minmax(300px, 470px);
  align-items: end;
  gap: 50px;
}

.bpe-teams-heading__eyebrow {
  display: flex;
  margin-bottom: 11px;
  align-items: center;
  gap: 9px;
  color: var(--teams-blue);
  font-family: "Inter", Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.bpe-teams-heading__eyebrow i {
  width: 22px;
  height: 2px;
  background: var(--teams-blue);
}

.bpe-teams .bpe-teams-heading h2 {
  margin: 0;
  color: #fff !important;
  font-size: clamp(44px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  text-transform: uppercase;
}

.bpe-teams .bpe-teams-heading h2 span {
  color: var(--teams-blue) !important;
}

.bpe-teams-heading p {
  margin: 0;
  padding-left: 23px;
  border-left: 1px solid rgba(0, 151, 223, 0.35);
  color: #8e99a2;
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
}

.bpe-teams__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.bpe-team-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--teams-line);
  background: var(--teams-panel);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transition: border-color 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.bpe-team-card:hover {
  border-color: rgba(0, 151, 223, 0.42);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
  transform: translateY(-5px);
}

.bpe-team-card::before {
  position: absolute;
  z-index: 5;
  top: -1px;
  left: 14px;
  width: 120px;
  height: 2px;
  content: "";
  background: var(--teams-blue);
  box-shadow: 0 0 16px rgba(0, 151, 223, 0.55);
}

.bpe-team-card--academy::before {
  background: linear-gradient(90deg, #fff, var(--teams-blue));
}

.bpe-team-card__media {
  position: relative;
  height: clamp(290px, 25vw, 410px);
  overflow: hidden;
  border-bottom: 1px solid var(--teams-line);
  background: #030609;
}

.bpe-team-card__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(0deg, #080d12 0%, transparent 38%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent, rgba(0, 0, 0, 0.15));
  pointer-events: none;
}

.bpe-team-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: filter 400ms ease, transform 700ms cubic-bezier(.22, 1, .36, 1);
}

.bpe-team-card:hover .bpe-team-card__media img {
  filter: brightness(1.08);
  transform: scale(1.025);
}

.bpe-team-card__number {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 24px;
  color: rgba(255, 255, 255, 0.14);
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
}

.bpe-team-card__status {
  position: absolute;
  z-index: 3;
  bottom: 18px;
  left: 22px;
  display: flex;
  padding: 7px 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(0, 151, 223, 0.3);
  color: #b9c2c9;
  background: rgba(3, 6, 9, 0.72);
  backdrop-filter: blur(10px);
  font-family: "Inter", Arial, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bpe-team-card__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teams-blue-bright);
  box-shadow: 0 0 8px var(--teams-blue);
}

.bpe-team-card__body {
  padding: 28px;
}

.bpe-team-card__title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.bpe-team-card__title > div > span {
  color: #68747e;
  font-family: "Inter", Arial, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bpe-teams .bpe-team-card__title h3 {
  margin: 4px 0 0;
  color: #fff !important;
  font-size: clamp(33px, 3.1vw, 46px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.bpe-team-card__title h3 em {
  color: var(--teams-blue) !important;
  font-style: normal;
}

.bpe-team-card--academy .bpe-team-card__title h3 em {
  color: #fff !important;
}

.bpe-team-card__tag {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid var(--teams-line);
  color: #7e8992;
  font-family: "Inter", Arial, sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.bpe-roster {
  display: grid;
  margin: 26px 0 0;
  padding: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--teams-line);
  border-bottom: 1px solid var(--teams-line);
  list-style: none;
}

.bpe-roster li {
  display: flex;
  min-width: 0;
  min-height: 64px;
  padding: 11px 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.bpe-roster li + li {
  border-left: 1px solid var(--teams-line);
}

.bpe-roster span {
  color: var(--teams-blue);
  font-family: "Inter", Arial, sans-serif;
  font-size: 6px;
  font-weight: 700;
}

.bpe-roster strong {
  max-width: 100%;
  margin-top: 5px;
  overflow: hidden;
  color: #cbd2d7;
  font-size: clamp(9px, 0.9vw, 12px);
  letter-spacing: 0.015em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bpe-team-card__footer {
  display: grid;
  margin-top: 24px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 22px;
}

.bpe-team-stats {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, auto);
  gap: clamp(17px, 2vw, 32px);
}

.bpe-team-stats div {
  display: flex;
  flex-direction: column;
}

.bpe-team-stats dt {
  color: #5f6b74;
  font-family: "Inter", Arial, sans-serif;
  font-size: 6px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bpe-team-stats dd {
  margin: 3px 0 0;
  color: #dfe4e7;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.bpe-team-card__link {
  display: inline-flex;
  min-height: 46px;
  padding: 0 16px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(0, 151, 223, 0.42);
  color: #fff;
  background: rgba(0, 151, 223, 0.07);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 190ms ease, background-color 190ms ease;
}

.bpe-team-card__link:hover,
.bpe-team-card__link:focus-visible,
.bpe-team-card__link:hover span {
  color: #fff !important;
  background: var(--teams-blue);
}

.bpe-team-card__link svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  transition: transform 180ms ease;
}

.bpe-team-card__link:hover svg {
  transform: translateX(4px);
}

[data-team-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(.22, 1, .36, 1);
}

.bpe-teams.is-visible [data-team-reveal] {
  opacity: 1;
  transform: translateY(0);
}

.bpe-teams.is-visible .bpe-team-card--comp {
  transition-delay: 90ms;
}

.bpe-teams.is-visible .bpe-team-card--academy {
  transition-delay: 170ms;
}

.bpe-teams a:focus-visible {
  outline: 2px solid var(--teams-blue-bright);
  outline-offset: 4px;
}

/* Laptop */
@media (max-width: 1260px) {
  .bpe-teams__shell {
    width: min(calc(100% - 40px), var(--teams-shell));
  }

  .bpe-team-card__body {
    padding: 23px;
  }

  .bpe-team-card__footer {
    grid-template-columns: 1fr;
  }

  .bpe-team-card__link {
    justify-content: space-between;
  }
}

/* Tablet */
@media (max-width: 900px) {
  .bpe-teams-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .bpe-teams-heading p {
    max-width: 620px;
  }

  .bpe-teams__grid {
    grid-template-columns: 1fr;
  }

  .bpe-team-card__media {
    height: clamp(310px, 52vw, 470px);
  }

  .bpe-roster strong {
    font-size: 12px;
  }

  .bpe-team-card__footer {
    grid-template-columns: 1fr auto;
  }
}

@media (max-width: 620px) {
  .bpe-teams {
    padding-block: 76px;
  }

  .bpe-teams__shell {
    width: min(calc(100% - 28px), var(--teams-shell));
  }

  .bpe-team-card__media {
    height: 280px;
  }

  .bpe-team-card__body {
    padding: 20px 16px;
  }

  .bpe-roster {
    grid-template-columns: 1fr;
  }

  .bpe-roster li {
    min-height: 42px;
    padding: 7px 10px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 12px;
    text-align: left;
  }

  .bpe-roster li + li {
    border-top: 1px solid var(--teams-line);
    border-left: 0;
  }

  .bpe-roster strong {
    margin-top: 0;
    font-size: 12px;
  }

  .bpe-team-card__footer {
    grid-template-columns: 1fr;
  }

  .bpe-team-card__link {
    justify-content: center;
  }
}

@media (max-width: 390px) {
  .bpe-team-card__media {
    height: 230px;
  }

  .bpe-team-card__number {
    font-size: 42px;
  }

  .bpe-team-stats {
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bpe-teams *,
  .bpe-teams *::before,
  .bpe-teams *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
