/* 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));
}

/* 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 */
.events-hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.events-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 événements */
.events-section {
  padding: 40px 0 80px;
}

.events-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Carte d'événement */
.event-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-bottom: 30px;
  overflow: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
  position: relative;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
  border-color: var(--primary-color);
}

.event-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;
}

.event-number {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.event-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.event-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
}

.event-detail i {
  color: var(--primary-color);
  font-size: 1.2rem;
  width: 20px;
}

.event-detail span {
  font-weight: 500;
}

.toggle-details {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
}

.toggle-details:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.toggle-details i {
  transition: transform 0.3s ease;
}

.toggle-details.active i {
  transform: rotate(180deg);
}

/* Détails des combats */
.combat-details {
  display: none;
  padding: 30px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--border-color);
}

.combat-details.active {
  display: block;
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.combat-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.combat-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary-color);
}

.combat-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.combat-title {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.combat-category {
  background: var(--gradient-primary);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 10px;
}

.combat-discipline {
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.combat-status {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: inline-block;
  margin-top: 10px;
}

/* Combattants */
.fighters-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
}

.fighter {
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.3s ease;
}

.fighter:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-5px);
}

.fighter-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border-color);
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.fighter:hover .fighter-image {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
}

.fighter-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.fighter-records {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.fighter-records strong {
  color: var(--text-primary);
}

/* VS */
.vs-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.vs-text {
  font-family: 'Orbitron', monospace;
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-color);
  text-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.vs-line {
  width: 2px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 1px;
}

/* Message vide */
.no-events {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-secondary);
}

.no-events i {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  opacity: 0.5;
}

.no-events h3 {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.no-events 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;
  }
  
  .event-details {
    grid-template-columns: 1fr;
  }
  
  .fighters-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .vs-container {
    order: -1;
    flex-direction: row;
    justify-content: center;
  }
  
  .vs-line {
    width: 40px;
    height: 2px;
  }
  
  .fighter-image {
    width: 100px;
    height: 100px;
  }
  
  .event-header {
    padding: 20px;
  }
  
  .combat-details {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .event-number {
    font-size: 1.5rem;
  }
  
  .fighter-image {
    width: 80px;
    height: 80px;
  }
  
  .fighter-name {
    font-size: 1.1rem;
  }
  
  .vs-text {
    font-size: 1.5rem;
  }
}

