/* ==========================================================================
   Rows inside cards: white with hairline dividers instead of grey boxes.
   The grey (#f6f6f8) was almost the page colour, so rows read as holes in the
   card. Loaded last so it wins over lists.css and forum.css.
   ========================================================================== */

.bc-list,
.bc-list-more,
.bc-topics,
.bc-latestforum { gap: 0 !important; }

.bc-row,
.bc-topic {
  background: transparent !important;
  border: 0 !important;
  border-radius: 12px !important;
  box-shadow: none !important;
  transform: none !important;
}
/* Divider between rows, inset so it lines up with the content, not the hover pill */
.bc-row + .bc-row,
.bc-topic + .bc-topic,
.bc-list-more > .bc-row:first-child {
  box-shadow: 0 -1px 0 0 var(--bc-line) !important;
}
.bc-row:hover,
.bc-topic:hover,
.bc-row:focus-within,
.bc-topic:focus-within {
  background: rgba(91, 75, 209, 0.045) !important;
  box-shadow: none !important;
}
/* The row after a hovered one keeps its divider hidden so the pill looks clean */
.bc-row:hover + .bc-row,
.bc-topic:hover + .bc-topic { box-shadow: none !important; }

/* Pinned topics keep a warm hint, on white */
.bc-topic.is-sticky { background: linear-gradient(90deg, rgba(245, 158, 11, 0.07), rgba(245, 158, 11, 0) 60%) !important; }
.bc-topic.is-sticky:hover { background: linear-gradient(90deg, rgba(245, 158, 11, 0.1), rgba(91, 75, 209, 0.04) 60%) !important; }

/* ==========================================================================
   Feed-card rows: drawProfileTag, drawResultTag, drawEventTag (via bcTagRow)
   and wall messages reuse the .bc-row language above. Only the extras live here.
   ========================================================================== */

.bc-row--tag { margin: 0; }
.bc-row--featured { padding-top: 12px; padding-bottom: 12px; }
.bc-row--featured .bc-row-name { font-size: 16px; }
/* The featured person above a list: keep one divider between them */
.bc-row--featured + .bc-list > .bc-row:first-child { box-shadow: 0 -1px 0 0 var(--bc-line) !important; }
.bc-row--featured + .bc-list > .bc-row:first-child:hover,
.bc-row--featured:hover + .bc-list > .bc-row:first-child { box-shadow: none !important; }

/* Muted second line: academy · city, country / event · vs opponent */
.bc-row-meta {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.bc-row-meta a,
.bc-row-text a {
  position: relative;
  z-index: 2;           /* above the stretched name link */
  color: inherit !important;
  text-decoration: none !important;
}
.bc-row-meta a:hover,
.bc-row-text a:hover { color: var(--bc-accent, #5b4bd1) !important; text-decoration: underline !important; }
.bc-row-dot { margin: 0 6px; color: var(--bc-faint, #9a9aa5); }

/* Right side: medal / result pill / count on top, date under it */
.bc-row-metric--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.bc-row-metric--stack .bc-row-unit { display: block; }
.bc-row-date { color: var(--bc-faint, #9a9aa5) !important; font-size: 11.5px !important; font-variant-numeric: tabular-nums; }

.bc-row-medal { display: inline-flex; line-height: 0; }
.bc-row-medal img { width: 22px; height: 22px; object-fit: contain; display: block; filter: drop-shadow(0 1px 2px rgba(16, 16, 30, 0.18)); }

/* Each tag row is its own container, so narrow cards drop the belt name (lists.css rule) */
.bc-row--tag { container-type: inline-size; }

/* Match results, same pill as the forum's verified/pending status */
.bc-status--win  { background: rgba(22, 163, 74, 0.1);  color: #15803d; }
.bc-status--loss { background: rgba(234, 88, 12, 0.11); color: #c2410c; }
.bc-status--draw { background: rgba(15, 15, 25, 0.06);  color: var(--bc-muted, #6b6b76); }

/* Event image instead of a face */
.bc-row-eventimg {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  line-height: 1;
  background: var(--bc-accent-soft, rgba(91, 75, 209, 0.1));
  color: var(--bc-accent, #5b4bd1) !important;
  font-size: 17px;
  box-shadow: inset 0 0 0 1px rgba(15, 15, 25, 0.06);
}
.bc-row-eventimg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bc-row-count strong { color: var(--bc-ink-2, #3a3a44); font-weight: 700; }

/* Wall messages: writer and wall owner, overlapped */
.bc-row-avatars > div + div { margin-left: -12px; }
.bc-row-avatars img,
.bc-row-avatars .bc-av { box-shadow: 0 0 0 2px var(--bc-surface, #fff) !important; }
.bc-row-to { margin: 0 2px; font-size: 11px; color: var(--bc-faint, #9a9aa5); }
.bc-row-text {
  color: var(--bc-ink-2, #3a3a44);
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.bc-row-text img { max-height: 16px; width: auto; vertical-align: -3px; }
.bc-row--wall { align-items: flex-start; }
.bc-row--wall .bc-row-avatar { padding-top: 2px; }
.bc-row--wall .bc-row-text { -webkit-line-clamp: 3; }

/* Recent votes (renderRecentVotesTable): same white rows, dividers and hover as .bc-row */
.bc-feedtable,
.bc-feedtable > tbody,
.bc-feedtable > tbody > tr,
.bc-feedtable > tbody > tr > td { display: block; width: 100%; }
.bc-feedtable > tbody > tr > td {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 12px !important;
  padding: 12px 8px !important;
  transition: background-color 0.25s var(--bc-ease, ease);
}
.bc-feedtable > tbody > tr + tr > td { box-shadow: 0 -1px 0 0 var(--bc-line) !important; }
.bc-feedtable > tbody > tr:hover > td { background: rgba(91, 75, 209, 0.045) !important; box-shadow: none !important; }
.bc-feedtable > tbody > tr:hover + tr > td { box-shadow: none !important; }

/* Avatar grids (fnDisplayUsers inside .bc-tiles): tint + lift on hover, no layout change */
.bc-tiles .row > [class*="col-"] {
  border-radius: 14px;
  transition: background-color 0.25s var(--bc-ease, ease), box-shadow 0.25s var(--bc-ease, ease);
}
.bc-tiles .row > [class*="col-"]:hover {
  background: rgba(91, 75, 209, 0.045);
  box-shadow: 0 0 0 5px rgba(91, 75, 209, 0.045);
}
.bc-tiles .row > [class*="col-"] img.rounded-circle,
.bc-tiles .row > [class*="col-"] .bc-av {
  transition: transform 0.25s var(--bc-ease, ease), box-shadow 0.25s var(--bc-ease, ease);
}
.bc-tiles .row > [class*="col-"]:hover img.rounded-circle,
.bc-tiles .row > [class*="col-"]:hover .bc-av {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(15, 15, 25, 0.14) !important;
}

@media (prefers-reduced-motion: reduce) {
  .bc-tiles .row > [class*="col-"]:hover img.rounded-circle,
  .bc-tiles .row > [class*="col-"]:hover .bc-av { transform: none; }
}
