/* ===== Algemene stijl ===== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at top, #050505 0%, #000 90%);
  color: #f0f0f0;
  overflow-x: hidden;
}

/* ===== Header ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 60px;
  position: sticky;
  top: 0;
  background: rgba(15, 15, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 10;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
}
.logo span {
  background: linear-gradient(90deg, #9d7dff, #5f3cff);
  -webkit-background-clip: text;
  color: transparent;
}

.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,
.nav-links a.active::after {
  width: 100%;
}

.lang {
  color: #9d7dff;
  font-weight: 600;
}

/* ===== Main ===== */
main.page {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 30px;
}

h1 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 0 20px rgba(157, 125, 255, 0.5);
}
.subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #aaa;
  margin-bottom: 50px;
}

/* ===== Compact card/grid layout for History ===== */
.history-grid-section {
  padding: 30px 0 60px;
}
.history-intro .lead {
  max-width: 900px;
  margin: 0 auto 22px;
  text-align: center;
  color: #cfcfe8;
  font-size: 1.02rem;
}
.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}
.news-header h1 {
  background: linear-gradient(90deg, #9d7dff 0%, #5f3cff 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.history-card {
  background: linear-gradient(180deg, rgba(25,25,30,0.75), rgba(20,20,24,0.6));
  border: 1px solid rgba(157,125,255,0.12);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 8px 28px rgba(5,5,10,0.55), 0 0 18px rgba(95,60,255,0.03) inset;
  transition: transform 0.32s ease, box-shadow 0.32s ease, border-color 0.32s ease;
}
.news-grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.news-card {
  border: 2px solid rgba(255,255,255,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  backdrop-filter: blur(6px) saturate(120%);
  box-shadow: 0 6px 22px rgba(31, 14, 54, 0.45), inset 0 1px 0 rgba(255,255,255,0.02);
  transition: transform .22s ease, box-shadow .22s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(95,60,255,0.12), 0 4px 10px rgba(0,0,0,0.28);
}

.news-tag {
  background: linear-gradient(90deg,#00c06d,#009e50);
  color: #01110b;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}

/* ===== History hero / stats (styled to match statistieken page) ===== */
.history-hero {
  margin: 28px 0 18px;
  padding: 26px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(25,15,40,0.6), rgba(20,10,36,0.55));
  border: 2px solid rgba(157,125,255,0.12);
}
.history-hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  align-items: center;
}

.page { position: relative; z-index: 1; }

/* Use the same background as the index page */
body {
  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;
}
.history-hero h2 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 8px;
}
.history-hero p { color: #cfcfe6; margin-bottom: 12px; }
.cta-row { display:flex; gap:12px; align-items:center; }
.btn-primary { background: linear-gradient(90deg,#9d7dff,#5f3cff); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration:none; font-weight:700; }
.btn-secondary { background: rgba(255,255,255,0.04); color:#ddd; padding: 10px 14px; border-radius: 10px; text-decoration:none; font-weight:600; border:1px solid rgba(255,255,255,0.02); }

.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat-card {
  background: rgba(25,25,45,0.92);
  border: 2px solid rgba(157,125,255,0.06);
  padding: 14px 16px;
  border-radius: 12px;
  text-align: left;
}
.stat-value { font-size: 1.6rem; font-weight:800; color:#9d7dff; margin-bottom:6px; }
.stat-label { color:#cfcfe6; font-size:0.92rem; }

@media (max-width: 900px) {
  .history-hero-inner { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

.history-card:hover { transform: translateY(-6px); border-color: rgba(157,125,255,0.35); box-shadow: 0 18px 48px rgba(45,20,80,0.45); }
.history-card h3 { color: #e9e0ff; margin: 8px 0 10px; font-size: 1.05rem; }
.history-card p { color: #d8d6e8; font-size: 0.98rem; line-height: 1.5; margin: 0 0 10px; }
.card-era { display:inline-block; background:linear-gradient(90deg,#9d7dff,#5f3cff); color:#05050f; padding:6px 10px; border-radius:10px; font-weight:700; font-size:0.9rem; box-shadow:0 6px 18px rgba(95,60,255,0.12); }
.history-card details { color:#cfcfe8 }
.history-card summary { cursor:pointer; list-style:none; margin-top:8px; font-weight:600; color:#cfcfe8 }
.history-card summary::-webkit-details-marker{display:none}
.history-card details[open] summary{ color:#fff }

/* ===== 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;
}
footer a:hover {
  text-decoration: underline;
}

/* ===== Fade-in animatie ===== */
.fade-in-section {
  opacity: 0;
  transform: translateY(30px);
  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 { padding: 20px 30px; }
  main.page { padding: 0 20px; }

  .timeline-content {
    width: 100%;
    padding-left: 30px !important;
    padding-right: 30px !important;
    margin: 0 !important;
  }

  .timeline-year {
    width: 60px;
    height: 60px;
    font-size: 1.3rem;
  }
  .timeline-item:nth-child(even) .timeline-year,
  .timeline-item:nth-child(odd) .timeline-year {
    left: calc(50% - 90px) !important;
    right: auto !important;
  }
}

@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  .subtitle { font-size: 1rem; }

  .timeline-content {
    padding: 24px 20px !important;
    font-size: 0.95rem;
  }
  .timeline-year {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
    left: calc(50% - 75px) !important;
  }
  .timeline-content h3 { font-size: 1.3rem; }
}