/* HackerDNA - Premium Rankings Page Styling */

:root {
  --primary: #22c55e;
  --primary-dark: #16a34a;
  --secondary: #28c76f;
  --accent: #00cfe8;
  --text-primary: #e7e7ff;
  --text-secondary: #a8aabc;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --gold: #ffd700;
  --silver: #c0c0c0;
  --bronze: #cd7f32;
}

/* === Clean Header === */
.rankings-header {
  padding: 2rem 0 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.rankings-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.rankings-title i {
  color: var(--primary);
  margin-right: 0.5rem;
}

.rankings-subtitle {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* === Update Frequency Badge === */
.update-frequency {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--text-secondary);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

/* === Navigation Pills === */
.nav-pills {
  gap: 0.5rem;
}

.nav-pills .nav-item {
  border-radius: 8px;
  border: 1px solid var(--border-subtle) !important;
  background: transparent;
  transition: all 0.2s ease;
}

.nav-pills .nav-item:hover {
  border-color: rgba(34, 197, 94, 0.3) !important;
}

.nav-pills .nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-pills .nav-link:hover {
  color: var(--text-primary);
}

.nav-pills .nav-link.active {
  background: var(--primary);
  color: white;
}

/* === Card Styling === */
.card {
  border: 1px solid var(--border-subtle);
  background: transparent;
  border-radius: 12px;
  transition: border-color 0.2s ease;
}

.card:hover {
  border-color: rgba(34, 197, 94, 0.2);
}

/* === Table Styling === */
.table {
  margin-bottom: 0;
  color: var(--text-primary);
}

.table thead {
  border-bottom: 1px solid var(--border-subtle);
}

.table thead th {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  padding: 1rem;
  color: var(--text-secondary);
  border-bottom: none;
}

.table thead th i {
  font-size: 1rem;
  color: var(--text-secondary);
}

.table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: background-color 0.15s ease;
}

.table tbody tr:hover {
  background: rgba(34, 197, 94, 0.04);
}

.table tbody td {
  padding: 1rem;
  vertical-align: middle;
  color: var(--text-secondary);
}

/* === Rank Styling === */
.table tbody tr td:first-child {
  font-weight: 600;
  color: var(--text-primary);
  font-feature-settings: 'tnum';
}

/* Top 3 Ranks - Special Styling (Hall of Fame only) */

/* 🥇 First Place - Gold Champion */
.hall-of-fame-table .table tbody tr:nth-child(1) {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.02) 100%) !important;
  border-left: 3px solid var(--gold) !important;
}

.hall-of-fame-table .table tbody tr:nth-child(1) td:first-child {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
}

.hall-of-fame-table .table tbody tr:nth-child(1) td:first-child p {
  color: var(--gold);
  font-weight: 700;
}

.hall-of-fame-table .table tbody tr:nth-child(1):hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.04) 100%) !important;
}

/* 🥈 Second Place - Silver */
.hall-of-fame-table .table tbody tr:nth-child(2) {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.06) 0%, rgba(192, 192, 192, 0.01) 100%) !important;
  border-left: 3px solid var(--silver) !important;
}

.hall-of-fame-table .table tbody tr:nth-child(2) td:first-child {
  color: var(--silver);
  font-weight: 700;
  font-size: 1.15rem;
}

.hall-of-fame-table .table tbody tr:nth-child(2) td:first-child p {
  color: var(--silver);
  font-weight: 700;
}

.hall-of-fame-table .table tbody tr:nth-child(2):hover {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, rgba(192, 192, 192, 0.02) 100%) !important;
}

/* 🥉 Third Place - Bronze */
.hall-of-fame-table .table tbody tr:nth-child(3) {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.06) 0%, rgba(205, 127, 50, 0.01) 100%) !important;
  border-left: 3px solid var(--bronze) !important;
}

.hall-of-fame-table .table tbody tr:nth-child(3) td:first-child {
  color: var(--bronze);
  font-weight: 700;
  font-size: 1.15rem;
}

.hall-of-fame-table .table tbody tr:nth-child(3) td:first-child p {
  color: var(--bronze);
  font-weight: 700;
}

.hall-of-fame-table .table tbody tr:nth-child(3):hover {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, rgba(205, 127, 50, 0.02) 100%) !important;
}

/* Enhanced medal styling for top 3 */
.hall-of-fame-table .table tbody tr:nth-child(1) .user-name .text-dark {
  color: var(--gold) !important;
  font-weight: 600;
}

.hall-of-fame-table .table tbody tr:nth-child(2) .user-name .text-dark {
  color: var(--silver) !important;
  font-weight: 600;
}

.hall-of-fame-table .table tbody tr:nth-child(3) .user-name .text-dark {
  color: var(--bronze) !important;
  font-weight: 600;
}

/* Make medal emojis larger for top 3 */
.hall-of-fame-table .table tbody tr:nth-child(1) .ms-2.mb-0,
.hall-of-fame-table .table tbody tr:nth-child(2) .ms-2.mb-0,
.hall-of-fame-table .table tbody tr:nth-child(3) .ms-2.mb-0 {
  font-size: 1.3rem;
}

/* Avatar styling for top 3 */
.hall-of-fame-table .table tbody tr:nth-child(1) .avatar img {
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.hall-of-fame-table .table tbody tr:nth-child(2) .avatar img {
  border: 2px solid rgba(192, 192, 192, 0.2);
}

.hall-of-fame-table .table tbody tr:nth-child(3) .avatar img {
  border: 2px solid rgba(205, 127, 50, 0.2);
}

/* Points column highlight for top 3 */
.hall-of-fame-table .table tbody tr:nth-child(1) td:nth-child(4) small {
  color: var(--gold) !important;
  font-weight: 700 !important;
  font-size: 1rem;
}

.hall-of-fame-table .table tbody tr:nth-child(2) td:nth-child(4) small {
  color: var(--silver) !important;
  font-weight: 700 !important;
}

.hall-of-fame-table .table tbody tr:nth-child(3) td:nth-child(4) small {
  color: var(--bronze) !important;
  font-weight: 700 !important;
}

/* === Current User Highlight === */
.current-user-row {
  background: rgba(34, 197, 94, 0.06) !important;
  border-left: 2px solid var(--primary) !important;
}

.current-user-row:hover {
  background: rgba(34, 197, 94, 0.08) !important;
}

.current-user-row .text-dark {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

/* Current user row in top 3 - keep their medal colors visible (Hall of Fame only) */
.hall-of-fame-table .current-user-row.table tbody tr:nth-child(1) .text-dark,
.hall-of-fame-table tr:nth-child(1).current-user-row .user-name .text-dark {
  color: var(--gold) !important;
}

.hall-of-fame-table tr:nth-child(2).current-user-row .user-name .text-dark {
  color: var(--silver) !important;
}

.hall-of-fame-table tr:nth-child(3).current-user-row .user-name .text-dark {
  color: var(--bronze) !important;
}

/* === Best Score Highlighting === */
.best-score {
  font-weight: 700 !important;
  color: var(--gold) !important;
}

/* === Avatar === */
.avatar.avatar-online::before {
  border: 2px solid var(--secondary);
}

/* === Rank Indicators === */
.ti-circle-arrow-up {
  color: var(--secondary) !important;
}

.ti-circle-arrow-down {
  color: #ff4757 !important;
}

/* === Buttons === */
.btn-outline-primary {
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: var(--text-primary);
  background: transparent;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--primary);
  color: white;
}

/* === Username Link === */
.user-name a:hover .text-dark {
  color: var(--primary) !important;
}

/* === Points Column === */
.table tbody tr td:nth-child(4) {
  font-weight: 600;
  color: var(--text-primary);
  font-feature-settings: 'tnum';
}

/* === Top 3 for Countries & Universities === */

/* 🥇 First Place - Gold Champion (Countries) */
.top-countries-table .table tbody tr:nth-child(1) {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.02) 100%) !important;
  border-left: 3px solid var(--gold) !important;
}

.top-countries-table .table tbody tr:nth-child(1) td:first-child {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
}

.top-countries-table .table tbody tr:nth-child(1) td:first-child p {
  color: var(--gold);
  font-weight: 700;
}

.top-countries-table .table tbody tr:nth-child(1):hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.04) 100%) !important;
}

/* 🥈 Second Place - Silver (Countries) */
.top-countries-table .table tbody tr:nth-child(2) {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.06) 0%, rgba(192, 192, 192, 0.01) 100%) !important;
  border-left: 3px solid var(--silver) !important;
}

.top-countries-table .table tbody tr:nth-child(2) td:first-child {
  color: var(--silver);
  font-weight: 700;
  font-size: 1.15rem;
}

.top-countries-table .table tbody tr:nth-child(2) td:first-child p {
  color: var(--silver);
  font-weight: 700;
}

.top-countries-table .table tbody tr:nth-child(2):hover {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, rgba(192, 192, 192, 0.02) 100%) !important;
}

/* 🥉 Third Place - Bronze (Countries) */
.top-countries-table .table tbody tr:nth-child(3) {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.06) 0%, rgba(205, 127, 50, 0.01) 100%) !important;
  border-left: 3px solid var(--bronze) !important;
}

.top-countries-table .table tbody tr:nth-child(3) td:first-child {
  color: var(--bronze);
  font-weight: 700;
  font-size: 1.15rem;
}

.top-countries-table .table tbody tr:nth-child(3) td:first-child p {
  color: var(--bronze);
  font-weight: 700;
}

.top-countries-table .table tbody tr:nth-child(3):hover {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, rgba(205, 127, 50, 0.02) 100%) !important;
}

/* Country medal emojis and names */
.top-countries-table .table tbody tr:nth-child(1) p.mb-0,
.top-countries-table .table tbody tr:nth-child(2) p.mb-0,
.top-countries-table .table tbody tr:nth-child(3) p.mb-0 {
  font-size: 1.3rem;
}

.top-countries-table .table tbody tr:nth-child(1) .text-truncate {
  color: var(--gold) !important;
  font-weight: 600 !important;
}

.top-countries-table .table tbody tr:nth-child(2) .text-truncate {
  color: var(--silver) !important;
  font-weight: 600 !important;
}

.top-countries-table .table tbody tr:nth-child(3) .text-truncate {
  color: var(--bronze) !important;
  font-weight: 600 !important;
}

/* Points for top 3 countries */
.top-countries-table .table tbody tr:nth-child(1) td:nth-child(4) small {
  color: var(--gold) !important;
  font-weight: 700 !important;
  font-size: 1rem;
}

.top-countries-table .table tbody tr:nth-child(2) td:nth-child(4) small {
  color: var(--silver) !important;
  font-weight: 700 !important;
}

.top-countries-table .table tbody tr:nth-child(3) td:nth-child(4) small {
  color: var(--bronze) !important;
  font-weight: 700 !important;
}

/* 🥇 First Place - Gold Champion (Universities) */
.top-universities-table .table tbody tr:nth-child(1) {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.08) 0%, rgba(255, 215, 0, 0.02) 100%) !important;
  border-left: 3px solid var(--gold) !important;
}

.top-universities-table .table tbody tr:nth-child(1) td:first-child {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.2rem;
}

.top-universities-table .table tbody tr:nth-child(1) td:first-child p {
  color: var(--gold);
  font-weight: 700;
}

.top-universities-table .table tbody tr:nth-child(1):hover {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.12) 0%, rgba(255, 215, 0, 0.04) 100%) !important;
}

/* 🥈 Second Place - Silver (Universities) */
.top-universities-table .table tbody tr:nth-child(2) {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.06) 0%, rgba(192, 192, 192, 0.01) 100%) !important;
  border-left: 3px solid var(--silver) !important;
}

.top-universities-table .table tbody tr:nth-child(2) td:first-child {
  color: var(--silver);
  font-weight: 700;
  font-size: 1.15rem;
}

.top-universities-table .table tbody tr:nth-child(2) td:first-child p {
  color: var(--silver);
  font-weight: 700;
}

.top-universities-table .table tbody tr:nth-child(2):hover {
  background: linear-gradient(90deg, rgba(192, 192, 192, 0.1) 0%, rgba(192, 192, 192, 0.02) 100%) !important;
}

/* 🥉 Third Place - Bronze (Universities) */
.top-universities-table .table tbody tr:nth-child(3) {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.06) 0%, rgba(205, 127, 50, 0.01) 100%) !important;
  border-left: 3px solid var(--bronze) !important;
}

.top-universities-table .table tbody tr:nth-child(3) td:first-child {
  color: var(--bronze);
  font-weight: 700;
  font-size: 1.15rem;
}

.top-universities-table .table tbody tr:nth-child(3) td:first-child p {
  color: var(--bronze);
  font-weight: 700;
}

.top-universities-table .table tbody tr:nth-child(3):hover {
  background: linear-gradient(90deg, rgba(205, 127, 50, 0.1) 0%, rgba(205, 127, 50, 0.02) 100%) !important;
}

/* University medal emojis and names */
.top-universities-table .table tbody tr:nth-child(1) p.mb-0,
.top-universities-table .table tbody tr:nth-child(2) p.mb-0,
.top-universities-table .table tbody tr:nth-child(3) p.mb-0 {
  font-size: 1.3rem;
}

.top-universities-table .table tbody tr:nth-child(1) .text-truncate {
  color: var(--gold) !important;
  font-weight: 600 !important;
}

.top-universities-table .table tbody tr:nth-child(2) .text-truncate {
  color: var(--silver) !important;
  font-weight: 600 !important;
}

.top-universities-table .table tbody tr:nth-child(3) .text-truncate {
  color: var(--bronze) !important;
  font-weight: 600 !important;
}

/* Points for top 3 universities */
.top-universities-table .table tbody tr:nth-child(1) td:nth-child(4) small {
  color: var(--gold) !important;
  font-weight: 700 !important;
  font-size: 1rem;
}

.top-universities-table .table tbody tr:nth-child(2) td:nth-child(4) small {
  color: var(--silver) !important;
  font-weight: 700 !important;
}

.top-universities-table .table tbody tr:nth-child(3) td:nth-child(4) small {
  color: var(--bronze) !important;
  font-weight: 700 !important;
}

/* === Champion Banner Styling === */
.champion-banner {
  position: relative;
  overflow: hidden;
  background: #1a1b26;
  border-radius: 12px;
  border: 1px solid rgba(255, 215, 0, 0.2);
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.05),
    0 8px 32px rgba(255, 215, 0, 0.15);
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
}

/* Ambient lighting effects */
.champion-banner::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.15) 0%, transparent 70%);
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.champion-banner::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 165, 0, 0.1) 0%, transparent 70%);
  bottom: -200px;
  right: 10%;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.champion-banner:hover {
  box-shadow: 
    0 24px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.08),
    0 10px 40px rgba(255, 215, 0, 0.25);
  border-color: rgba(255, 215, 0, 0.3);
}

.champion-banner .card-body {
  position: relative;
  z-index: 1;
}

/* Trophy Container */
.champion-trophy-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.champion-trophy-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1.15);
  }
}

.champion-trophy-icon {
  position: relative;
  font-size: 5rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 4px 12px rgba(255, 215, 0, 0.6));
  animation: gentle-float 4s ease-in-out infinite;
}

@keyframes gentle-float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Title Styling */
.champion-title-text {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #FFD700 0%, #FFC107 50%, #FFD700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: title-shimmer 4s ease-in-out infinite;
  line-height: 1.2;
}

@keyframes title-shimmer {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
  }
  50% {
    filter: brightness(1.3) drop-shadow(0 2px 12px rgba(255, 215, 0, 0.5));
  }
}

/* Subtitle */
.champion-subtitle-text {
  font-size: 1.125rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button - Homepage Pro Style */
.champion-cta-button {
  position: relative;
  padding: 0.875rem 2.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
  color: #1a1a2e;
  border: none;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  transition: all 0.2s ease;
  overflow: hidden;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.champion-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  z-index: 1;
}

.champion-cta-button:hover::before {
  left: 100%;
}

.champion-cta-button:hover {
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
  color: #1a1a2e;
  background: linear-gradient(135deg, #FFA500 0%, #FFD700 100%);
}

.champion-cta-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

.champion-cta-button i {
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
}

/* Champion Stats Mini Grid */
.champion-stats-mini {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 215, 0, 0.1);
  position: relative;
  z-index: 1;
}

.champion-stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: 6px;
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
}

.champion-stat-item:hover {
  background: rgba(255, 215, 0, 0.08);
  border-color: rgba(255, 215, 0, 0.25);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.15);
}

.champion-stat-item i {
  font-size: 1.5rem;
  color: #FFD700;
  filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.4));
}

.champion-stat-item span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === Responsive Design === */
@media (max-width: 768px) {
  .rankings-title {
    font-size: 1.5rem;
  }
  
  .nav-pills .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }
  
  /* Champion banner responsive */
  .champion-banner::before {
    width: 400px;
    height: 400px;
    top: -200px;
  }
  
  .champion-banner::after {
    width: 300px;
    height: 300px;
    bottom: -150px;
  }
  
  .champion-trophy-icon {
    font-size: 3.5rem;
  }
  
  .champion-trophy-glow {
    width: 100px;
    height: 100px;
  }
  
  .champion-title-text {
    font-size: 1.5rem;
  }
  
  .champion-subtitle-text {
    font-size: 1rem;
    padding: 0 1rem;
  }
  
  .champion-cta-button {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
  }
  
  .champion-banner .card-body {
    padding: 2.5rem 1rem !important;
  }
  
  .champion-stats-mini {
    gap: 1rem;
    padding-top: 1rem;
    margin-top: 1rem;
  }
  
  .champion-stat-item {
    padding: 0.625rem 1rem;
  }
  
  .champion-stat-item i {
    font-size: 1.25rem;
  }
  
  .champion-stat-item span {
    font-size: 0.75rem;
  }
  
  .table thead th,
  .table tbody td {
    padding: 0.75rem 0.5rem;
  }
  
  /* Reduce medal size on mobile */
  .hall-of-fame-table .table tbody tr:nth-child(1) .ms-2.mb-0,
  .hall-of-fame-table .table tbody tr:nth-child(2) .ms-2.mb-0,
  .hall-of-fame-table .table tbody tr:nth-child(3) .ms-2.mb-0,
  .top-countries-table .table tbody tr:nth-child(1) p.mb-0,
  .top-countries-table .table tbody tr:nth-child(2) p.mb-0,
  .top-countries-table .table tbody tr:nth-child(3) p.mb-0,
  .top-universities-table .table tbody tr:nth-child(1) p.mb-0,
  .top-universities-table .table tbody tr:nth-child(2) p.mb-0,
  .top-universities-table .table tbody tr:nth-child(3) p.mb-0 {
    font-size: 1.1rem;
  }
  
  /* Reduce rank number size on mobile */
  .hall-of-fame-table .table tbody tr:nth-child(1) td:first-child,
  .top-countries-table .table tbody tr:nth-child(1) td:first-child,
  .top-universities-table .table tbody tr:nth-child(1) td:first-child {
    font-size: 1.1rem;
  }
  
  .hall-of-fame-table .table tbody tr:nth-child(2) td:first-child,
  .hall-of-fame-table .table tbody tr:nth-child(3) td:first-child,
  .top-countries-table .table tbody tr:nth-child(2) td:first-child,
  .top-countries-table .table tbody tr:nth-child(3) td:first-child,
  .top-universities-table .table tbody tr:nth-child(2) td:first-child,
  .top-universities-table .table tbody tr:nth-child(3) td:first-child {
    font-size: 1.05rem;
  }
}

