/* ========================================
   Hall of Fame – styles
   ======================================== */

.hof-main {
  padding-top: 40px;
  padding-bottom: 80px;
}

/* ---- Hero ---- */

.hof-hero {
  text-align: center;
  padding: 40px 0 48px;
}

.hof-hero-icon {
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 16px;
  color: #f59e0b;
}

.hof-hero-icon i {
  font-size: 3rem;
  display: inline-block;
}

.hof-hero-icon img {
  width: 56px;
  height: 56px;
  display: inline-block;
  vertical-align: middle;
}

.hof-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.hof-hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 10px;
  line-height: 1.6;
}

.hof-updated {
  font-size: 0.8rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 4px;
}

/* ---- Section ---- */

.hof-section {
  margin-bottom: 60px;
}

.hof-section-header {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-default);
}

.hof-section-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.hof-section-header p {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* ---- Cards grid ---- */

.hof-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ---- Person card ---- */

.hof-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.hof-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.hof-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hof-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-default);
  background: var(--bg-surface);
}

.hof-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hof-username {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hof-username:hover {
  color: var(--brand-primary);
}

.hof-card-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.hof-card-detail {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  opacity: 0.8;
  margin: 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ---- Rank badge ---- */

.hof-rank {
  position: absolute;
  display: none; /* hidden by default; shown via relative wrapper trick */
}

.hof-card-top {
  position: relative;
}

.hof-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

.hof-rank-top {
  border-color: transparent;
}
.hof-rank-1 { background: #FEF3C7; color: #92400E; }
.hof-rank-2 { background: #F1F5F9; color: #475569; }
.hof-rank-3 { background: #FEF2F2; color: #9A3412; }

/* ---- Mod badge ---- */

.badge-mod {
  background: #EDE9FE;
  color: #5B21B6;
}

/* ---- nav active ---- */

.nav-active {
  color: var(--brand-primary) !important;
  font-weight: 600;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
  .hof-hero h1 { font-size: 1.6rem; }
  .hof-cards { grid-template-columns: 1fr; }
}
