/* ===== Draft Trades page styles =====
   Header, team filter, year cards and section headings come from draft-picks.css. */

.trade-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: .75rem;
}

/* ----- One trade: team A | trade image | team B ----- */
.trade-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: .75rem;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}

.trade-swap {
  align-self: center;
  display: grid;
  place-items: center;
}
.trade-img {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 10px;
}
/* Shown if images/trade.jpg can't be found */
.trade-arrow {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--red);
}

/* ----- Each team's side ----- */
.trade-side {
  min-width: 0;
  padding: .6rem;
  border-radius: 8px;
}
/* When filtering by team, that team's side gets a subtle highlight */
.trade-side.is-focus {
  background: var(--red-soft);
  box-shadow: inset 0 0 0 1px rgba(225, 6, 0, .35);
}

.side-head {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .5rem;
}
.team-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.logo-fallback {
  width: 40px;
  height: 40px;
  font-size: .75rem;
  flex-shrink: 0;
}
.side-team {
  font-weight: 700;
  line-height: 1.2;
}

.dir-badge {
  display: inline-block;
  margin-top: .2rem;
  padding: .05rem .45rem;
  border-radius: 4px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.dir-badge.up {
  background: var(--black);
  color: var(--white);
}
.dir-badge.down {
  background: var(--surface-2);
  color: var(--muted);
}

.side-label {
  margin-bottom: .3rem;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--red);
}

.asset-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.asset {
  padding: .3rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
  overflow-wrap: anywhere;
}
.asset:last-child { border-bottom: none; }
.pick-label { font-weight: 600; }

.asset-tag {
  display: inline-block;
  margin-left: .4rem;
  padding: 0 .35rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  font-size: .68rem;
  font-weight: 700;
  color: var(--muted);
  vertical-align: middle;
}

/* ----- Phones: the two teams stay side by side, with a small arrow between ----- */
@media (max-width: 600px) {
  .trade-card { gap: .35rem; padding: .6rem; }
  .trade-img { width: 26px; height: 26px; }
  .trade-side { padding: .35rem; }
  .side-head { gap: .4rem; }
  .team-logo, .logo-fallback { width: 28px; height: 28px; font-size: .6rem; }
  .side-team { font-size: .85rem; }
  .asset { font-size: .82rem; }
}
.logo-fallback { background: var(--team, var(--black)); color: var(--team-ink, var(--white)); }
