/* Gedeelde stijl voor alle portaalpagina's. Losse pagina's, één stijlblad. */
:root {
  --accent: #ff6f3c;
  --bg: #fff8ef;
  --header-bg: #12a39a;
  --rand: #eee3d5;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Kop met de titel links en de inlogstatus rechts. */
.sdm-header {
  width: 100%;
  background: var(--header-bg);
  color: #fff;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.sdm-header a.sdm-titel { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; }
.sdm-knop {
  display: inline-block; background: #fff; color: var(--header-bg); text-decoration: none;
  padding: 0.4rem 0.9rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
}
.sdm-profiel { display: inline-flex; align-items: center; gap: 0.5rem; color: #fff; text-decoration: none; font-weight: 600; }
.sdm-profiel:hover { text-decoration: underline; }
.sdm-badge { background: var(--accent); border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.7rem; text-transform: uppercase; }
.avatar { border-radius: 50%; vertical-align: middle; background: #fff; }

main { max-width: 780px; width: 100%; padding: 2rem 1rem; }
.kaart { background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,.06); margin-bottom: 1.25rem; }
h1 { margin: 0 0 0.75rem; font-size: 1.4rem; }
h2 { margin: 0 0 0.75rem; font-size: 1.1rem; }
p { color: #555; line-height: 1.5; }

label { display: block; font-weight: 600; margin: 1rem 0 0.35rem; }
label small { font-weight: 400; color: #888; }
input, select {
  width: 100%; padding: 0.6rem; border: 1px solid #ddd; border-radius: 8px; font: inherit; background: #fff;
}
button, .knop {
  display: inline-block; background: var(--accent); color: #fff; border: none;
  padding: 0.65rem 1.1rem; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer;
  text-decoration: none; text-align: center;
}
button[disabled] { opacity: 0.55; cursor: default; }
.knop-secundair { background: #fff; color: #444; border: 1px solid #ddd; }
.knop-gevaar { background: #fff; color: #c62828; border: 1px solid #ef9a9a; }
.knoprij { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }

.fout { color: #c62828; margin-top: 0.9rem; }
.gelukt { color: #2e7d32; margin-top: 0.9rem; }
.scheiding { text-align: center; color: #aaa; margin: 1.1rem 0 0.8rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .05em; }
.klein { font-size: 0.85rem; color: #777; }
.link { background: none; border: none; padding: 0; color: var(--accent); font: inherit; text-decoration: underline; cursor: pointer; }

/* Avatarkiezer op de profielpagina. */
.avatar-keuze { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.avatar-keuze button { background: none; border: 2px solid transparent; border-radius: 12px; padding: 0.3rem; cursor: pointer; }
.avatar-keuze button[aria-pressed="true"] { border-color: var(--accent); background: #fff4ef; }

/* Tabellen (accountoverzicht). Smalle schermen mogen horizontaal scrollen binnen de kaart. */
.tabel-omhulsel { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--rand); white-space: nowrap; }
th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; color: #888; }
td.acties { display: flex; gap: 0.4rem; }
td.acties button { padding: 0.35rem 0.7rem; font-size: 0.85rem; }

/* Spelkaarten op de startpagina. */
.games { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.game-card {
  background: #fff; border-radius: 12px; padding: 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,.06);
  text-align: center; text-decoration: none; color: #222; transition: transform .15s ease; border: 2px solid transparent;
}
.game-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.game-card h3 { margin: 0 0 .5rem; color: var(--accent); }
.game-card p { margin: 0; color: #666; font-size: .9rem; }
