/* Variables CSS pour le thème bleu */
:root {
  --primary-color: #4fc3f7;
  --accent-color: #81d4fa;
  --secondary-color: #29b6f6;
  --background-dark: #0a0a0a;
  --background-card: rgba(255, 255, 255, 0.05);
  --text-primary: #ffffff;
  --text-secondary: #b0bec5;
  --border-color: rgba(79, 195, 247, 0.2);
  --shadow-light: 0 8px 32px rgba(79, 195, 247, 0.1);
  --shadow-medium: 0 12px 40px rgba(79, 195, 247, 0.15);
  --shadow-heavy: 0 20px 60px rgba(79, 195, 247, 0.2);
  --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  --gradient-card: linear-gradient(135deg, rgba(79, 195, 247, 0.1), rgba(129, 212, 250, 0.05));
  --champion-gold: #ffd700;
  --champion-glow: rgba(255, 215, 0, 0.3);
}

/* Import des polices */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Roboto:wght@300;400;500;700&display=swap');

/* Reset et base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Arrière-plan animé */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(79, 195, 247, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(129, 212, 250, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(41, 182, 246, 0.05) 0%, transparent 50%);
  z-index: -1;
  animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Grille de points */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(79, 195, 247, 0.3) 1px, transparent 0);
  background-size: 50px 50px;
  z-index: -1;
  animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Section héro */
.rankings-hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.rankings-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.1) 0%, rgba(129, 212, 250, 0.05) 100%);
  z-index: -1;
}

.hero-title {
  font-family: 'Orbitron', monospace;
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--primary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(79, 195, 247, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 30px rgba(79, 195, 247, 0.5); }
  to { text-shadow: 0 0 40px rgba(79, 195, 247, 0.8); }
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 40px;
}

.stat-item {
  text-align: center;
  animation: fadeInUp 0.8s ease-out;
}

.stat-number {
  font-family: 'Orbitron', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Filtres */
.filters-section {
  padding: 40px 0;
  text-align: center;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-btn {
  background: var(--gradient-card);
  border: 2px solid var(--border-color);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--gradient-primary);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Section des classements */
.rankings-section {
  padding: 40px 0 80px;
}

.rankings-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Carte de catégorie */
.category-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 40px;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  position: relative;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-color);
}

.category-header {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(129, 212, 250, 0.1));
  padding: 25px 30px;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.category-title {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
  text-align: center;
}

.category-stats {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 15px;
}

.category-stat {
  text-align: center;
  color: var(--text-secondary);
}

.category-stat-number {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  display: block;
}

.category-stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Champion */
.champion-section {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 193, 7, 0.05));
  border: 2px solid var(--champion-gold);
  border-radius: 20px;
  padding: 30px;
  margin: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: championGlow 3s ease-in-out infinite alternate;
}

@keyframes championGlow {
  from {
    box-shadow: 0 0 30px var(--champion-glow);
  }
  to {
    box-shadow: 0 0 50px var(--champion-glow);
  }
}

.champion-crown {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  color: var(--champion-gold);
  animation: float 2s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.champion-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--champion-gold);
  margin-bottom: 20px;
  box-shadow: 0 0 30px var(--champion-glow);
  transition: all 0.3s ease;
}

.champion-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px var(--champion-glow);
}

.champion-name {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--champion-gold);
  margin-bottom: 10px;
  text-shadow: 0 0 20px var(--champion-glow);
}

.champion-title {
  background: var(--champion-gold);
  color: #000;
  padding: 8px 20px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: inline-block;
  margin-bottom: 15px;
}

.champion-records {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

.champion-records strong {
  color: var(--text-primary);
}

/* Tableau des classements */
.rankings-table {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 15px;
  overflow: hidden;
  margin: 20px;
  border: 1px solid var(--border-color);
}

.rankings-table table {
  width: 100%;
  border-collapse: collapse;
}

.rankings-table thead {
  background: linear-gradient(135deg, rgba(79, 195, 247, 0.2), rgba(129, 212, 250, 0.1));
}

.rankings-table th {
  padding: 20px 15px;
  text-align: left;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--border-color);
}

.rankings-table td {
  padding: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.rankings-table tbody tr {
  transition: all 0.3s ease;
}

.rankings-table tbody tr:hover {
  background: rgba(79, 195, 247, 0.05);
  transform: translateX(5px);
}

.rankings-table tbody tr:hover td {
  color: var(--text-primary);
}

/* Colonnes du tableau */
.rank-column {
  width: 80px;
  text-align: center;
  font-family: 'Orbitron', monospace;
  font-weight: 700;
  font-size: 1.2rem;
}

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }
.rank-other { color: var(--primary-color); }

.fighter-column {
  display: flex;
  align-items: center;
  gap: 15px;
}

.fighter-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-color);
  transition: all 0.3s ease;
}

.fighter-column:hover .fighter-avatar {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.3);
}

.fighter-info {
  flex: 1;
}

.fighter-name {
  font-family: 'Orbitron', monospace;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.fighter-category {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.records-column {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.4;
}

.records-column strong {
  color: var(--text-primary);
}

/* Message vide */
.no-rankings {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.no-rankings i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-rankings h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.no-rankings p {
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 30px;
  }
  
  .filter-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .category-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .champion-photo {
    width: 120px;
    height: 120px;
  }
  
  .champion-name {
    font-size: 1.5rem;
  }
  
  .fighter-column {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .fighter-avatar {
    width: 40px;
    height: 40px;
  }
  
  .rankings-table th,
  .rankings-table td {
    padding: 10px 8px;
    font-size: 0.9rem;
  }
  
  .rank-column {
    width: 60px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .category-title {
    font-size: 1.5rem;
  }
  
  .champion-photo {
    width: 100px;
    height: 100px;
  }
  
  .champion-name {
    font-size: 1.3rem;
  }
  
  .rankings-table {
    margin: 10px;
  }
  
  .rankings-table th,
  .rankings-table td {
    padding: 8px 5px;
    font-size: 0.8rem;
  }
  
  .fighter-name {
    font-size: 1rem;
  }
}
