/*
  dumps.fm (rebuild) - Hall of Fame Styles
  Purpose: Hall of fame layout + styling.
  Dependencies: `public/css/main.css`, `public/css/chat.css`.
  Dependents: `public/hall-of-fame.html`.
*/

:root {
  --hof-shell-bg: var(--bg-primary);
  --hof-shell-border: var(--border-primary);
  --hof-section-bg: #f6f2ff;
  --hof-top3-bg: #fff3e6;
  --hof-top1-bg: #fff1c8;
  --hof-dumps-bg: #f2efff;
  --hof-card-bg: #fcfbff;
  --hof-card-border: var(--border-primary);
}

.hof-wrap {
  padding: 12px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: var(--bg-primary);
}

.hof-card {
  width: 100%;
  max-width: none;
  border: 1px solid var(--hof-shell-border);
  padding: 12px;
  background: var(--hof-shell-bg);
  margin: 0;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.hof-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
}

.hof-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.hof-section {
  margin-top: 10px;
  border: 1px solid var(--border-primary);
  padding: 10px;
  background: var(--hof-section-bg);
}

.hof-section__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 8px;
}

.hof-section--top3 {
  background: var(--hof-top3-bg);
}

.hof-section--alltime-one {
  background: var(--hof-top1-bg);
}

.hof-top3 {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.hof-top3__row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.hof-top3__row--top {
  justify-content: center;
  width: 100%;
}

.hof-top3__row--bottom {
  justify-content: space-between;
  width: 100%;
}

.hof-top3 .dumps {
  width: fit-content;
  max-width: 100%;
}

.hof-top1 {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hof-top1 .dumps {
  width: fit-content;
  max-width: 100%;
}

.hof-dumps {
  border: 1px solid var(--border-primary);
  padding: 8px;
  background: var(--hof-dumps-bg);
}

.hof-card .dumps {
  position: relative;
  margin: 0;
  padding: 10px 12px 12px;
  border: 1px solid var(--hof-card-border);
  background: var(--hof-card-bg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  min-height: 64px;
}

.hof-card .dumps__header {
  display: block;
  margin-bottom: 6px;
  padding-right: 64px;
}

.hof-card .dumps__username {
  color: hsl(var(--fav-hue, 320deg) 85% 55%);
  font-size: 14px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hof-card .dumps__content {
  display: block;
  line-height: 1.4;
}

.hof-card .dumps__text {
  display: block;
}

.hof-card .dumps__images {
  display: block;
  margin-top: 6px;
}

.hof-card .dumps__images img,
.hof-card .dumps__images .dumps__media {
  max-width: 100%;
  max-height: none;
  height: auto;
}

.hof-card .dumps__fav {
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.45));
}

.hof-card .dumps__fav--corner {
  top: -10px;
  right: -10px;
}

.hof-card .dumps__fav img {
  width: 36px;
  height: 36px;
  filter: hue-rotate(var(--fav-hue, 0deg)) saturate(1.15);
}

.hof-card .dumps__fav-count {
  font-size: 28px;
  font-style: italic;
  font-weight: 800;
  font-family: var(--font-ui);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.75);
  line-height: 1;
}

.hof-card .dumps__fav--gold img {
  filter: none;
}

.hof-card .dumps__fav--big img {
  width: 54px;
  height: 54px;
}

.hof-dumps--masonry {
  column-width: 220px;
  column-gap: 8px;
}

.hof-dumps--masonry .dumps {
  display: inline-block;
  width: 100%;
  margin-bottom: 8px;
  break-inside: avoid;
}
