/* matchups-merged.css
 * Date-grouped, compact "Team Matchups" view (matchups-merged.js renderByDate).
 * Day blocks (newest first) -> team-pair sub-blocks -> a dense multi-column grid of
 * map cells, so the section reads like the dashboard instead of one tall row per map.
 * No colored edge stripes (anti-vibe rule); the winner signal is the score text color.
 */

.wv-mu-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- day block ---------------------------------------------------------- */
.wv-day {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wv-day-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 2px 5px;
  border-bottom: 1px solid var(--BORDER_SUBTLE);
}

.wv-day-date {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--FG_COLOR);
}

.wv-day-count {
  font-size: 0.72rem;
  color: var(--FG_MUTED);
}

.wv-day-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---- team-pair sub-block ------------------------------------------------- */
.wv-pair {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wv-pair-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 1px 2px;
  font-size: 0.8rem;
}

.wv-tm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--FG_COLOR);
}

.wv-tm-end {
  flex-direction: row-reverse;
}

.wv-tm-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
}

.wv-pair-rec {
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--ACCENT_CYAN);
}

.wv-pair-count {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--FG_DIM);
}

/* ---- map cards ---------------------------------------------------------- */
.wv-pair-maps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.wv-map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  min-height: 90px;
  padding: 9px 11px;
  border-radius: 9px;
  border: 1px solid var(--BORDER_SUBTLE);
  overflow: hidden;
  text-decoration: none;
  color: var(--FG_COLOR);
  /* map art faded behind a dark gradient so the text always stays legible */
  background-color: rgba(var(--surf-2), 0.6);
  background-image:
    linear-gradient(155deg, rgba(8, 10, 14, 0.6), rgba(8, 10, 14, 0.88)),
    var(--wv-map-img, none);
  background-size: cover;
  background-position: center;
  transition: border-color 120ms ease, transform 120ms ease;
}

.wv-map-card:hover {
  border-color: rgba(var(--accent-cyan-rgb), 0.55);
  transform: translateY(-1px);
}

.wv-map-card-mode {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--FG_MUTED);
}

.wv-map-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.32;
  padding-bottom: 1px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wv-map-card-score {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.wv-map-card-score i {
  font-style: normal;
  margin: 0 1px;
  color: var(--FG_DIM);
}

.wv-map-card-tl {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
  flex: none;
}

.wv-map-card-score .wv-mu-chip-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--FG_DIM);
  flex: none;
}

/* Result-based, NOT team-based: winner green, loser red, tie neutral. */
.wv-map-card-score b.win { color: #3DD68C; }
.wv-map-card-score b.lose { color: #F2555A; }
.wv-map-card-score b.tie { color: var(--FG_MUTED); }

/* Provisional-identity tag: a small inside-text badge, never an edge stripe. */
.wv-mu-prov {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--FG_MUTED);
  background: rgba(166, 186, 218, 0.12);
  border: 1px solid var(--BORDER_SUBTLE);
  vertical-align: middle;
}

@media (max-width: 720px) {
  .wv-pair-maps {
    grid-template-columns: 1fr;
  }
}
