/* ==========================================================================
   On the mats: "Rolled with" (functions_rolls.php, scripts/bc-rolls.js) and
   "I've trained here" (functions_visits.php). Builds on styles/social.css
   (.bc-frc, .bc-fr-*, .bc-pf-*) and the hero pills in styles/vote.css.
   ========================================================================== */

:root { --bc-roll: #0891b2; }

/* ---------- Roll control ---------- */
.bc-rl-btn i { color: var(--bc-roll); }
.bc-hero-msg.bc-frc-btn--rolled { background: rgba(8, 145, 178, .08); box-shadow: 0 0 0 1px rgba(8, 145, 178, .32); }
.bc-hero-msg.bc-frc-btn--rolled i, .bc-fr-btn.bc-frc-btn--rolled i { color: var(--bc-roll) !important; }
.bc-rl-btn.bc-frc-btn--primary i { color: #fff !important; }
.bc-rl-btn.bc-frc-btn--requested i { color: var(--bc-amber, #f59e0b) !important; }
.bc-rlc .bc-frc-btn--decline i { color: var(--bc-muted) !important; }
/* Several pills in the hero: let them wrap instead of squeezing */
.bc-hero-rankrow .bc-hero-actions { flex: 1 1 240px; min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) {
  .bc-hero-rankrow { flex-wrap: wrap; }
  .bc-hero-rankrow .bc-hero-actions { flex: 1 1 100%; justify-content: flex-start; margin-left: 0; }
}

/* Notification badge colour for roll notifications (types 60, 61) */
.bcnt-k-roll { --bcnt-tone: var(--bc-roll); }

/* ---------- Profile cards ---------- */
.bc-mt-fun { display: flex; align-items: center; gap: 7px; }
.bc-mt-fun i { color: var(--bc-roll); font-size: 12px; }
.bc-mt-fun b { color: var(--bc-ink); font-weight: 700; }
.bc-mt-sub { font-size: 11.5px; color: var(--bc-muted); line-height: 1.2; margin-top: -3px; }

.bc-mt-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 8px; }
.bc-mt-chip {
  display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 8px 12px 8px 8px; border-radius: 14px;
  background: var(--bc-surface-2); box-shadow: inset 0 0 0 1px var(--bc-line);
  text-decoration: none !important; color: var(--bc-ink) !important;
  transition: background-color .2s var(--bc-ease), transform .2s var(--bc-ease);
}
.bc-mt-chip:hover { background: var(--bc-surface-3); transform: translateY(-1px); }
.bc-mt-logo { flex: none; width: 32px; height: 32px; border-radius: 9px; overflow: hidden; line-height: 0; background: var(--bc-surface); }
.bc-mt-logo > div { display: block !important; width: 100%; height: 100%; }
.bc-mt-logo img, .bc-mt-logo .bc-av { width: 32px !important; height: 32px !important; border-radius: 9px !important; border: 0 !important; object-fit: cover; margin: 0 !important; }
.bc-mt-chiptext { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
/* Academy names are long: two lines before they are cut */
.bc-mt-chiptext b { font-size: 13px; font-weight: 650; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.bc-mt-chiptext small { font-size: 11.5px; color: var(--bc-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Academy logos in rows are rounded squares, as in the academy hero */
.bc-mt-acalist .bc-row-avatar img, .bc-mt-acalist .bc-row-avatar .bc-av,
.bc-mt-rowlogo img, .bc-mt-rowlogo .bc-av,
.bc-mt-headlogo img, .bc-mt-headlogo .bc-av { border-radius: 11px !important; border: 0 !important; object-fit: cover; }

/* ---------- partners.php / visitors.php ---------- */
.bc-mt-lead { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.bc-mt-lead span { display: inline-flex; align-items: center; gap: 6px; }
.bc-mt-lead i { color: var(--bc-roll); font-size: 12px; }
.bc-mt-where, .bc-mt-when { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.bc-mt-where { color: var(--bc-ink-2, var(--bc-ink)) !important; text-decoration: none !important; font-weight: 600; }
.bc-mt-where:hover { text-decoration: underline !important; }
.bc-mt-where i, .bc-mt-when i { font-size: 11px; color: var(--bc-muted); }
.bc-fr-meta .bc-mt-where + .bc-mt-when { margin-left: 10px; }
/* Where / when of a roll or visit lead the line and stay readable on a phone: the academy name gives way
   (ellipsis), the date keeps its place; the member's own academy and city after them are cut first */
.bc-mt-page .bc-fr-meta { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bc-mt-page .bc-fr-meta .bc-mt-where + .bc-mt-when { margin-left: 0; }
.bc-mt-page .bc-fr-meta > * { flex: none; }
.bc-mt-page .bc-fr-meta > .bc-mt-where { flex: 0 1 auto; min-width: 5em; }
.bc-mt-where span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-mt-tag { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 650; color: var(--bc-roll); background: rgba(8, 145, 178, .09); white-space: nowrap; }
.bc-mt-tag i { font-size: 10px; }

/* ---------- "I've trained here" ---------- */
.bc-academy-visit { margin-top: 14px; }
.bc-vsc { display: inline-flex; }
.bc-vsc.is-busy { opacity: .7; pointer-events: none; }
.bc-vs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 650; line-height: 1;
  color: #fff !important; background: linear-gradient(135deg, #0ea5c6, #0e7490);
  box-shadow: 0 10px 22px -12px rgba(8, 145, 178, .85);
  text-decoration: none !important;
  transition: transform .2s var(--bc-ease), box-shadow .2s var(--bc-ease), filter .2s var(--bc-ease);
}
.bc-vs-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.bc-vs-btn:active { transform: scale(.98); }
.bc-vs-btn:focus-visible { outline: none; box-shadow: var(--bc-ring); }
.bc-vs-btn i { font-size: 14px; }
.bc-vs-btn.is-on { color: var(--bc-ink) !important; background: rgba(22, 163, 74, .08); box-shadow: 0 0 0 1px rgba(22, 163, 74, .35); }
.bc-vs-btn.is-on i { color: var(--bc-green); }
.bc-vs-btn.is-fixed { cursor: default; }
.bc-vs-btn.is-fixed:hover { transform: none; filter: none; }

.bc-mt-cta { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--bc-line); }
.bc-mt-cta--top { margin: 0 0 14px; padding: 0 0 12px; border-top: 0; border-bottom: 1px solid var(--bc-line); }
.bc-mt-visitors .bc-pf-grid { gap: 16px 8px; }

/* A club without an academy page: a plain house badge instead of a logo */
.bc-mt-noclub { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--bc-surface-3); color: var(--bc-muted); font-size: 14px; }
.bc-mt-logo .bc-mt-noclub { width: 32px !important; height: 32px !important; }
.bc-row-avatar .bc-mt-noclub { border-radius: 12px; font-size: 17px; }

/* Club card on search.php?academy=<name> for a club without a page (functions_visits.php) */
.bc-club-card { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 0 0 18px; padding: 16px 18px; border-radius: var(--bc-r-lg, 22px); background: var(--bc-surface); box-shadow: 0 0 0 1px var(--bc-line), var(--bc-shadow-1); }
.bc-club-card > .bc-mt-noclub { width: 52px; height: 52px; border-radius: 14px; font-size: 20px; }
.bc-club-main { flex: 1 1 220px; min-width: 0; }
.bc-club-name { margin: 0; font-size: 19px; font-weight: 750; letter-spacing: -0.02em; color: var(--bc-ink); }
.bc-club-sub { margin: 3px 0 0; font-size: 13px; color: var(--bc-muted); }
.bc-club-note { margin: 6px 0 0; font-size: 12.5px; color: var(--bc-faint); }
.bc-club-act { flex: 0 0 auto; }
.bc-mt-maplink { margin: 4px 0 12px; font-size: 13.5px; }
.bc-mt-maplink a { color: var(--bc-accent); font-weight: 600; text-decoration: none; }
.bc-mt-maplink a:hover { text-decoration: underline; }
