/**
 * Jucatori De Top (Top Players) Page
 * Weekly hero section and podium styling
 */

/* Hero section */
.weekly-hero,
.monthly-hero {
  background: linear-gradient(135deg, #0b1512 0%, #0e1a16 50%, #0a1512 100%);
  border: 2px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
  position: relative;
  overflow: hidden;
}

.weekly-hero::before,
.monthly-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

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

/* Podium cards - GOLD, SILVER, BRONZE */
.podium-card {
  border: 3px solid;
  border-radius: 20px;
  padding: 12px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.podium-card .stat-points {
  font-size: 2.8rem !important;
  }
.podium-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at top center, currentColor 0%, transparent 70%);
  opacity: 0.08;
  pointer-events: none;
}

.podium-card::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, currentColor, transparent);
  border-radius: 20px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.4s ease;
  filter: blur(15px);
}

.podium-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.podium-card:hover::after {
  opacity: 0.6;
}

/* GOLD - 1st Place */
.podium-1 { 
  border-color: #ffd700;
  color: #ffd700;
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.25) 0%, 
    rgba(184, 134, 11, 0.15) 50%, 
    rgba(10, 21, 18, 0.95) 100%);
}

/* SILVER - 2nd Place */
.podium-2 { 
  border-color: #c0c0c0;
  color: #c0c0c0;
  background: linear-gradient(135deg, 
    rgba(192, 192, 192, 0.25) 0%, 
    rgba(128, 128, 128, 0.15) 50%, 
    rgba(10, 21, 18, 0.95) 100%);
}

/* BRONZE - 3rd Place */
.podium-3 { 
  border-color: #cd7f32;
  color: #cd7f32;
  background: linear-gradient(135deg, 
    rgba(205, 127, 50, 0.25) 0%, 
    rgba(160, 82, 45, 0.15) 50%, 
    rgba(10, 21, 18, 0.95) 100%);
}

/* Player photo */
.player-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.leaderboard-avatar-sm {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  max-width: 32px !important;
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  object-position: center;
  display: block !important;
}

.leaderboard-avatar-lg {
  aspect-ratio: 1 / 1;
  object-fit: cover !important;
  object-position: center;
  display: block !important;
}

/* Stat badge */
.stat-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 10px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #10b981;
  width: 100%;
  justify-content: flex-start;
  transition: all 0.3s ease;
  box-shadow: 
    0 2px 8px rgba(16, 185, 129, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.stat-badge:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(16, 185, 129, 0.6);
  transform: translateY(-2px);
  box-shadow: 
    0 4px 12px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stat-badge span:first-child {
  font-size: 1.4rem;
  filter: drop-shadow(0 0 8px currentColor);
  flex-shrink: 0;
}

.stat-badge span:last-child {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
}

/* Full-width centered badges (Win Rate) */
.stat-badge.justify-content-center {
  justify-content: center;
  font-size: 1rem;
  padding: 14px 20px;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
}

.stat-badge.justify-content-center:hover {
  background: rgba(16, 185, 129, 0.3);
}

/* Card spacing and layout improvements */
.podium-card .row {
  margin-top: 0.5rem;
}

.podium-card .stat-points {
  color: currentColor;
  font-weight: 900;
  text-shadow: 
    0 0 30px currentColor,
    0 4px 15px rgba(0, 0, 0, 0.7);
  letter-spacing: 2px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .weekly-hero {
    padding: 10px !important;
    margin-bottom: 10px !important;
  }
  .leaderboard-title {
    font-size: 2.0rem !important;
    margin-bottom: 0.5rem !important;
  }
  .weekly-hero h1 {
    font-size: 1.5rem !important;
    margin-bottom: 1rem !important;
  }
  
  .weekly-hero p {
    font-size: 0.9rem !important;
  }
  
  .podium-card {
    padding: 10px !important;
    margin-bottom: 0.1rem;
  }
  
  .player-photo {
    width: 100px !important;
    height: 100px !important;
    border-width: 3px !important;
  }
  
  .podium-card h3 {
    font-size: 1.3rem !important;
  }
  .podium-card h2 {
    font-size: 2.6rem !important;
  }  
  .podium-card .stat-points {
    font-size: 2.6rem !important;
  }
  .stat-points {
    font-size: 1.0rem !important;
  }  
  .stat-badge {
    padding: 10px 10px !important;
    font-size: 0.9rem !important;
    gap: 4px !important;
    width: 100%;
    justify-content: center;
  }
  
  .stat-badge span:first-child {
    font-size: 0.9rem;
  }
  
  /* Make table scrollable horizontally */
  .leaderboard-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -5px;
    padding: 0 15px;
  }
  
  .leaderboard-table {
    min-width: 600px;
    font-size: 0.9rem;
  }
  
  .leaderboard-table thead th,
  .leaderboard-table tbody td {
    padding: 8px 6px !important;
  }
  
  .leaderboard-table img {
    width: 28px !important;
    height: 28px !important;
  }
  .leaderboard-avatar-sm {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    min-height: 28px !important;
    max-width: 28px !important;
  }
.leaderboard-table-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -5px;
  padding: 0 15px;
}
}

