/* Player trophies tab — highlights grid (reused from overview),
   filter pills (display-only for now), team and individual cards
   sharing the `.player-trophies-team-card` chrome. */

@layer components {
  .player-trophies-tab__highlights {
    margin-bottom: 12px;
  }

  /* The 3-mode toggle reuses the `.pst-per90-toggle` chrome from
     player-stats.css. We only own the count chip + panel visibility
     and the inline empty state when a mode has zero entries. */
  .pst-per90-btn__count {
    font-variant-numeric: tabular-nums;
    opacity: 0.7;
    margin-left: 2px;
  }

  .player-trophies-tab[data-mode="club"] [data-mode-panel="national"],
  .player-trophies-tab[data-mode="club"] [data-mode-panel="individual"],
  .player-trophies-tab[data-mode="national"] [data-mode-panel="club"],
  .player-trophies-tab[data-mode="national"] [data-mode-panel="individual"],
  .player-trophies-tab[data-mode="individual"] [data-mode-panel="club"],
  .player-trophies-tab[data-mode="individual"] [data-mode-panel="national"] {
    display: none;
  }

  .player-trophies-tab__empty {
    padding: 32px 16px;
  }

  /* Team / individual cards */
  .player-trophies-team-card {
    margin-bottom: 12px;
  }

  .player-trophies-team-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    text-decoration: none;
  }

  .player-trophies-team-card__header--linked {
    cursor: pointer;
    transition: background 200ms ease;
    -webkit-tap-highlight-color: transparent;
  }

  .player-trophies-team-card__header--linked:hover,
  .player-trophies-team-card__header--linked:focus-visible {
    background: rgb(255 255 255 / 4%);
  }

  .player-trophies-team-card__chevron {
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
    flex-shrink: 0;
  }

  .player-trophies-team-card__logo-wrap {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 4%);
    border-radius: 8px;
    flex-shrink: 0;
  }

  .player-trophies-team-card__logo-wrap--individual {
    background: rgb(251 191 36 / 14%);
    color: var(--color-yellow-card);
  }

  .player-trophies-team-card__logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
  }

  .player-trophies-team-card__icon {
    width: 22px;
    height: 22px;
    color: var(--color-text-muted);
  }

  .player-trophies-team-card__logo-wrap--individual .player-trophies-team-card__icon {
    color: var(--color-yellow-card);
  }

  .player-trophies-team-card__name {
    flex: 1;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .player-trophies-team-card__count {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    font-variant-numeric: tabular-nums;
    padding: 2px 10px;
    background: rgb(255 255 255 / 6%);
    border-radius: 999px;
  }

  .player-trophies-team-card__list {
    list-style: none;
    margin: 0;
    padding: 4px 16px 12px;
  }

  /* Trophy row (shared between team comps + individual awards) */
  .player-trophy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgb(255 255 255 / 4%);
  }

  .player-trophy-row:last-child {
    border-bottom: none;
  }

  .player-trophy-row__left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
  }

  .player-trophy-row__logo,
  .player-trophy-row__logo-placeholder,
  .player-award-cat-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .player-trophy-row__logo-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 6%);
    color: var(--color-text-muted);
    border-radius: 6px;
    padding: 4px;
  }

  .player-trophy-row__logo-placeholder svg {
    width: 100%;
    height: 100%;
  }

  .player-award-cat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgb(255 255 255 / 4%);
    color: var(--color-text-muted);
    padding: 4px;
  }

  .player-award-cat-icon svg {
    width: 18px;
    height: 18px;
  }

  .player-award-cat-icon--world {
    color: #38bdf8;
  }

  .player-award-cat-icon--europe {
    color: var(--color-yellow-card);
  }

  .player-award-cat-icon--league {
    color: #a78bfa;
  }

  .player-award-cat-icon--club {
    color: var(--color-accent);
  }

  .player-award-cat-icon--national {
    color: var(--color-rating-poor);
  }

  .player-award-cat-icon--honor {
    color: var(--color-zone-cl-playoff);
  }

  .player-trophy-row__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .player-trophy-row__name {
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  a.player-trophy-row__left:hover .player-trophy-row__name {
    text-decoration: underline;
  }

  .player-trophy-row__seasons {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--color-text-muted);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .player-trophy-row__count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 700;
    color: var(--color-yellow-card);
    font-variant-numeric: tabular-nums;
    padding: 4px 8px;
    background: rgb(251 191 36 / 12%);
    border-radius: 6px;
    flex-shrink: 0;
  }

  .player-trophy-row__count-icon {
    font-size: 11px;
    line-height: 1;
  }
}
