/**
 * Leaderboard Page Styles
 * Extends highscore.css with full-page leaderboard layout
 */

.eqsy-leaderboard-container {
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

.eqsy-leaderboard-container h1 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  color: #152a3a;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

.eqsy-leaderboard-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.eqsy-period-btn {
  padding: 10px 20px;
  font-size: 0.9rem;
  border: 1px solid #dee4ef;
  background: white;
  color: #152a3a;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.eqsy-period-btn:hover {
  background: #f5f7fb;
  border-color: #2f6feb;
}

.eqsy-period-btn.eqsy-btn-active {
  background: #2f6feb;
  color: white;
  border-color: #2f6feb;
}

.eqsy-leaderboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  width: 100%;
}

.eqsy-leaderboard-card {
  background: white;
  border: 1px solid #dee4ef;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(21, 34, 58, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.eqsy-leaderboard-card:hover {
  box-shadow: 0 4px 16px rgba(21, 34, 58, 0.1);
  border-color: #2f6feb;
}

.eqsy-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #f0f3f7;
}

.eqsy-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: #152a3a;
  margin: 0;
  flex: 1;
}

.eqsy-card-link {
  padding: 5px 10px;
  font-size: 0.8rem;
  background: #2f6feb;
  color: white;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.3s ease;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.eqsy-card-link:hover {
  background: #1e4dbf;
}

.eqsy-leaderboard-list {
  list-style: decimal;
  list-style-position: inside;
  padding: 0;
  margin: 0;
}

.eqsy-leaderboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #152a3a;
  border-bottom: 1px solid #f5f7fb;
}

.eqsy-leaderboard-item:last-child {
  border-bottom: none;
}

.eqsy-player-name {
  font-weight: 500;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 0.5rem;
}

.eqsy-player-score {
  color: #2f6feb;
  font-weight: 700;
  white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .eqsy-leaderboard-container {
    padding: 1rem;
  }

  .eqsy-leaderboard-grid {
    grid-template-columns: 1fr;
  }

  .eqsy-leaderboard-controls {
    gap: 0.5rem;
  }

  .eqsy-period-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}
