/* ===== Algemene stijl ===== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;700&display=swap");

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  /* Use the global stadium background from css/style.css for consistency */
  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.06);
}
.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;
}
.team-logo{ width:64px; height:44px; border-radius:8px; background-size:cover; background-position:center; margin-bottom:8px; }

nav a {
  font-size: 1.05rem;
  color: #bbb;
  text-decoration: none;
  margin: 0 12px;
  position: relative;
  transition: color 0.25s ease;
}
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%; }
.match-details{ padding:7px 10px; border-radius:8px; background:transparent; border:1px solid rgba(157,125,255,0.06); color:#d0c8f8; cursor:pointer; }
.match-details:hover{ background: rgba(157,125,255,0.04); color:#fff; }

.lang {
  color: #aaa;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 0;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: #bbb;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #9d7dff;
  transition: width 0.3s ease;
}
.nav-links a:hover::after {
  width: 100%;
}

/* ===== Hoofdsectie ===== */
main.page {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 20px;
}

h1 {
  text-align: left;
  font-size: 2.2rem;
  margin: 0 0 18px 0;
  color: #f7f7fb;
  font-weight: 700;
}

.matches-controls { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; }
.filter-row{ display:flex; gap:8px; }
.filter-select{ background: rgba(255,255,255,0.02); color:#ddd; border:1px solid rgba(255,255,255,0.04); padding:8px 12px; border-radius:8px; }

.filter-btn{ background: transparent; border:1px solid rgba(255,255,255,0.04); color:#cfcddf; padding:8px 12px; border-radius:8px; cursor:pointer; font-weight:600; }
.filter-btn.active{ background: linear-gradient(90deg,#9d7dff33,#5f3cff22); color:#fff; border-color: rgba(157,125,255,0.28); box-shadow: 0 8px 20px rgba(95,60,255,0.06); }

/* ===== Wedstrijden grid ===== */
.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 36px;
}

.match-card {
  background: rgba(20,20,30,0.88);
  border-radius: 16px;
  padding: 20px;
  border: 2px solid rgba(157,125,255,0.16);
  box-shadow: 0 14px 50px rgba(10,8,20,0.65), 0 0 0 0 rgba(157,125,255,0);
  transition: transform 0.32s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.32s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(18px) scale(0.995);
}

.match-card.fade-in-section { animation: cardIn 420ms cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }

.match-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 120px rgba(95,60,255,0.18), 0 0 60px rgba(157,125,255,0.12) inset;
  border-color: rgba(157,125,255,0.36);
}

.match-card p { margin: 0; font-size: 0.95rem; color: #d7d7df; }

.match-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(157,125,255,0.16), transparent 40%);
  opacity: 0;
  transition: opacity 0.36s ease, transform 0.6s ease;
  z-index: 0;
}
.match-card:hover::before {
  opacity: 1;
  transform: scale(1.02) translateY(-4px);
}

.teams {
  display:flex; align-items:center; justify-content:space-between; gap:10px; margin:8px 0 4px;
}

.teams .team-name, .team-name {
  font-size: 1rem; color:#e9e9ef; font-weight:600; text-align:center; flex:1; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}

.team img { width: 48px; height: 48px; object-fit:cover; border-radius:8px; margin-bottom:6px; }

.team-logo{ width:64px; height:44px; border-radius:8px; background-size:cover; background-position:center; margin-bottom:8px; }

.match-top{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.match-status{ font-size:0.8rem; color:#d0d6e6; background:rgba(255,255,255,0.02); padding:6px 10px; border-radius:10px; }
.match-meta{ display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:10px; }
.match-meta .league{ color:#c7d7c7; font-weight:600; font-size:0.95rem; }
.match-details{ padding:8px 12px; border-radius:10px; background:transparent; border:1px solid rgba(157,125,255,0.08); color:#e7dbff; cursor:pointer; transition: transform 180ms ease, box-shadow 200ms ease, background 200ms ease; }
.match-details:hover{ background:linear-gradient(135deg,#9d7dff33,#5f3cff22); color:#fff; transform:translateY(-3px); box-shadow: 0 8px 30px rgba(95,60,255,0.12); }

/* Modal styles (local to wedstrijden page) */
.modal-overlay{ position:fixed; inset:0; display:grid; place-items:center; background:rgba(0,0,0,0.64); z-index:1200; opacity:0; pointer-events:none; transition:opacity .26s ease; backdrop-filter:blur(6px); }
.modal-overlay.active{ opacity:1; pointer-events:all; }
.modal-content{ width:92%; max-width:760px; background:linear-gradient(180deg, rgba(18,18,24,0.98), rgba(12,12,18,0.94)); border-radius:12px; padding:20px 22px; border:1px solid rgba(157,125,255,0.12); box-shadow:0 40px 120px rgba(95,60,255,0.12); transform: translateY(8px) scale(0.985); opacity:0; transition: transform 340ms cubic-bezier(.2,.9,.25,1), opacity 260ms ease; }
.modal-overlay.active .modal-content{ transform: translateY(0) scale(1); opacity:1; }
.modal-close{ position:absolute; top:16px; right:16px; background:transparent; border:1px solid rgba(255,255,255,0.02); color:#cdbef9; width:36px; height:36px; border-radius:50%; font-size:22px; cursor:pointer; }
.modal-top{ display:flex; align-items:center; gap:14px; margin-bottom:12px; }
.modal-team{ display:flex; flex-direction:column; align-items:center; gap:8px; width:38%; }
.modal-logo{ width:120px; height:76px; background-size:cover; background-position:center; border-radius:8px; }
.modal-team-name{ color:#fff; font-weight:700; }
.modal-score{ font-size:28px; font-weight:800; color:#fff; }
.modal-meta{ display:flex; gap:14px; color:#9aa; font-size:0.92rem; margin-bottom:10px; flex-wrap:wrap; }


.team-name {
  font-size: 0.95rem;
  color: #ccc;
  max-width: 120px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 0 12px;
  align-self: center;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 40px;
  font-size: 0.9rem;
  background: #080808;
  color: #777;
  border-top: 1px solid rgba(255,255,255,0.08);
}

footer a {
  color: #9d7dff;
  text-decoration: none;
  margin: 0 8px;
}
footer a:hover {
  text-decoration: underline;
}

/* ===== Fade-in animatie ===== */
.fade-in-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsief ===== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    padding: 20px;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .teams {
    flex-direction: column;
    gap: 10px;
  }

  .score {
    margin: 10px 0;
  }
}

/* entrance animation */
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
