/*
 * "Fans of {team} also follow" + city bundle CTA on SSR team pages.
 * Neo-brutalist, mobile-first (375px): full-width rows, 2px ink borders,
 * hard offset shadows, brand green #00C853 (repo rule — no other green).
 * Tokens come from conversion-redesign.css (--cr-*); fallbacks keep this
 * file safe on its own.
 */

.tp-fans { margin: 1.75rem 0 0.75rem; }
.tp-fans__title {
  font-family: var(--cr-head, 'Space Grotesk', 'Inter', sans-serif);
  font-size: 1.15rem; font-weight: 800; line-height: 1.2;
  margin: 0 0 0.75rem;
}
.tp-fans__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }

.tp-fan {
  display: flex; align-items: center; gap: 0.6rem;
  background: #fff; border: 2px solid var(--cr-ink, #0b0b0b); border-radius: 10px;
  box-shadow: 3px 3px 0 var(--cr-ink, #0b0b0b);
  padding: 0.55rem 0.6rem 0.55rem 0.7rem;
}
.tp-fan__main {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 0.7rem;
  color: inherit; text-decoration: none;
}
.tp-fan__crest { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.tp-fan__text { display: flex; flex-direction: column; align-items: flex-start; gap: 0.25rem; min-width: 0; }
.tp-fan__name {
  font-family: var(--cr-head, 'Space Grotesk', 'Inter', sans-serif);
  font-size: 0.95rem; font-weight: 700; line-height: 1.2;
  overflow-wrap: anywhere;
}
.tp-fan__main:hover .tp-fan__name, .tp-fan__main:focus-visible .tp-fan__name { text-decoration: underline; }

.tp-fan__chip {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--cr-ink, #0b0b0b); border-radius: 6px;
  padding: 0.1rem 0.45rem;
  font-family: var(--cr-mono, 'Space Mono', ui-monospace, Menlo, monospace);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--cr-ink, #0b0b0b); background: #fff; white-space: nowrap;
}
.tp-fan__chip--city { background: var(--cr-green-tint, #e9fbee); }
.tp-fan__chip--rival { background: var(--cr-cream, #fff9e3); }
.tp-fan__chip--league { border-style: dashed; }

.tp-fan__add {
  flex: 0 0 auto; min-width: 64px; min-height: 44px;
  background: #00C853; color: var(--cr-ink, #0b0b0b);
  border: 2px solid var(--cr-ink, #0b0b0b); border-radius: 8px;
  box-shadow: 2px 2px 0 var(--cr-ink, #0b0b0b);
  font-family: var(--cr-head, 'Space Grotesk', 'Inter', sans-serif);
  font-size: 0.85rem; font-weight: 800; cursor: pointer;
  transition: transform .1s, box-shadow .1s;
}
.tp-fan__add::before { content: '+ '; }
.tp-fan__add:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--cr-ink, #0b0b0b); }
.tp-fan__add:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--cr-ink, #0b0b0b); }
.tp-fan__add:focus-visible, .tp-fan__main:focus-visible, .tp-city-bundle:focus-visible {
  outline: 3px solid var(--cr-ink, #0b0b0b); outline-offset: 2px;
}

/* Guest-only city bundle (hidden for paid users by the page script). */
.tp-city-bundle {
  display: flex; flex-direction: column; gap: 0.3rem;
  margin: 1rem 0 0.5rem; padding: 0.85rem 1rem;
  background: var(--cr-cream, #fff9e3);
  border: 2px solid var(--cr-ink, #0b0b0b); border-left-width: 10px; border-left-color: #00C853;
  border-radius: 10px; box-shadow: 3px 3px 0 var(--cr-ink, #0b0b0b);
  color: var(--cr-ink, #0b0b0b); text-decoration: none;
  transition: transform .1s, box-shadow .1s;
}
.tp-city-bundle:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--cr-ink, #0b0b0b); }
.tp-city-bundle__main {
  font-family: var(--cr-head, 'Space Grotesk', 'Inter', sans-serif);
  font-size: 0.98rem; font-weight: 800; line-height: 1.25;
}
.tp-city-bundle__sub {
  font-family: var(--cr-mono, 'Space Mono', ui-monospace, Menlo, monospace);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}

@media (min-width: 640px) {
  .tp-fans__list { grid-template-columns: 1fr 1fr; }
  .tp-city-bundle { flex-direction: row; align-items: center; justify-content: space-between; gap: 1rem; }
}
