:root {
  --bg: #090b0f;
  --surface: #12151c;
  --surface-accent: #1a1f26;
  --border: rgba(255, 255, 255, 0.08);
  --primary: #ff4757;
  --primary-glow: rgba(255, 71, 87, 0.2);
  --text-main: #ffffff;
  --text-dim: #94a3b8;
  --success: #2ed573;
  --warning: #ffa502;
  --danger: #ff4757;
  --info: #1e90ff;
  --input-bg: #090b0f;
}

html[data-theme="light"] {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --surface-accent: #f8fafc;
  --border: #e2e8f0;
  --primary: #e11d48;
  --text-main: #0f172a;
  --text-dim: #64748b;
  --input-bg: #f1f5f9;
}

/* BASIS & LAYOUT (sticky footer) */
* { box-sizing: border-box; margin: 0; padding: 0; transition: all 0.2s ease; }
html, body { height: 100%; }

header {
  overflow: visible;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container { max-width: 1300px; margin: 0 auto; padding: 0 20px; width: 100%; }
section { margin-bottom: 50px; }
h2 {
  font-family: 'Outfit';
  font-size: 26px;
  margin-bottom: 25px;
  border-left: 5px solid var(--primary);
  padding-left: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* HEADER */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.logo { font-family: 'Outfit'; font-size: 24px; font-weight: 800; text-transform: uppercase; flex-shrink: 0; }
.logo span { color: var(--primary); }
.header-nav { display: flex; gap: 20px; list-style: none; flex-grow: 1; margin-left: 40px; }
.header-nav li a {
  text-decoration: none;
  color: var(--text-dim);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.header-nav li a:hover, .header-nav li a.active { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 15px; }
.theme-toggle { background: var(--surface-accent); border: 1px solid var(--border); padding: 8px 12px; border-radius: 8px; cursor: pointer; color: var(--text-main); }

/* --- ALERTS --- */
.alert {  padding: 15px 20px; border-radius: 12px; margin-bottom: 15px;  display: flex; align-items: center; gap: 15px; font-size: 14px; font-weight: 600; border: 1px solid transparent; }
.alert-success { background: rgba(46, 213, 115, 0.1); border-color: var(--success); color: var(--success); }
.alert-info { background: rgba(30, 144, 255, 0.1); border-color: var(--info); color: var(--info); }

.logo {
  position: relative;
  margin-left: 0px; 
  margin-bottom: -44px; 
}

.logo img {
  display: block;
  height: 82px; /* pas aan naar wens */
}		
/* MAIN GRID */
.main-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-top: 40px;
}

/* TOP 50 LIST */
.top-list-container { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.top-list-row {
  display: grid;
  grid-template-columns: 60px 480px 1fr 120px;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.top-list-row:last-child { border-bottom: none; }
.top-list-row:hover { background: var(--surface-accent); }

.rank-number { font-family: 'Outfit'; font-size: 22px; font-weight: 800; color: var(--text-dim); text-align: center; }
.rank-number.top3 { color: var(--primary); }

.banner-box { width: 468px; height: 60px; background: var(--input-bg); border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.banner-box img { width: 100%; height: 100%; object-fit: cover; }

.game-info-mini h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.game-stats-mini { display: flex; gap: 15px; font-size: 12px; color: var(--text-dim); }
.game-stats-mini b { color: var(--text-main); }

.btn-vote-sm {
  background: var(--primary);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  width: 100%;
}

/* FORUM */
.forum-list { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.forum-item { display: flex; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--border); gap: 20px; }
.forum-icon { width: 40px; height: 40px; background: var(--input-bg); border-radius: 10px; display: grid; place-items: center; color: var(--primary); }

/* FORM */
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.input-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 11px; font-weight: 800; color: var(--text-dim); text-transform: uppercase; margin-bottom: 5px; }
.input-control { width: 100%; padding: 12px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 8px; color: var(--text-main); font-family: inherit; }

/* SHOUTBOX */
.shoutbox { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; height: 300px; overflow-y: auto; margin-bottom: 10px; }
.shout { margin-bottom: 15px; font-size: 13px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.shout b { color: var(--primary); }

/* SIDEBAR */
.widget { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px; margin-bottom: 20px; }
.widget h4 { font-family: 'Outfit'; font-size: 14px; margin-bottom: 15px; color: var(--primary); text-transform: uppercase; }

/* FOOTER */
.site-footer {
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 1200px) {
  .top-list-row { grid-template-columns: 50px 1fr 100px; }
  .banner-box { display: none; }
  .main-grid { grid-template-columns: 1fr; }
}

.votelayer{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.voteModal{
  width: min(760px, 95vw);
  background: #fff;
  border-radius: 6px;
  padding: 26px 28px;
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
  text-align: center;
}

.voteModal h2{
  margin: 0 0 12px 0;
  font-size: 28px;
  color: #444;
}

.voteCloseLink{
  color: #c10000;
  font-weight: 700;
  text-decoration: none;
}

.voteCloseLink:hover{
  text-decoration: underline;
}

.btn-vote-green {
  background: linear-gradient(135deg, #1fa463, #2ecc71);
  color: #fff;
  border: none;
}
.btn-vote-green:hover {
  background: linear-gradient(135deg, #178b53, #27ae60);
}

.btn-vote { background: var(--primary); color: white; border: none; padding: 12px; border-radius: 10px; font-weight: 800; cursor: pointer; text-transform: uppercase; }

.top-list-row.premium {
  position: relative;
  border: 2px solid #f5c76a;
  box-shadow: 0 0 12px rgba(245,199,106,.55);
  background: linear-gradient(90deg, rgba(245,199,106,.08), transparent);
}

.premium-badge {
  margin-left: 6px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 800;
  color: #2b1b00;
  background: linear-gradient(90deg,#ffd77a,#f5b942);
  border-radius: 4px;
}

.rank-number.premium-rank {
  color: #f5b942;
  font-size: 20px;
}

/* --- MOBILE NAV TOGGLE (hamburger) --- */
.nav-toggle{
  display:none;
  width:44px;
  height:44px;
  background: var(--surface-accent);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor:pointer;
  padding:0;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}

.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  background: var(--text-main);
  border-radius:2px;
}

/* --- MOBILE HEADER LAYOUT --- */
@media (max-width: 900px){

  /* iets minder spacing op mobiel */
  header{ padding: 10px 0; }

  .nav-inner{
    gap: 12px;
  }

  /* logo wat kleiner zodat alles past */
  .logo img{
    height: 56px; /* was 82px */
  }

  /* hamburger zichtbaar */
  .nav-toggle{
    display:flex;
    margin-left: auto; /* duwt hem naar rechts */
  }

  /* acties (uitloggen) op mobiel verbergen of later in menu zetten */
  .header-actions{
    display:none;
  }

  /* menu als dropdown */
  .header-nav{
    display:none;           /* standaard dicht */
    position:absolute;
    top: calc(100% + 10px);
    left: 20px;
    right: 20px;
    margin: 0;
    padding: 12px;
    flex-direction:column;
    gap: 10px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    z-index: 2000;
  }

  .header-nav.is-open{
    display:flex;
  }

  .header-nav li a{
    display:block;
    padding: 12px 12px;
    border-radius: 10px;
    background: var(--surface-accent);
  }

  /* nav-inner moet positie hebben voor absolute dropdown */
  .nav-inner{
    position: relative;
  }
}

@media (max-width: 900px){
  .logo{
    margin-bottom: 0; /* voorkomt rare overlap op mobiel */
  }
}