/*
 * Player mini card (.hpc): homepage "Popular players" and the player page carousels.
 * Markup: resources/views/partials/playerCard.php
 */
.hpc {
  --club: 92, 248, 219;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  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;
}
.hpc:hover {
  transform: translateY(-3px);
  border-color: rgba(92, 248, 219, 0.45);
  color: #fff;
  text-decoration: none;
}
.hpc-head {
  position: relative;
  height: 92px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}
.hpc-head::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 70%, rgba(var(--club), 1) 0%, rgba(var(--club), 0) 68%);
  opacity: 0.55;
}
/* optional tag floating on the card's top edge (the game year on the player page History cards).
   The card stops clipping so the tag can stick out; head and foot round their own corners instead. */
.hpc.has-tag {
  overflow: visible;
}
.hpc.has-tag .hpc-head {
  overflow: hidden;
  border-radius: 11px 11px 0 0;
}
.hpc.has-tag .hpc-foot {
  border-radius: 0 0 11px 11px;
}
.hpc-tag {
  position: absolute;
  top: -9px;
  left: 50%;
  z-index: 3;
  transform: translateX(-50%);
  padding: 2px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 13px;
  white-space: nowrap;
  color: #0b1d1a;
  background: #5cf8db;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
}
.hpc-photo {
  position: relative;
  z-index: 1;
  display: block;
  height: 86px;
  width: auto;
}
.hpc-left,
.hpc-pos {
  position: absolute;
  top: 7px;
  z-index: 2;
  display: flex;
  flex-direction: column;
}
.hpc-left {
  left: 7px;
  gap: 3px;
}
.hpc-pos {
  right: 7px;
  align-items: flex-end;
  gap: 2px;
}
.hpc-ovr,
.hpc-pot {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}
.hpc-ovr {
  color: #fff;
  font-size: 18px;
}
.hpc-pot {
  color: rgba(92, 248, 219, 0.95);
  font-size: 13px;
}
.hpc-lbl {
  margin-top: 1px;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.5px;
  opacity: 0.65;
}
.hpc-pos-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
  line-height: 13px;
  color: rgba(255, 255, 255, 0.75);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75);
}
/* optional shirt number (team page squad) */
.hpc-num {
  position: absolute;
  left: 7px;
  bottom: 5px;
  z-index: 2;
  font-family: "DINPro-Cond-Bold", "DINPro-Cond", "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.hpc-badge {
  position: absolute;
  right: 7px;
  bottom: 5px;
  z-index: 2;
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}
.hpc-name {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hpc-flag {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  /* nation images are padded squares: show them whole, no ring (it framed the padding) */
  object-fit: contain;
}
.hpc-name-txt {
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hpc-name-txt.is-tight {
  font-size: 11px;
}
.hpc-foot {
  display: flex;
  margin-top: auto;
  background: rgba(0, 0, 0, 0.16);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.hpc-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 2px 5px;
}
.hpc-stat + .hpc-stat {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.hpc-stat-lbl {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.hpc-stat-val {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}
