/* Hall of Fame Clean Design */
.hof-header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
  background: #2c3e50;
  color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hof-header h1 {
  margin: 0 0 10px 0;
  font-size: 2rem;
  font-weight: bold;
}

.hof-header p {
  margin: 0;
  font-size: 1rem;
  opacity: 0.9;
}

/* Tab Navigation */
.tab-navigation {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.tab-button {
  padding: 10px 20px;
  background: white;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s ease;
  color: #333;
}

.tab-button:hover {
  background: #f0f0f0;
  border-color: #2c3e50;
}

.tab-button.active {
  background: #2c3e50;
  color: white;
  border-color: #2c3e50;
}

/* Tab Content */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.hof-container {
  background: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
  font-weight: bold;
}

.subsection-title {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  color: #555;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
  padding-bottom: 8px;
}

/* Two-column layout: Top 10 on left, Ranks 11-100 on right */
.hof-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 30px;
}

/* Top Ten Column - Displayed on the left */
.top-ten-column {
  min-width: 0; /* Allow flex shrinking */
}

/* Remaining Ranks - Displayed on the right in 3 columns */
.remaining-ranks {
  min-width: 0;
}

.three-column-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  grid-auto-flow: column;
  grid-template-rows: repeat(30, auto);
}

/* Player Items */
.player-item {
  display: flex;
  align-items: center;
  padding: 8px;
  margin-bottom: 5px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  position: relative;
}

.player-item:hover {
  background-color: #f8f9fa;
}

.rank-first {
  background: #edab0e;
  color: #000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.rank-second {
  background: #c0c0c0;
  color: #000;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.rank-third {
  background: #cd7f32;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.rank-number {
  font-size: 1rem;
  font-weight: bold;
  min-width: 28px;
  text-align: center;
  margin-right: 10px;
}

/* Avatar Sizes */
.player-avatar-large {
  width: 60px;
  height: 60px;
  background-size: 150%;
  background-position: top;
  background-repeat: no-repeat;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  margin-right: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  flex-shrink: 0;
}

.player-avatar-medium {
  width: 50px;
  height: 50px;
  background-size: 150%;
  background-position: top;
  background-repeat: no-repeat;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  margin-right: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  flex-shrink: 0;
}

.player-avatar-small {
  width: 40px;
  height: 40px;
  background-size: 150%;
  background-position: top;
  background-repeat: no-repeat;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  margin-right: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.player-avatar {
  width: 40px;
  height: 40px;
  background-size: 150%;
  background-position: top;
  background-repeat: no-repeat;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
  margin-right: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.player-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.player-name {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.player-name:hover {
  opacity: 0.7;
}

.player-stat {
  font-size: 0.85rem;
  opacity: 0.7;
  font-weight: 400;
}

.player-flame {
  width: 18px;
  height: 18px;
  margin-left: 8px;
}

/* Special styling for top 3 ranks */
.rank-first .player-name,
.rank-second .player-name,
.rank-third .player-name {
  color: white !important;
}

.rank-first .player-stat,
.rank-second .player-stat,
.rank-third .player-stat {
  color: rgba(255,255,255,0.9);
}

/* Minigames Section */
.minigame-section {
  margin-bottom: 20px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 4px;
}

.minigame-title {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
  border-bottom: 2px solid #2c3e50;
  padding-bottom: 6px;
}

.minigame-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.minigame-entry {
  display: flex;
  align-items: center;
  padding: 8px;
  background: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  gap: 10px;
  font-size: 0.9rem;
}

.minigame-rank {
  font-size: 1rem;
  font-weight: bold;
  color: #2c3e50;
  min-width: 35px;
  text-align: center;
}

.minigame-details {
  display: flex;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

.minigame-score,
.minigame-date,
.minigame-gameid {
  font-size: 0.8rem;
  color: #666;
  padding: 3px 8px;
  background: #f0f0f0;
  border-radius: 3px;
}

.no-scores,
.no-minigames {
  text-align: center;
  color: #999;
  font-style: italic;
  padding: 20px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hof-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .three-column-list {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(45, auto);
  }
}

@media (max-width: 768px) {
  .tab-button {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
  
  .hof-header h1 {
    font-size: 1.5rem;
  }
  
  .hof-header p {
    font-size: 0.9rem;
  }
  
  .section-title {
    font-size: 1.2rem;
  }
  
  .three-column-list {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-auto-flow: row;
  }
  
  .minigame-entry {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .minigame-details {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tab-button {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .player-avatar-large {
    width: 50px;
    height: 50px;
  }
  
  .player-avatar-medium {
    width: 45px;
    height: 45px;
  }
  
  .player-avatar-small,
  .player-avatar {
    width: 35px;
    height: 35px;
  }
}
