/* BudunOS merits ranking directory variants
 * Body: bos-merits-v-{id}
 * Shell: .bos-dir--merits.bos-merits--{id}
 */

/* ========== soft (identity) ========== */
body.bos-merits-v-soft .bos-dir--merits {
  /* default soft board */
}

/* ========== compact ========== */
body.bos-merits-v-compact .bos-dir--merits .bos-dir-hero {
  padding: 14px 14px 12px;
  border-radius: 14px;
  margin-bottom: 12px;
}

body.bos-merits-v-compact .bos-dir--merits .bos-dir-hero-title strong {
  font-size: 15px;
}

body.bos-merits-v-compact .bos-dir--merits .bos-dir-hero-copy p {
  font-size: 12px;
}

body.bos-merits-v-compact .bos-dir--merits .bos-merits-filters-grid {
  gap: 8px;
}

body.bos-merits-v-compact .bos-dir--merits .bos-merits-filters .form-control,
body.bos-merits-v-compact .bos-dir--merits .bos-merits-filters .form-select,
body.bos-merits-v-compact .bos-dir--merits .bos-merits-submit {
  min-height: 36px !important;
  border-radius: 10px !important;
  font-size: 12px !important;
}

body.bos-merits-v-compact .bos-dir--merits .bos-merits-board {
  padding: 6px;
  border-radius: 12px;
}

body.bos-merits-v-compact .bos-dir--merits .bos-merits-row {
  padding: 8px 10px;
  gap: 10px;
  border-radius: 10px;
}

body.bos-merits-v-compact .bos-dir--merits .bos-merits-rank {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

body.bos-merits-v-compact .bos-dir--merits .bos-merits-avatar,
body.bos-merits-v-compact .bos-dir--merits .bos-merits-avatar img {
  width: 36px !important;
  height: 36px !important;
}

body.bos-merits-v-compact .bos-dir--merits .bos-merits-name {
  font-size: 13px;
}

body.bos-merits-v-compact .bos-dir--merits .bos-merits-score {
  padding: 6px 10px;
  border-radius: 10px;
}

body.bos-merits-v-compact .bos-dir--merits .bos-merits-score-val {
  font-size: 14px;
}

/* ========== glass ========== */
body.bos-merits-v-glass .bos-dir--merits .bos-dir-hero,
body.bos-merits-v-glass .bos-dir--merits .bos-merits-board {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 14px 40px -24px rgba(20, 24, 32, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

body.bos-merits-v-glass .bos-dir--merits .bos-merits-filters .form-control,
body.bos-merits-v-glass .bos-dir--merits .bos-merits-filters .form-select {
  background: rgba(255, 255, 255, 0.55) !important;
  border-color: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(8px);
}

body.bos-merits-v-glass .bos-dir--merits .bos-merits-rank,
body.bos-merits-v-glass .bos-dir--merits .bos-merits-score,
body.bos-merits-v-glass .bos-dir--merits .bos-merits-avatar {
  background: rgba(255, 255, 255, 0.65);
  border-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
}

body.bos-merits-v-glass .bos-dir--merits .bos-merits-row:hover {
  background: rgba(255, 255, 255, 0.55);
}

body.night-mode.bos-merits-v-glass .bos-dir--merits .bos-dir-hero,
body.night-mode.bos-merits-v-glass .bos-dir--merits .bos-merits-board,
html[data-bs-theme="dark"].bos-merits-v-glass .bos-dir--merits .bos-dir-hero,
html[data-bs-theme="dark"].bos-merits-v-glass .bos-dir--merits .bos-merits-board {
  background: rgba(30, 37, 43, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 14px 40px -20px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.night-mode.bos-merits-v-glass .bos-dir--merits .bos-merits-filters .form-control,
body.night-mode.bos-merits-v-glass .bos-dir--merits .bos-merits-filters .form-select,
body.night-mode.bos-merits-v-glass .bos-dir--merits .bos-merits-rank,
body.night-mode.bos-merits-v-glass .bos-dir--merits .bos-merits-score,
body.night-mode.bos-merits-v-glass .bos-dir--merits .bos-merits-avatar,
html[data-bs-theme="dark"].bos-merits-v-glass .bos-dir--merits .bos-merits-filters .form-control,
html[data-bs-theme="dark"].bos-merits-v-glass .bos-dir--merits .bos-merits-filters .form-select,
html[data-bs-theme="dark"].bos-merits-v-glass .bos-dir--merits .bos-merits-rank,
html[data-bs-theme="dark"].bos-merits-v-glass .bos-dir--merits .bos-merits-score,
html[data-bs-theme="dark"].bos-merits-v-glass .bos-dir--merits .bos-merits-avatar {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========== ink ========== */
body.bos-merits-v-ink .bos-dir--merits .bos-dir-hero,
body.bos-merits-v-ink .bos-dir--merits .bos-merits-board {
  background: #141a20;
  border-color: rgba(255, 255, 255, 0.1);
  color: #f0f3f6;
}

body.bos-merits-v-ink .bos-dir--merits .bos-dir-hero-title strong,
body.bos-merits-v-ink .bos-dir--merits .bos-dir-section-head h3,
body.bos-merits-v-ink .bos-dir--merits .bos-merits-name,
body.bos-merits-v-ink .bos-dir--merits .bos-merits-score-val {
  color: #f0f3f6;
}

body.bos-merits-v-ink .bos-dir--merits .bos-dir-hero-copy p,
body.bos-merits-v-ink .bos-dir--merits .bos-merits-label,
body.bos-merits-v-ink .bos-dir--merits .bos-merits-handle,
body.bos-merits-v-ink .bos-dir--merits .bos-merits-count,
body.bos-merits-v-ink .bos-dir--merits .bos-merits-score small {
  color: #8b949e;
}

body.bos-merits-v-ink .bos-dir--merits .bos-merits-filters .form-control,
body.bos-merits-v-ink .bos-dir--merits .bos-merits-filters .form-select,
body.bos-merits-v-ink .bos-dir--merits .bos-merits-rank,
body.bos-merits-v-ink .bos-dir--merits .bos-merits-score,
body.bos-merits-v-ink .bos-dir--merits .bos-merits-avatar {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f0f3f6 !important;
}

body.bos-merits-v-ink .bos-dir--merits .bos-merits-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

body.bos-merits-v-ink .bos-dir--merits .bos-merits-user:hover .bos-merits-name {
  color: #fff;
}

body.bos-merits-v-ink .bos-dir--merits .bos-merits-submit {
  background: #fff !important;
  color: #141a20 !important;
}

body.bos-merits-v-ink .bos-dir--merits .bos-dir-empty {
  color: #8b949e;
}

body.bos-merits-v-ink .bos-dir--merits .bos-dir-empty strong {
  color: #f0f3f6;
}

/* keep top medals vivid on ink */
body.bos-merits-v-ink .bos-dir--merits .bos-merits-row--top1 .bos-merits-rank {
  background: linear-gradient(180deg, #f6d86b, #e0a800) !important;
  color: #1a1400 !important;
  border-color: transparent !important;
}

body.bos-merits-v-ink .bos-dir--merits .bos-merits-row--top2 .bos-merits-rank {
  background: linear-gradient(180deg, #e8edf3, #a8b0bc) !important;
  color: #1a1f26 !important;
  border-color: transparent !important;
}

body.bos-merits-v-ink .bos-dir--merits .bos-merits-row--top3 .bos-merits-rank {
  background: linear-gradient(180deg, #e7b989, #b87333) !important;
  color: #1a1008 !important;
  border-color: transparent !important;
}

/* ========== podium (cards + elevated top 3) ========== */
body.bos-merits-v-podium .bos-dir--merits .bos-dir-hero {
  border-radius: 18px;
}

body.bos-merits-v-podium .bos-dir--merits .bos-merits-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.bos-merits-v-podium .bos-dir--merits .bos-merits-row {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--bos-dir-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px -20px rgba(20, 24, 32, 0.28);
}

body.bos-merits-v-podium .bos-dir--merits .bos-merits-row + .bos-merits-row {
  margin-top: 0;
}

body.bos-merits-v-podium .bos-dir--merits .bos-merits-row:hover {
  background: #fff;
  transform: translateY(-1px);
}

body.bos-merits-v-podium .bos-dir--merits .bos-merits-row--top1,
body.bos-merits-v-podium .bos-dir--merits .bos-merits-row--top2,
body.bos-merits-v-podium .bos-dir--merits .bos-merits-row--top3 {
  order: -1;
}

body.bos-merits-v-podium .bos-dir--merits .bos-merits-row--top1 {
  padding: 16px;
  border-color: color-mix(in srgb, #e0a800 35%, var(--bos-dir-line));
  background: linear-gradient(180deg, color-mix(in srgb, #f6d86b 18%, #fff), #fff);
}

body.bos-merits-v-podium .bos-dir--merits .bos-merits-row--top2 {
  border-color: color-mix(in srgb, #a8b0bc 35%, var(--bos-dir-line));
  background: linear-gradient(180deg, color-mix(in srgb, #e8edf3 45%, #fff), #fff);
}

body.bos-merits-v-podium .bos-dir--merits .bos-merits-row--top3 {
  border-color: color-mix(in srgb, #b87333 30%, var(--bos-dir-line));
  background: linear-gradient(180deg, color-mix(in srgb, #e7b989 22%, #fff), #fff);
}

body.bos-merits-v-podium .bos-dir--merits .bos-merits-row--top1 .bos-merits-avatar,
body.bos-merits-v-podium .bos-dir--merits .bos-merits-row--top1 .bos-merits-avatar img {
  width: 52px !important;
  height: 52px !important;
}

body.bos-merits-v-podium .bos-dir--merits .bos-merits-row--top1 .bos-merits-name {
  font-size: 16px;
}

body.bos-merits-v-podium .bos-dir--merits .bos-merits-filters .form-control,
body.bos-merits-v-podium .bos-dir--merits .bos-merits-filters .form-select,
body.bos-merits-v-podium .bos-dir--merits .bos-merits-submit {
  border-radius: 999px !important;
}

body.night-mode.bos-merits-v-podium .bos-dir--merits .bos-merits-row,
html[data-bs-theme="dark"].bos-merits-v-podium .bos-dir--merits .bos-merits-row {
  background: #1e252b;
  border-color: rgba(255, 255, 255, 0.1);
}

body.night-mode.bos-merits-v-podium .bos-dir--merits .bos-merits-row--top1,
html[data-bs-theme="dark"].bos-merits-v-podium .bos-dir--merits .bos-merits-row--top1 {
  background: linear-gradient(180deg, color-mix(in srgb, #f6d86b 14%, #1e252b), #1e252b);
}

body.night-mode.bos-merits-v-podium .bos-dir--merits .bos-merits-row--top2,
html[data-bs-theme="dark"].bos-merits-v-podium .bos-dir--merits .bos-merits-row--top2 {
  background: linear-gradient(180deg, color-mix(in srgb, #e8edf3 10%, #1e252b), #1e252b);
}

body.night-mode.bos-merits-v-podium .bos-dir--merits .bos-merits-row--top3,
html[data-bs-theme="dark"].bos-merits-v-podium .bos-dir--merits .bos-merits-row--top3 {
  background: linear-gradient(180deg, color-mix(in srgb, #e7b989 12%, #1e252b), #1e252b);
}
