/* ===== Fonts & Basis ===== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, rgba(5, 5, 15, 0.85) 0%, rgba(15, 15, 35, 0.85) 100%), 
              url('../img/stadium.png') center/cover fixed;
  background-attachment: fixed;
  color: #f0f0f0;
  overflow-x: hidden;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 60px;
  position: sticky;
  top: 0;
  z-index: 10;
}
header.glass {
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo span {
  background: linear-gradient(90deg, #9d7dff, #5f3cff);
  -webkit-background-clip: text;
  color: transparent;
}

nav a {
  margin: 0 20px;
  color: #bbb;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}
nav a:hover {
  color: #fff;
}
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #9d7dff;
  transition: width 0.3s ease;
}
nav a:hover::after {
  width: 100%;
}

.lang {
  color: #aaa;
  cursor: pointer;
}

.logo span {
  background: linear-gradient(90deg, #9d7dff, #5f3cff);
  -webkit-background-clip: text;
  color: transparent;
}

nav a {
  text-decoration: none;
  color: #bbb;
  margin: 0 15px;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

nav a:hover,
nav a.active {
  color: #fff;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #9d7dff;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ===== Pagina Titel ===== */
h1 {
  text-align: center;
  font-size: 3.2rem;
  margin: 70px 0 50px;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 0 30px rgba(157, 125, 255, 0.5);
  animation: slideInDown 0.7s ease;
}

/* ===== Statistieken Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 35px;
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 25px;
}

.stat-card {
  background: rgba(25, 25, 25, 0.9);
  border-radius: 20px;
  padding: 30px;
  border: 2px solid rgba(157, 125, 255, 0.2);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(157, 125, 255, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.stat-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(157, 125, 255, 0.4);
  border-color: rgba(157, 125, 255, 0.6);
}
.stat-card:hover::before {
  opacity: 1;
}

.stat-card h2 {
  color: #9d7dff;
  margin-bottom: 15px;
}

.stat-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.stat-card li {
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #ddd;
}

.stat-card li span {
  color: #fff;
  font-weight: 500;
}

/* ===== Grafiek Sectie ===== */
.chart {
  max-width: 900px;
  margin: 0 auto 100px;
  background: rgba(25, 25, 25, 0.85);
  padding: 40px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 25px rgba(0, 0, 0, 0.5);
}

.chart h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #9d7dff;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 40px;
  background: #080808;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a {
  color: #9d7dff;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ===== Fade Animatie ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Responsief ===== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 20px;
  }

  nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }

  .stats-grid {
    gap: 25px;
  }

  .chart {
    padding: 25px;
  }
}
/* ===== CHART SECTION ===== */
.chart {
  background: linear-gradient(135deg, rgba(50, 20, 80, 0.4) 0%, rgba(30, 10, 60, 0.4) 100%);
  border: 2px solid rgba(157, 125, 255, 0.25);
  border-radius: 24px;
  padding: 60px;
  margin: 40px;
  text-align: center;
}

.chart h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #fff;
  font-weight: 800;
}

/* ===== PERFORMANCE GRID ===== */
.performance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  background: none;
  border: none;
  padding: 0 40px;
  margin: 40px 0;
}

.performance-card {
  background: rgba(25, 25, 45, 0.9);
  border: 2px solid rgba(0, 192, 109, 0.2);
  border-radius: 18px;
  padding: 25px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.performance-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 192, 109, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.performance-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 192, 109, 0.3);
  border-color: rgba(0, 192, 109, 0.6);
}

.performance-card:hover::before {
  opacity: 1;
}

.metric-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 15px;
}

.metric-icon {
  font-size: 2rem;
}

.metric-header h3 {
  color: #00c06d;
  margin: 0;
  font-size: 1.1rem;
}

.metric-bar {
  background: rgba(157, 125, 255, 0.1);
  border-radius: 10px;
  height: 12px;
  margin: 15px 0;
  overflow: hidden;
}

.bar-fill {
  background: linear-gradient(90deg, #00c06d, #00e680);
  height: 100%;
  transition: width 0.6s ease;
}

.metric-value {
  color: #aaa;
  font-size: 0.9rem;
  margin: 0;
}

/* ===== SEASON RECORDS ===== */
.season-records {
  background: linear-gradient(135deg, rgba(80, 30, 50, 0.3) 0%, rgba(60, 20, 40, 0.3) 100%);
  border: 2px solid rgba(255, 100, 150, 0.25);
  border-radius: 24px;
  padding: 60px;
  margin: 40px;
  text-align: center;
}

.season-records h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #fff;
  font-weight: 800;
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-bottom: 0;
}

.record-card {
  background: rgba(25, 25, 45, 0.9);
  border: 2px solid rgba(255, 100, 150, 0.2);
  border-radius: 18px;
  padding: 30px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.record-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 100, 150, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.record-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(255, 100, 150, 0.3);
  border-color: rgba(255, 100, 150, 0.6);
}

.record-card:hover::before {
  opacity: 1;
}

.record-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff6496, #ff4080);
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.record-card h3 {
  color: #fff;
  font-size: 1rem;
  margin: 12px 0;
}

.record-value {
  font-size: 2rem;
  font-weight: 800;
  color: #ff6496;
  margin: 10px 0;
}

.record-detail {
  color: #aaa;
  font-size: 0.9rem;
  margin: 10px 0;
}

.record-date {
  color: #999;
  font-size: 0.85rem;
  margin: 0;
}

/* ===== LEAGUE COMPARISON ===== */
.league-comparison {
  background: linear-gradient(135deg, rgba(80, 60, 20, 0.3) 0%, rgba(60, 40, 10, 0.3) 100%);
  border: 2px solid rgba(255, 200, 0, 0.25);
  border-radius: 24px;
  padding: 60px;
  margin: 40px;
}

.league-comparison h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.comparison-table {
  background: rgba(25, 25, 45, 0.8);
  border: 2px solid rgba(255, 200, 0, 0.2);
  border-radius: 18px;
  overflow: hidden;
}

.table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 20px;
  background: linear-gradient(135deg, rgba(157, 125, 255, 0.2), rgba(255, 200, 0, 0.1));
  padding: 20px;
  font-weight: 800;
  color: #ffc800;
  border-bottom: 2px solid rgba(255, 200, 0, 0.2);
}

.table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
  transition: all 0.3s ease;
}

.table-row:hover {
  background: rgba(157, 125, 255, 0.1);
}

.col-league {
  color: #fff;
  font-weight: 600;
}

.col-stat {
  color: #aaa;
  text-align: center;
}

/* ===== PREDICTION ===== */
.prediction {
  background: linear-gradient(135deg, rgba(30, 20, 80, 0.4) 0%, rgba(50, 30, 100, 0.4) 100%);
  border: 2px solid rgba(157, 125, 255, 0.25);
  border-radius: 24px;
  padding: 60px;
  margin: 40px;
}

.prediction h2 {
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #fff;
  font-weight: 800;
  text-align: center;
}

.prediction-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 35px;
  margin-bottom: 0;
}

.prediction-card {
  background: rgba(25, 25, 45, 0.9);
  border: 2px solid rgba(157, 125, 255, 0.2);
  border-radius: 18px;
  padding: 35px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.prediction-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(157, 125, 255, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.prediction-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(157, 125, 255, 0.3);
  border-color: rgba(157, 125, 255, 0.6);
}

.prediction-card:hover::before {
  opacity: 1;
}

.prediction-card h3 {
  color: #9d7dff;
  font-size: 1.2rem;
  margin-bottom: 25px;
}

.prediction-odds {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.odds-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.team {
  color: #fff;
  font-weight: 600;
  min-width: 120px;
}

.odds-bar {
  flex: 1;
  background: rgba(157, 125, 255, 0.1);
  border-radius: 8px;
  height: 10px;
  overflow: hidden;
}

.odds-fill {
  background: linear-gradient(90deg, #9d7dff, #5f3cff);
  height: 100%;
  transition: width 0.6s ease;
}

.percentage {
  color: #9d7dff;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}

@media (max-width: 1400px) {
  .performance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .records-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .prediction-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .performance-grid {
    grid-template-columns: 1fr;
  }
  
  .records-grid {
    grid-template-columns: 1fr;
  }
  
  .table-header,
  .table-row {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}
