/* Player page Changelog tab (resources/views/pages/player/playerChangelog.php). The hero and page frame come from
   player-page.css (.pp, .pp-hero, .pp-glass, .pp-card); this file adds the updates timeline and the rating history.
   Plain CSS served as-is (not part of the gulp site.min.css bundle). */

.pc {
  --pc-up: var(--pp-up);
  --pc-down: var(--pp-down);
}

/* game block + timeline */
.pc-game {
  display: grid;
  gap: 12px;
}
.pc-game[hidden] {
  display: none;
}
.pc-game-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 4px;
}
.pc-game-head h2,
.pc-card-head h2 {
  margin: 0;
  font-family: var(--pp-display);
  font-size: var(--pp-fs-2xl);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.pc-game-head small {
  font-size: var(--pp-fs-sm);
  color: var(--pp-fg-3);
}
.pc-tl {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 26px;
}
.pc-tl::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 8px;
  width: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1px;
}
.pc-upd {
  position: relative;
  padding: 14px 16px;
}
.pc-upd::before {
  content: "";
  position: absolute;
  top: 18px;
  left: -24px;
  width: 12px;
  height: 12px;
  background: #1b1450;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}
.pc-upd.launch::before {
  background: var(--pp-accent);
  border-color: var(--pp-accent);
  box-shadow: 0 0 0 4px rgba(92, 248, 219, 0.18);
}
.pc-upd-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.pc-date {
  font-size: var(--pp-fs-lg);
  font-weight: 700;
}
.pc-tag {
  padding: 2px 8px;
  font-size: var(--pp-fs-xs);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pp-ink);
  background: var(--pp-accent);
  border-radius: 8px;
}
.pc-tag.soft {
  color: var(--pp-fg-2);
  background: rgba(255, 255, 255, 0.08);
}
.pc-counts {
  display: inline-flex;
  gap: 10px;
  margin-left: auto;
  font-size: var(--pp-fs-sm);
  font-weight: 700;
}
.pc-counts .u { color: var(--pc-up); }
.pc-counts .d { color: var(--pc-down); }

/* key tiles: OVR, potential, transfer, value, wage */
.pc-keys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.pc-key {
  display: grid;
  gap: 2px;
  min-width: 120px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
}
.pc-key .pp-label {
  font-size: var(--pp-fs-xs);
}
.pc-key .v {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--pp-fs-lg);
  font-weight: 700;
}
.pc-key .v img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.pc-key s {
  font-weight: 600;
  text-decoration: none;
  color: var(--pp-fg-3);
}
.pc-pot {
  color: var(--pp-accent);
}
.pc-arrow {
  font-weight: 600;
  color: var(--pp-fg-3);
}
.pc-delta {
  padding: 1px 6px;
  font-size: var(--pp-fs-sm);
  font-weight: 800;
  border-radius: 6px;
}
.pc-delta.up {
  color: var(--pp-ink);
  background: var(--pc-up);
}
.pc-delta.down {
  color: #fff;
  background: var(--pc-down);
}

/* attributes */
.pc-attrs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 18px;
  margin-top: 12px;
}
.pc-attr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto 38px;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  font-size: var(--pp-fs-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.pc-attr[hidden] {
  display: none;
}
.pc-attr span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--pp-fg-2);
}
.pc-attr .old {
  font-weight: 600;
  color: var(--pp-fg-3);
}
.pc-attr b {
  font-weight: 700;
}
.pc-attr .pc-delta {
  justify-self: end;
}
.pc-more {
  margin-top: 8px;
  padding: 0;
  font-size: var(--pp-fs-sm);
  font-weight: 600;
  color: var(--pp-accent);
  background: none;
  border: 0;
  cursor: pointer;
}

/* other rows, traits, specialities */
.pc-info {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 10px;
  font-size: var(--pp-fs-md);
  color: var(--pp-fg-2);
}
.pc-info b {
  font-weight: 600;
  color: #fff;
}
.pc-info s {
  text-decoration: none;
  color: var(--pp-fg-3);
}
.pc-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.pc-pills .pp-label {
  margin-right: 2px;
}
.pc-pill {
  padding: 3px 10px;
  font-size: var(--pp-fs-sm);
  border-radius: 14px;
}
.pc-pill.ico {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 4px;
}
.pc-pill.ico img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.pc-pill.rem.ico img {
  opacity: 0.55;
}
.pc-pill.add {
  color: #d9ffe0;
  background: rgba(58, 200, 66, 0.15);
  border: 1px solid rgba(58, 200, 66, 0.45);
}
.pc-pill.rem {
  color: #ffd9e1;
  text-decoration: line-through;
  text-decoration-color: rgba(255, 217, 225, 0.5);
  background: rgba(230, 70, 100, 0.12);
  border: 1px solid rgba(230, 70, 100, 0.4);
}

/* rating history */
.pc-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 14px;
  margin-bottom: 8px;
}
.pc-legend {
  display: flex;
  gap: 14px;
  font-size: var(--pp-fs-sm);
  color: var(--pp-fg-2);
}
.pc-legend i {
  display: inline-block;
  width: 14px;
  height: 3px;
  margin-right: 6px;
  vertical-align: middle;
  border-radius: 2px;
}
.pc-legend i.ovr { background: #fff; }
.pc-legend i.pot { background: var(--pp-accent); }
.pc-chart {
  display: block;
  width: 100%;
  height: auto;
}
.pc-chart text {
  font: 600 10px Roboto, "Segoe UI", sans-serif;
  fill: rgba(255, 255, 255, 0.5);
}
.pc-chart .pc-yr {
  letter-spacing: 0.06em;
  fill: rgba(255, 255, 255, 0.55);
}
.pc-chart .pc-pt {
  font-size: var(--pp-fs-sm);
  font-weight: 800;
  fill: #fff;
}
.pc-chart .pc-pt-pot {
  fill: #5cf8db;
}

/* other games filter */
.pc-filter {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.pc-filter::-webkit-scrollbar {
  display: none;
}
.pc-filter .pp-label {
  flex: 0 0 auto;
  margin-right: 4px;
}
.pc-chip {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  font-size: var(--pp-fs-sm);
  font-weight: 600;
  color: var(--pp-fg-2);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  cursor: pointer;
}
.pc-chip small {
  margin-left: 5px;
  color: var(--pp-fg-3);
}
.pc-chip:hover {
  color: #fff;
  border-color: rgba(92, 248, 219, 0.45);
}
.pc-chip[aria-pressed="true"] {
  color: #fff;
  background: rgba(92, 248, 219, 0.14);
  border-color: var(--pp-accent);
}

@media (max-width: 991.98px) {
  .pc-attrs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .pc-attrs {
    grid-template-columns: minmax(0, 1fr);
  }
  .pc-tl {
    padding-left: 20px;
  }
  .pc-tl::before {
    left: 5px;
  }
  .pc-upd::before {
    left: -20px;
  }
  .pc-counts {
    margin-left: 0;
  }
}
