/* Leagues page league card (.lc). Page layout (header, toolbar, grid) comes from teams-page.css.
   Same build and colouring as the club cards (.tc): the head is filled with the country's national team kit colour
   (the strongest club's when the country has no national team in the game).
   Plain CSS served as-is (not part of the gulp site.min.css bundle). */

.lc {
  --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 and team cards; the kit 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;
}
.lc[hidden] {
  display: none;
}
.lc:hover,
.lc:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(92, 248, 219, 0.45);
  color: #fff;
  text-decoration: none;
  outline: none;
}
.lc-head {
  position: relative;
  display: grid;
  place-items: center;
  height: 112px;
  color: var(--head-fg);
  background: linear-gradient(165deg, rgb(var(--kit)) 0%, rgba(var(--kit), 0.78) 70%, rgba(var(--kit), 0.6) 100%);
}
.lc-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* soft light behind the logo 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%);
}
.lc-logo {
  position: relative;
  z-index: 1;
  width: 70px;
  height: 70px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}
.lc-num {
  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);
}
.lc-num-right {
  right: 8px;
  left: auto;
  justify-items: end;
  font-size: 18px;
  opacity: 0.9;
}
.lc-num span {
  font-family: Roboto, "Segoe UI", sans-serif;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.65;
}
/* light kits: dark text, no shadow */
.lc.light {
  --head-fg: #121434;
}
.lc.light .lc-num {
  text-shadow: none;
}
.lc.light .lc-head::before {
  background: radial-gradient(circle at 50% 56%, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 48%);
}
.lc-name {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 31px;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}
.lc-name img {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.lc-name span {
  min-width: 0;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lc-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding: 5px 8px 6px;
  background: rgba(0, 0, 0, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.lc-foot small {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.lc-crests {
  display: flex;
  gap: 4px;
}
.lc-crests img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

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