/* Styles spécifiques pour la page matchs */

/* Prochain match en vedette */
.prochain-match-featured {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 50px;
  border-radius: 20px;
  margin-bottom: 50px;
  box-shadow: 0 10px 40px var(--shadow-hover);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease;
}

.prochain-match-featured::before {
  content: '⚽';
  position: absolute;
  font-size: 250px;
  opacity: 0.05;
  right: -50px;
  bottom: -80px;
  animation: rotate 30s linear infinite;
}

.match-badge {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 800;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.match-info-featured {
  position: relative;
  z-index: 1;
  text-align: center;
}

.match-info-featured h2 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 30px;
  padding: 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.9;
}

.match-info-featured h2::before {
  display: none;
}

.match-teams {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin: 30px 0;
}

.team {
  text-align: center;
  flex: 1;
  max-width: 250px;
}

.team-logo {
  width: 100px;
  height: 100px;
  background: var(--white);
  border-radius: 50%;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.team-name {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 5px;
}

.team-record {
  opacity: 0.8;
  font-size: 0.95rem;
}

.vs-separator {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--accent);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.match-details-featured {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.match-detail-item {
  text-align: center;
  padding: 15px 25px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.match-detail-label {
  font-size: 0.85rem;
  opacity: 0.8;
  text-transform: uppercase;
  margin-bottom: 5px;
  letter-spacing: 1px;
}

.match-detail-value {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--accent);
}

.match-cta {
  margin-top: 30px;
  text-align: center;
}

.match-cta a {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  padding: 16px 50px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(212,175,55,0.4);
}

.match-cta a:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 30px rgba(212,175,55,0.6);
}

/* Filtres */
.match-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 40px 0;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--light);
  padding: 12px 30px;
  border-radius: 25px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 4px 15px rgba(139, 21, 56, 0.3);
}

/* Liste des matchs */
.matchs-list {
  margin-bottom: 50px;
}

.match-card {
  background: var(--white);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
  border-left: 5px solid var(--light);
}

.match-card:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 25px var(--shadow-hover);
  border-left-color: var(--accent);
}

.match-card.victoire {
  border-left-color: #28a745;
  background: linear-gradient(90deg, rgba(40,167,69,0.05) 0%, var(--white) 100%);
}

.match-card.defaite {
  border-left-color: #dc3545;
  background: linear-gradient(90deg, rgba(220,53,69,0.05) 0%, var(--white) 100%);
}

.match-card.nul {
  border-left-color: #ffc107;
  background: linear-gradient(90deg, rgba(255,193,7,0.05) 0%, var(--white) 100%);
}

.match-card.a-venir {
  border-left-color: var(--primary);
  background: linear-gradient(90deg, rgba(139,21,56,0.05) 0%, var(--white) 100%);
}

.match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.match-date {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--dark);
  font-size: 1.1rem;
}

.match-competition {
  display: inline-block;
  background: var(--accent);
  color: var(--navy);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.match-content {
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 20px;
  align-items: center;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 15px;
}

.match-team.home {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.match-team-logo {
  width: 60px;
  height: 60px;
  background: var(--light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 4px 12px var(--shadow);
}

.match-team-info h3 {
  font-size: 1.3rem;
  color: var(--primary);
  margin: 0 0 5px 0;
  font-weight: 800;
}

.match-team-info.home h3 {
  text-align: right;
}

.match-location {
  font-size: 0.9rem;
  color: var(--gray);
}

.match-score {
  text-align: center;
  padding: 20px;
  background: var(--light);
  border-radius: 12px;
}

.score-display {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 5px;
  line-height: 1;
}

.score-display.to-come {
  font-size: 1.5rem;
  color: var(--gray);
}

.match-time {
  font-size: 1rem;
  color: var(--gray);
  font-weight: 600;
}

.match-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid var(--light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.match-stadium {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.95rem;
}

.match-actions {
  display: flex;
  gap: 10px;
}

.match-actions a {
  padding: 8px 20px;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.match-actions a:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* Statistiques matchs */
.stats-matchs {
  background: var(--white);
  padding: 40px;
  border-radius: 18px;
  box-shadow: 0 6px 25px var(--shadow);
  margin-bottom: 50px;
}

.stats-matchs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.stat-match-item {
  text-align: center;
  padding: 25px;
  background: var(--light);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-match-item:hover {
  background: var(--white);
  box-shadow: 0 4px 15px var(--shadow);
  transform: translateY(-3px);
}

.stat-match-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--primary);
  display: block;
  margin-bottom: 8px;
}

.stat-match-label {
  font-size: 0.95rem;
  color: var(--gray);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Countdown timer */
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.countdown-item {
  text-align: center;
  padding: 20px;
  background: rgba(255,255,255,0.1);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  min-width: 80px;
}

.countdown-value {
  font-size: 3rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  margin-top: 8px;
  opacity: 0.9;
}

/* Responsive */
@media(max-width: 900px) {
  .match-teams {
    flex-direction: column;
    gap: 20px;
  }

  .match-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .match-team.home {
    flex-direction: row;
    justify-content: flex-start;
  }

  .match-team-info.home h3 {
    text-align: left;
  }

  .match-details-featured {
    gap: 15px;
  }

  .match-detail-item {
    padding: 12px 20px;
  }

  .prochain-match-featured {
    padding: 30px;
  }

  .team-logo {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  .team-name {
    font-size: 1.4rem;
  }

  .countdown-value {
    font-size: 2.5rem;
  }
}

@media(max-width: 600px) {
  .match-card {
    padding: 20px;
  }

  .score-display {
    font-size: 2.5rem;
  }

  .match-actions {
    width: 100%;
    flex-direction: column;
  }

  .match-actions a {
    text-align: center;
  }
}