/* Liderlik Tablosu Stilleri
------------------------ */
.leaderboard-section {
  margin-bottom: 3rem;
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  border: 1px solid var(--card-border);
  position: relative;
  overflow: hidden;
}

.leaderboard-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.leaderboard-section .section-title {
  margin-bottom: 2.5rem;
}

/* En iyi 3 oyuncu alanı */
.top-three-players {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  gap: 1.5rem;
  height: 280px;
  position: relative;
}

.top-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
}

.top-player:hover {
  transform: translateY(-10px);
}

.first-player {
  order: 2;
  margin-bottom: -1.5rem;
  z-index: 3;
}

.second-player {
  order: 1;
  z-index: 2;
}

.third-player {
  order: 3;
  z-index: 1;
}

.player-trophy {
  position: absolute;
  bottom: -30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.player-trophy.gold {
  background: linear-gradient(135deg, #ffd700 0%, #ffcc00 100%);
}

.player-trophy.silver {
  background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
}

.player-trophy.bronze {
  background: linear-gradient(135deg, #cd7f32 0%, #a05a2c 100%);
}

.rank-badge {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--darker-bg);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  border: 2px solid var(--primary-color);
  z-index: 2;
}

.avatar-frame {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid;
  position: relative;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.first-player .avatar-frame {
  width: 120px;
  height: 120px;
}

.avatar-frame.gold {
  border-color: #ffd700;
}

.avatar-frame.silver {
  border-color: #c0c0c0;
}

.avatar-frame.bronze {
  border-color: #cd7f32;
}

.avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-username {
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.first-player .player-username {
  font-size: 1.2rem;
}

.player-stat {
  font-size: 0.85rem;
  color: var(--gray-text);
}

.crown-icon {
  position: absolute;
  top: -25px;
  color: #ffd700;
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  animation: floatAnimation 2s ease-in-out infinite;
}

@keyframes floatAnimation {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Diğer oyuncular listesi */
.other-players-list {
  margin-top: 3rem;
  background-color: var(--darker-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

.player-item {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  transition: all 0.2s ease;
}

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

.player-item:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.player-rank {
  font-weight: 600;
  width: 30px;
  color: var(--gray-text);
  font-size: 1.1rem;
}

.player-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 1rem;
  border: 2px solid var(--primary-color);
}

.player-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-info {
  flex-grow: 1;
}

.player-name {
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 0.25rem;
}

.player-game-count {
  font-size: 0.8rem;
  color: var(--gray-text);
}

.player-level {
  display: flex;
  align-items: center;
}

.xp-badge {
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-right: 0.5rem;
}

.xp-value {
  color: var(--primary-color);
  font-weight: 600;
}

/* İstatistikler alanı */
.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stat-box {
  background-color: var(--darker-bg);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.stat-icon {
  width: 50px;
  height: a10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-text);
}

/* Mobil oyun indirme banner */
.app-download-banner {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, rgba(49, 25, 69, 0.9) 0%, rgba(143, 37, 118, 0.9) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}

.app-qr-box {
  background-color: white;
  width: 100px;
  height: 100px;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.app-info {
  flex-grow: 1;
  padding: 0 2rem;
}

.app-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.app-description {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.app-buttons {
  display: flex;
  gap: 1rem;
}

.app-download-btn {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: the30px;
  padding: 0.5rem 1.25rem;
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.app-download-btn:hover {
  background-color: rgba(255, 255, 255, 0.25);
  text-decoration: none;
  color: white;
}

.app-download-btn i {
  font-size: 1.25rem;
  margin-right: 0.75rem;
}

/* Medya sorguları */
@media (max-width: 991.98px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .app-download-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .app-info {
    padding: 1.5rem 0;
  }
  
  .app-qr-box {
    margin-bottom: 1rem;
  }
}

@media (max-width: 767.98px) {
  .top-three-players {
    flex-direction: column;
    align-items: center;
    height: auto;
    gap: 2.5rem;
  }
  
  .first-player, .second-player, .third-player {
    order: unset;
    margin-bottom: 1.5rem;
  }
  
  .second-player {
    margin-top: 1.5rem;
  }
  
  .player-trophy {
    bottom: -20px;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
}