/* Geluidenbingo — alle kleuren komen uit config.php ($theme) via CSS-variabelen. */

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.wrap { max-width: 560px; margin: 0 auto; padding: 0 14px 24px; }

.site-header {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 8px 14px;
  margin-bottom: 16px;
}

h1 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
h2 { font-size: 17px; font-weight: 600; margin: 0; }
p  { margin: 6px 0 12px; }
a  { color: var(--c-accent); }

.muted { color: var(--c-text-muted); font-size: 13px; }

.panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.panel-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 600; }

label { font-size: 14px; color: var(--c-text-muted); display: block; margin: 10px 0 4px; }

select, input[type="text"], input[type="url"], input[type="password"], input[type="number"] {
  width: 100%;
  padding: 9px 10px;
  font-size: 15px;
  border: 1px solid var(--c-border-strong);
  border-radius: 8px;
  background: var(--c-surface);
  color: var(--c-text);
}

button, .btn {
  display: inline-block;
  width: 100%;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-primary-text);
  background: var(--c-primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
button:hover, .btn:hover { background: var(--c-primary-dark); }
button:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-ghost {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border-strong);
}
.btn-ghost:hover { background: var(--c-bg); }

/* Rasterkeuze op het startscherm */
.grid-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0; }
.grid-picker label {
  margin: 0;
  border: 1px solid var(--c-border-strong);
  border-radius: 8px;
  padding: 9px 4px;
  text-align: center;
  font-size: 14px;
  color: var(--c-text);
  cursor: pointer;
}
.grid-picker input { display: none; }
.grid-picker input:checked + span { font-weight: 600; }
.grid-picker label:has(input:checked) { border: 2px solid var(--c-accent); padding: 8px 3px; }
.grid-picker label.disabled { opacity: 0.45; cursor: not-allowed; }

/* Spelleider-scherm */
.game-meta { display: flex; justify-content: space-between; font-size: 14px; color: var(--c-text-muted); margin-bottom: 10px; }
.sound-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: 12px;
  padding: 22px 16px 18px;
  text-align: center;
  margin-bottom: 16px;
}
.sound-card .symbol { font-size: 68px; line-height: 1.15; }
.sound-card .name { font-size: 19px; font-weight: 600; margin: 6px 0 14px; }

.play-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 40px;
  line-height: 1;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.play-btn:hover { background: none; }
.play-btn.small { font-size: 26px; }

.played-list { display: flex; flex-direction: column; gap: 6px; }
.played-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 15px;
}
.played-row .symbol { font-size: 24px; }
.played-row .name { flex: 1; }

/* Footer */
.site-footer { border-top: 1px solid var(--c-border); background: var(--c-surface); margin-top: 24px; }
.footer-links { display: flex; justify-content: center; gap: 18px; padding: 10px; font-size: 13px; }
.footer-links a { color: var(--c-text-muted); }
.ad-slot { min-height: 60px; padding: 10px; text-align: center; background: var(--c-bg); }

.consent {
  position: sticky;
  bottom: 0;
  background: var(--c-surface);
  border-top: 1px solid var(--c-border-strong);
  padding: 12px 14px;
  font-size: 14px;
}
.consent-buttons { display: flex; gap: 8px; }
.consent-buttons button { width: auto; flex: 1; padding: 9px; }

/* Beheer */
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; background: var(--c-surface); }
table.admin th, table.admin td { border: 1px solid var(--c-border); padding: 6px 8px; text-align: left; vertical-align: top; }
table.admin th { background: var(--c-bg); }
.ok { color: var(--c-primary-dark); font-weight: 600; }
.warn { color: var(--c-text-muted); }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--c-text); font-size: 14px; }
.flash { border: 1px solid var(--c-primary-dark); border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; font-size: 14px; background: var(--c-surface); }

@media (min-width: 700px) {
  .wrap.wide { max-width: 900px; }
}

/* Spelvariant-tegels op het startscherm */
.tegels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .tegels { grid-template-columns: repeat(3, 1fr); } }
.tegel {
  display: block;
  background: var(--c-bg);
  border: 1px solid var(--c-border-strong);
  border-radius: 12px;
  padding: 14px 8px;
  text-align: center;
  color: var(--c-text);
  text-decoration: none;
}
.tegel:hover { background: var(--c-surface); }
.tegel-icon { font-size: 36px; line-height: 1.15; }
.tegel-naam { font-weight: 600; font-size: 14px; margin: 4px 0 2px; }
.tegel-aantal { font-size: 12px; color: var(--c-text-muted); }
