:root {
  --bg:#0f1015;
  --panel:#151622;
  --panel-2:#1a1b29;
  --line:#23243a;
  --text:#e8e7fd;
  --muted:#b8b7d6;
  --purple:#C595FF; /* accent */
  --purple-2:#9d7fff;
}

* {
  box-sizing:border-box;
}
html,body {
  height:100%;
}
body {
  margin:0;
  background: var(--bg);
  color:var(--text);
  font-family:'League Spartan',system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

main {
  margin-top:80px; /* iets groter / kleiner wat jij mooi vindt */
}

/* Layout helpers */
.container {
  width:min(1200px, 92%);
  margin-inline:auto;
}

/* Topbar */
.topbar {
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:999;
  backdrop-filter:saturate(1.2) blur(6px);
  background:rgba(15,16,21,.75);
  border-bottom:1px solid var(--line);
}
.topbar-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
}
.brand {
  font-weight:800;
  letter-spacing:.4px;
  text-transform:uppercase;
}
.nav a {
  color:var(--text);
  text-decoration:none;
  margin-left:22px;
  opacity:.9;
  line-height:32px;     /* ← voeg toe */
  display:inline-block; /* ← zodat line-height netjes werkt */
}
.nav a:hover {
  color:var(--purple);
}
.nav a.active{
  color:var(--purple);
  opacity:1;
}

.brand a {
  color:var(--text);
  text-decoration:none;
  font-weight:800;
  letter-spacing:.4px;
  text-transform:uppercase;
}
.brand a:hover {
  color:var(--purple);
}

/* Logo nog ff tussendoor plaatsen */

.brand a {
    display: flex;
    align-items: center;
    gap: 8px; /* ruimte tussen logo en tekst */
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.brand-logo {
    height: 28px;      /* pas grootte hier aan */
    width: auto;
    display: block;
}

/* Hero */
.hero {
  padding:8px 0 40px;
}
.hero-grid { 
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  gap:48px;
  align-items:center;
}
.hero-media {
  height:60%;
  display:flex;
  align-items:stretch;
}
.hero-media img {
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:10px;
  box-shadow:0 10px 40px rgba(0,0,0,.55);
}
.hero-copy h1 {
  font-size:48px;
  line-height:1.04;
  margin:0 0 8px;
  font-weight:800;
}
.hero-copy h2 {
  font-size:22px;
  opacity:.85;
  margin:0 0 18px;
  font-weight:700;
}
.lead {
  color:var(--muted);
  line-height:1.45;
  font-size:18px;
  margin:0 0 22px;
}

.status-cards {
  display:flex;
  flex-wrap:wrap;
  gap:14px;
  margin:24px 0 18px;
}
.status-cards .card {
  background:linear-gradient(180deg, var(--panel), var(--panel-2));
  border:1px solid var(--line);
  border-radius:10px;
  padding:14px 16px;
  min-width:160px;
}
.status-cards .k {
  display:block;
  font-size:12px;
  color:#9aa0c6;
  letter-spacing:.3px;
}
.status-cards .v {
  font-size:20px;
  font-weight:800;
  margin-top:2px;
}
.state {
  font-weight:800;
}
.ok {
  color:#45d675;
}
.bad {
  color:#ff5975;
}

.cta-row {
  display:flex;
  gap:14px;
  margin:16px 0 0;
}
.btn {
  display:inline-block;
  text-decoration:none;
  font-weight:800;
  letter-spacing:.2px;
  padding:14px 20px;
  border-radius:10px;
  border:2px solid transparent;
}
.btn-primary {
  background:var(--purple);
  color:#1a0930;
}
.btn-primary:hover {
  filter:brightness(1.05);
}
.btn-ghost {
  background:transparent;
  border-color:var(--purple);
  color:var(--purple);
}
.btn-ghost:hover {
  background:rgba(197,149,255,.1);
}

/* Sections */
.section {
  padding:64px 0;
}
.section-head {
  margin-bottom:22px;
}
.section-head h3 {
  margin:0;
  font-size:28px;
}
.section-head p {
  margin:6px 0 0;
  color:var(--muted);
}

/* Highlights grid */
.card-grid {
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:16px;
}
.h-card {
  background:linear-gradient(180deg, var(--panel), var(--panel-2));
  border:1px solid var(--line);
  border-radius:12px;
  padding:18px;
  min-height:140px;
}
.h-card h4 {
  margin:0 0 8px;
  font-size:20px;
}
.h-card p {
  margin:0;
  color:var(--muted);
  line-height:1.4;
}

/* Discord callout */
.section-accent {
  background:linear-gradient(180deg, rgba(197,149,255,.08), rgba(197,149,255,.02));
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.discord-wrap {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.btn-lg {
  padding:16px 24px;
}

/* Team */
.team-grid {
  display:grid;
  grid-template-columns: repeat(4,1fr);
  gap:16px;
}
.team-card {
  background:linear-gradient(180deg, var(--panel), var(--panel-2));
  border:1px solid var(--line);
  border-radius:12px;
  padding:18px;
  text-align:center;
}
.team-card .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--panel-2);
  background-size: cover;
  background-position: center;
  margin: 0 auto 12px;
  border: 2px solid var(--line);
}
.team-card h5 {
  margin:0 0 4px;
  font-size:18px;
}
.team-card span {
  color:var(--muted);
}

/* Footer */
.site-footer {
  border-top:1px solid var(--line);
  margin-top:64px;
}
.footer-grid {
  display:grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap:18px;
  padding:24px 0;
}
.footer-grid h5,
.footer-grid h4 {
  margin:0 0 8px;
}
.footer-grid ul {
  list-style:none;
  padding:0;
  margin:0;
}
.footer-grid a {
  color:var(--text);
  opacity:.85;
  text-decoration:none;
}
.footer-grid a:hover {
  color:var(--purple);
}
.footer-bottom {
  border-top:1px solid var(--line);
  padding:16px 0 28px;
  opacity:.7;
  font-size:14px;
}

/* Responsive */
@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .discord-wrap {
    flex-direction:column;
    align-items:flex-start;
  }
  .card-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .team-grid {
    grid-template-columns: repeat(2,1fr);
  }
}
@media (max-width: 560px) {
  .card-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .cta-row {
    flex-direction:column;
  }
}

/* Hamburger */
.burger {
  display:none;
  width:32px;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  cursor:pointer;
  background:none;
  border:none;
}
.burger span {
  display:block;
  height:3px;
  background:var(--text);
  border-radius:2px;
  transition:.3s;
}
.burger.open span:nth-child(1) {
  transform:translateY(8px) rotate(45deg);
}
.burger.open span:nth-child(2) {
  opacity:0;
}
.burger.open span:nth-child(3) {
  transform:translateY(-8px) rotate(-45deg);
}

/* responsive menu slide */
@media (max-width:900px) {
  .topbar-inner {
    position:relative;
  }
  .topbar.menu-open {
    padding-bottom:200px; /* tweak afstand tot je menu inhoud */
    transition:padding-bottom .35s;
  }
  .nav {
    position:absolute;
    top:100%;
    left:0;
    width:100%;
    background:var(--panel-2);
    border-bottom:1px solid var(--line);
    display:flex;
    flex-direction:column;
    padding:0;
    max-height:0;
    overflow:hidden;
    transition:max-height .35s ease;
  }
  .nav.open {
    /* geen max-height 350px meer — JS gaat vullen */
  }
  .nav a {
    padding:12px 0;
    margin:0;
    text-align:center;
  }
  .burger {
    display:flex;
  }
  main.menu-push {
    margin-top:350px;
    transition:margin-top .35s;
  }
}

/* Popup-styling voor spelerlijst */
.modal {
  display:flex;                /* ← belangrijk! */
  justify-content:center;
  align-items:center;
  position:fixed;
  z-index:1000;
  left:0;
  top:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.6);
  visibility:hidden;           /* ← verberg standaard */
  opacity:0;
  transition:opacity .3s ease, visibility .3s ease;
}

.modal.show {                  /* ← zichtbaar als .show-class actief is */
  visibility:visible;
  opacity:1;
}

.modal-content {
  background:var(--panel-2);
  border:1px solid var(--line);
  border-radius:12px;
  padding:24px;
  width:min(420px, 90%);
  box-shadow:0 10px 40px rgba(0,0,0,.5);
  color:var(--text);
  position:relative;
}

.modal-content h3 {
  margin-top:0;
  margin-bottom:12px;
}

.modal-content .close {
  position:absolute;
  right:16px;
  top:12px;
  font-size:24px;
  cursor:pointer;
  color:var(--muted);
}

.modal-content .close:hover {
  color:var(--purple);
}

/* spelerlijst */
#playerList {
  list-style:none;
  padding:0;
  margin:0;
  max-height:300px;       /* ← hoogte limiet: +/- 12–15 namen */
  overflow-y:auto;        /* ← maakt scrollbar als lijst te lang wordt */
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

#playerList li {
  padding:8px 0;
  border-bottom:1px solid var(--line);
}

#playerList li:last-child {
  border-bottom:none;
}

/* scrollbar stijl (optioneel, mooi bij donkere thema’s) */
#playerList::-webkit-scrollbar {
  width:6px;
}
#playerList::-webkit-scrollbar-thumb {
  background:var(--purple);
  border-radius:4px;
}
#playerList::-webkit-scrollbar-track {
  background:var(--panel);
}

html {
  overflow-y: scroll;          /* scrollbar altijd zichtbaar */
  scrollbar-gutter: stable;    /* moderne browsers → geen layoutshift */
}

.modal.show {
  display: flex;
}

.modal-open {
  overscroll-behavior: contain;
}

.info-icon {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  width:16px;
  height:16px;
  font-size:10px;
  font-weight:700;
  margin-left:6px;
  border-radius:50%;
  border:1px solid var(--muted);
  color:var(--muted);
  cursor:pointer;
  vertical-align:middle;
  transform:translateY(-1px); /* subtiel omhoog hele cirkel */
  transition:all .2s;
}
.info-icon:hover {
  color:var(--purple);
  border-color:var(--purple);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255,255,255,0.3);
    animation: fadeIn .25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(.95); }
    to { opacity: 1; transform: scale(1); }
}
