﻿/* =================================
   DESIGN SYSTEM & VARIABLES
   ================================= */

:root {
  /* Primaire */
  --primary: #1976d2;
  --primary-light: #42a5f5;
  --primary-dark: #1565c0;

  /* Succès/Danger */
  --success: #4caf50;
  --danger: #f44336;
  --warning: #ff9800;

  /* Neutres */
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #eeeeee;
  --gray-300: #e0e0e0;
  --gray-800: #424242;
  --gray-900: #212121;

  /* Texte */
  --text-color: #212121;
  --text-color-light: #616161;

  /* Background */
  --body-bg: var(--gray-50);
  --card-bg: #ffffff;
  --table-header-bg: var(--gray-100);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);

  /* Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Bordures */
  --border-radius: 0.5rem;
  --border-color: var(--gray-200);
}

/* =================================
   GLOBAL STYLES
   ================================= */
body.modern-ranking {
  background-color: var(--body-bg);
  color: var(--text-color);
  font-family: "Roboto", "Segoe UI", sans-serif;
}

/* =================================
   CLASSEMENT MODERNE COMPONENTS
   ================================= */

/* Styles pour la section Hero */
.hero-section {
  background: var(--gradient-primary);
  color: white;
  padding: 3rem 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
  text-align: center;
}
.hero-stats {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.stat-item {
  min-width: 120px;
}
.stat-item .value {
  font-size: 2.5rem;
  font-weight: 700;
}
.stat-item .label {
  font-size: 1rem;
  opacity: 0.8;
}

/* Styles pour le tableau moderne */
.ranking-table {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.ranking-table thead th {
  background-color: var(--table-header-bg);
  border-bottom: 2px solid var(--border-color);
  font-weight: 600;
}
.ranking-table tbody tr:hover {
  background-color: var(--gray-50);
}
.player-cell {
  display: flex;
  align-items: center;
}
.player-cell .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin-right: 1rem;
}
.win-percentage-bar {
  width: 100px;
  height: 8px;
  background-color: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}
.win-percentage-bar .bar {
  height: 100%;
  background-color: var(--success);
  border-radius: 4px;
  width: var(--win-percentage, 0%);
  transition: width 0.5s ease-in-out;
}
.trend-icon {
  font-size: 1.2rem;
}
.trend-icon.up {
  color: var(--success);
}
.trend-icon.down {
  color: var(--danger);
}
.trend-icon.stable {
  color: var(--gray-300);
}

/* Anonymized cards */
.anonymized-section {
  background: var(--gray-100);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-top: 2rem;
  text-align: center;
}
.anonymized-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.anonymized-card {
  background: white;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.anonymized-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--gray-200);
  color: var(--gray-800);
  display: flex;
  align-items: center;
  justify-content: center;
}
