/* Team card (.tc, partials/teamCard.php): teams page grid, team page "More from <league>" carousel.
   Built like the homepage player cards (.hpc), with the club's main kit colour filling the head.
   Plain CSS served as-is (not part of the gulp site.min.css bundle). */

.tc {
  --kit: 92, 248, 219;
  --head-fg: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(var(--kit), 0.22) 0%, rgba(255, 255, 255, 0.03) 100%);
  /* same border as the player cards (.hpc); the club colour stays in the background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.tc[hidden] {
  display: none;
}
.tc:hover,
.tc:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(92, 248, 219, 0.45);
  color: #fff;
  text-decoration: none;
  outline: none;
}
.tc-head {
  position: relative;
  display: grid;
  place-items: center;
  height: 112px;
  color: var(--head-fg);
  /* the club's main kit colour fills the head, fading slightly toward the bottom */
  background: linear-gradient(165deg, rgb(var(--kit)) 0%, rgba(var(--kit), 0.78) 70%, rgba(var(--kit), 0.6) 100%);
}
.tc-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* soft light behind the crest so it lifts off the fill */
  background: radial-gradient(circle at 50% 56%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 48%);
}
.tc-crest {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.45));
}
.tc-ovr {
  position: absolute;
  top: 7px;
  left: 8px;
  z-index: 2;
  display: grid;
  font-family: "DINPro-Cond-Bold", "DINPro-Cond", "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}
.tc-ovr span,
.tc-lines i {
  font-family: Roboto, "Segoe UI", sans-serif;
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.65;
}
.tc-lines {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 1px;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}
.tc-lines span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.tc-league {
  position: absolute;
  right: 8px;
  bottom: 6px;
  z-index: 2;
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
/* light kits (white, yellow, sky blue): dark text, no shadow */
.tc.light {
  --head-fg: #121434;
}
.tc.light .tc-ovr,
.tc.light .tc-lines {
  text-shadow: none;
}
.tc.light .tc-lines span {
  color: rgba(18, 20, 52, 0.85);
}
.tc.light .tc-head::before {
  background: radial-gradient(circle at 50% 56%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 48%);
}
.tc-name {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}
.tc-name img {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.tc-name span {
  min-width: 0;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tc-foot {
  display: flex;
  margin-top: auto;
  background: rgba(0, 0, 0, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.tc-foot div {
  flex: 1;
  display: grid;
  justify-items: center;
  padding: 4px 2px 6px;
  font-variant-numeric: tabular-nums;
}
.tc-foot div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.tc-foot small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.tc-foot b {
  font-size: 12.5px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .tc {
    transition: none;
  }
  .tc:hover {
    transform: none;
  }
}
