@import url("styles-home-dashboard-20260623.css?v=20260625-4");

.team-page {
  width: min(1180px, calc(100% - 34px));
  min-height: 72vh;
  margin: 0 auto;
  padding: 28px 0 58px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-hero,
.team-section,
.team-error {
  margin-bottom: 12px;
  padding: 28px;
  background: linear-gradient(135deg, rgba(3, 17, 31, 0.96), rgba(4, 35, 61, 0.9));
  border: 1px solid var(--line);
  border-radius: 6px;
}

.team-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: center;
  gap: 28px;
}

.team-hero h1,
.section-title h2 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 900;
  line-height: 0.92;
  text-transform: uppercase;
}

.team-hero h1,
.section-title h2,
.team-info-card strong,
.coach-profile h3,
.staff-card strong,
.value-card strong,
.team-match strong {
  font-family: var(--font-title);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.back-link,
.demo-badge,
.team-actions,
.team-meta-grid,
.team-info-card span,
.branch-tags,
.team-match,
.gallery-caption {
  font-family: var(--font-subtitle);
}

.team-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.demo-badge {
  display: inline-flex;
  margin: 12px 0 4px;
  padding: 7px 10px;
  color: #051220;
  background: var(--gold);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-hero > img,
.team-logo-stack > img {
  width: 220px;
  height: 220px;
  object-fit: contain;
  justify-self: center;
}

.team-logo-stack {
  display: grid;
  justify-items: center;
  gap: 14px;
}

.team-logo-stack > div {
  display: grid;
  grid-template-columns: repeat(2, 88px);
  gap: 10px;
}

.team-logo-stack > div img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.branch-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.branch-tags strong {
  flex-basis: 100%;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.branch-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  color: #06111d;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.team-meta-grid article {
  padding: 14px;
  background: rgba(2, 12, 24, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
}

.team-meta-grid span,
.team-match span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-meta-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.team-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-dashboard {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.team-dashboard article {
  padding: 16px 10px;
  text-align: center;
  background: linear-gradient(135deg, rgba(3, 17, 31, 0.96), rgba(4, 35, 61, 0.9));
  border: 1px solid var(--line);
  border-radius: 6px;
}

.team-dashboard span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-dashboard strong {
  display: block;
  margin-top: 4px;
  color: var(--gold);
  font-size: 1.8rem;
  line-height: 1;
}

.team-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.coach-profile {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 18px;
}

.coach-avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  color: #06111d;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  border-radius: 50%;
  font-size: 1.7rem;
  font-weight: 900;
}

.coach-profile h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  text-transform: uppercase;
}

.coach-profile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.rich-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.values-grid,
.achievements-grid,
.staff-grid {
  display: grid;
  gap: 10px;
}

.values-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.achievements-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.values-grid article,
.achievements-grid article,
.staff-grid article {
  min-width: 0;
  padding: 16px;
  background: rgba(2, 12, 24, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
}

.values-grid strong,
.achievements-grid strong,
.staff-grid strong {
  display: block;
  color: var(--white);
  font-size: 0.98rem;
  text-transform: uppercase;
}

.values-grid p,
.staff-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.42;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.team-match-list {
  display: grid;
  gap: 8px;
}

.team-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px 118px;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: rgba(5, 31, 54, 0.9);
  border-left: 4px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

.team-match.win {
  border-left-color: #35d07f;
}

.team-match.draw {
  border-left-color: var(--gold);
}

.team-match.loss {
  border-left-color: #e05252;
}

.team-match strong {
  display: block;
  margin-top: 4px;
  font-size: 1.02rem;
  text-transform: uppercase;
}

.team-match b {
  color: var(--gold-2);
  font-size: 1.18rem;
  text-align: center;
}

.team-match a,
.team-match small {
  display: inline-flex;
  justify-content: center;
  padding: 8px 10px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-match small {
  color: var(--muted);
}

.photo-slider {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #020b16;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.photo-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.45s ease, transform 1.5s ease;
}

.photo-slider img.local-photo {
  object-fit: contain;
  background: #020b16;
}

.photo-slider img.active {
  opacity: 1;
  transform: scale(1);
}

.empty {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .team-page {
    width: min(100% - 24px, 1180px);
  }

  .team-hero,
  .team-meta-grid,
  .team-match,
  .team-profile-grid,
  .values-grid,
  .achievements-grid,
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .team-dashboard {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .team-hero {
    text-align: center;
  }

  .team-hero p,
  .rich-text,
  .coach-profile p,
  .values-grid p,
  .staff-grid p,
  .empty {
    text-align: justify;
  }

  .team-match b {
    text-align: left;
  }

  .photo-slider {
    min-height: 300px;
  }
}

@media (max-width: 460px) {
  .team-dashboard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coach-profile {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
}
