/* tennis.css — SmashRater styles */

/* ── SPORT SWITCHER ─────────────────────────────────────────────────────── */
.sport-switcher {
  display: flex;
  gap: .4rem;
  margin-right: .5rem;
}
.sport-btn {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text-dim);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  padding: .35rem .8rem;
  text-transform: uppercase;
  transition: all .2s;
  white-space: nowrap;
}
.sport-btn:hover    { border-color: var(--accent); color: var(--text); }
.sport-btn.active   { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── TENNIS HERO ────────────────────────────────────────────────────────── */
.tennis-hero { background: linear-gradient(135deg, #0a0c10 0%, #0d1a0a 60%, #0a1a0d 100%); }
.tennis-hero .hero h1 em { color: #4caf7d; }
.tennis-hero .hero-eyebrow { color: #4caf7d; }

/* ── TENNIS CARD HEADSHOT ────────────────────────────────────────────────── */
.tennis-headshot {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, var(--bg3) 0%, var(--bg2) 100%);
  gap: .5rem;
}
.tennis-flag { font-size: 2.8rem; line-height: 1; }
.tennis-initial {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--text-dim);
  letter-spacing: .05em;
}

/* Stripe colors for tennis tiers */
.tennis-stripe-diamond { background: #FFD700; }
.tennis-stripe-gold    { background: #C0C0C0; }
.tennis-stripe-silver  { background: #CD7F32; }
.tennis-stripe-bronze  { background: #4FC3F7; }
.tennis-stripe-green   { background: #81C784; }
.tennis-stripe-grey    { background: #B0BEC5; }

/* ── TENNIS AVATAR (player detail) ─────────────────────────────────────── */
.tennis-avatar-large {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--bg3);
  border: 3px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}
.ta-flag   { font-size: 4rem; line-height: 1; }
.ta-initial {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 2rem;
  color: var(--text-dim);
  letter-spacing: .05em;
}
.tennis-avatar-large.badge-diamond { border-color: var(--diamond); box-shadow: 0 0 30px rgba(255,215,0,.2); }
.tennis-avatar-large.badge-gold    { border-color: var(--gold);    box-shadow: 0 0 24px rgba(212,175,55,.15); }
.tennis-avatar-large.badge-silver  { border-color: var(--silver); }

/* ── RANKINGS TABLE ─────────────────────────────────────────────────────── */
.rankings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
  margin-bottom: 4rem;
}
.rankings-table th {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: .6rem 1rem;
  border-bottom: 2px solid var(--border);
}
.rankings-table th.num-col { text-align: right; }
.rankings-table td {
  padding: .6rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.rankings-table .num-col { text-align: right; }
.ranking-row { cursor: pointer; transition: background .15s; }
.ranking-row:hover td { background: rgba(255,255,255,.04); }

.rank-col { width: 60px; }
.rank-num {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .9rem;
}
.rank-num.top3  { color: var(--diamond); font-size: 1rem; }
.rank-num.top10 { color: var(--gold); }

.flag-cell   { margin-right: .5rem; font-size: 1.1rem; }
.player-link {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text);
  transition: color .15s;
}
.player-link:hover { color: var(--accent); }
.country-cell { color: var(--text-dim); font-size: .82rem; }

.rating-pill {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: .85rem;
  background: var(--bg3);
  border-radius: 4px;
  padding: .2rem .5rem;
  display: inline-block;
}
