/* Hall of Fame styles (extends main theme) */

.hall-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.stat-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  color: var(--default-color);
}

.stat-card p {
  margin: 0 0 0.3rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.stat-card strong {
  font-size: 1.8rem;
  color: var(--accent-color);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.filter-label {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  margin: 0;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-chips .chip {
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  background: rgba(255, 255, 255, 0.03);
  color: var(--default-color);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.filter-chips .chip:hover,
.filter-chips .chip.active {
  background: var(--accent-color);
  color: #000;
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.search-group .input-wrapper {
  position: relative;
}

.search-group input {
  width: 100%;
  padding: 0.6rem 0.9rem 0.6rem 2.4rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  background: rgba(255,255,255,0.04);
  color: var(--default-color);
}

.search-group i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--default-color), transparent 45%);
}

.hall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.hof-pagination {
  margin-top: 1.5rem;
}

.hof-pagination .page-link {
  border-radius: 999px;
}

.university-toggle {
  margin-bottom: 1rem;
  text-align: right;
}

.university-panel {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.uni-year-card + .uni-year-card {
  border-top: 1px dashed color-mix(in srgb, var(--default-color), transparent 88%);
  margin-top: 1rem;
  padding-top: 1rem;
}

.uni-year-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.uni-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.uni-chip-grid .chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 82%);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
}

.uni-chip-grid .chip.uni-chip {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.uni-chip-grid .chip.uni-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.uni-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.uni-modal[hidden] {
  display: none;
}

.uni-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.uni-modal__dialog {
  background: var(--surface-color);
  border-radius: 16px;
  max-width: 720px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,0.35);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  display: flex;
  flex-direction: column;
  transform: translateY(18px) scale(0.96);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.uni-modal.is-open .uni-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.uni-modal__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.uni-modal__title {
  margin: 0;
  font-size: 1.2rem;
}

.uni-modal__close {
  background: none;
  border: none;
  font-size: 1.3rem;
  color: var(--default-color);
  cursor: pointer;
}

.uni-modal__body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
}

.uni-modal__year {
  margin-bottom: 1rem;
}

.uni-modal__year h5 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.uni-student-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.uni-student-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.uni-student-meta {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
  font-size: 0.9rem;
}

.hall-card {
  border-radius: 16px;
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hall-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.hall-card.is-hidden {
  display: none;
}

.hall-card__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.hof-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--default-color), transparent 75%);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.hof-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hall-card__head h3 {
  margin: 0;
  font-size: 1.2rem;
}

.hall-card .eyebrow {
  margin: 0;
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 45%);
  letter-spacing: 0.5px;
}

.hall-card .subtext {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 35%);
}

.badge-stack {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-color), transparent 75%);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  font-size: 0.9rem;
}

.pill-soft {
  background: rgba(255, 255, 255, 0.06);
}

.hall-card__body {
  background: rgba(255,255,255,0.02);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 92%);
  border-radius: 12px;
  padding: 0.8rem;
}

.admit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.admit-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
}

.round-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  margin-top: 0.35rem;
  text-transform: capitalize;
}

.round-portfolio { background: rgba(255, 193, 7, 0.15); border-color: rgba(255, 193, 7, 0.35); color: #f7c948; }
.round-quota { background: rgba(13, 202, 240, 0.15); border-color: rgba(13, 202, 240, 0.35); color: #7ad5f6; }
.round-admission { background: rgba(25, 135, 84, 0.15); border-color: rgba(25, 135, 84, 0.35); color: #76d7a4; }
.round-direct { background: rgba(111, 66, 193, 0.15); border-color: rgba(111, 66, 193, 0.35); color: #c6a8ff; }

.admit-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.download-link {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.download-link:hover {
  text-decoration: underline;
}

.muted {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 0.9rem;
}

.hall-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.detail-toggle {
  background: none;
  border: none;
  color: var(--accent-color);
  font-weight: 600;
  cursor: pointer;
}

.hall-card__detail {
  border-top: 1px dashed color-mix(in srgb, var(--default-color), transparent 85%);
  padding-top: 0.8rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.6rem;
}

.detail-grid .muted {
  margin: 0 0 0.15rem;
}

@media (max-width: 768px) {
  .hall-card__head {
    flex-direction: column;
  }
  .badge-stack {
    align-items: flex-start;
  }
}
