* {
  box-sizing: border-box;
}

body {
  margin: 1em;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  display: none;
}

span p {
  display: inline;
}

:root {
  --accent: #faa627;
}

/* ======================
 THEMA’S
 ====================== */

.theme-light {
  --bg: #f5f5f5;
  --tile-bg: #ffffff;
  --border: #e1e1e1;
  --border-hover: #c8c8c8;
  --text-primary: #242424;
  --text-secondary: #424242;
  --text-muted: #6b6b6b;
  --icon-bg: #edebe9;

  --svg-tsaam: #e3a52a;
  --svg-accent-1: #d5e8d2;
  --svg-accent-2: #f5e480;
  --svg-accent-3: #fcecd4;
  --svg-accent-4: #ecb457;
}

.theme-dark {
  --bg: #1f1f1f;
  --tile-bg: #2b2b2b;
  --border: #3a3a3a;
  --border-hover: #555555;
  --text-primary: #ffffff;
  --text-secondary: #d1d1d1;
  --text-muted: #a0a0a0;
  --icon-bg: #3a3a3a;

  --svg-tsaam: #e3a52a;
  --svg-accent-1: #7fbf8e;
  --svg-accent-2: #e6d25c;
  --svg-accent-3: #e0b98a;
  --svg-accent-4: #d18a2f;
}

.theme-contrast {
  --bg: #000000;
  --tile-bg: #000000;
  --border: #ffffff;
  --border-hover: var(--accent);
  --text-primary: #ffffff;
  --text-secondary: #ffffff;
  --text-muted: #ffffff;
  --icon-bg: #000000;

  --svg-tsaam: #e3a52a;
  --svg-accent-1: #00e676;
  --svg-accent-2: #00b0ff;
  --svg-accent-3: #ff9100;
  --svg-accent-4: #ff5252;
}

/* ======================
 SVG KLEUREN
 ====================== */
.stroke-tsaam {
  stroke: var(--svg-tsaam);
}

.stroke-accent-1 {
  stroke: var(--svg-accent-1);
}

.stroke-accent-2 {
  stroke: var(--svg-accent-2);
}

.stroke-accent-3 {
  stroke: var(--svg-accent-3);
}

.stroke-accent-4 {
  stroke: var(--svg-accent-4);
}

.fill-tsaam {
  fill: var(--svg-tsaam);
}

.fill-accent-1 {
  fill: var(--svg-accent-1);
}

.fill-accent-2 {
  fill: var(--svg-accent-2);
}

.fill-accent-3 {
  fill: var(--svg-accent-3);
}

.fill-accent-4 {
  fill: var(--svg-accent-4);
}

/* ======================
 GRID – mobile first
 ====================== */

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 6px;
}

/* Tablet */
@media (min-width: 600px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media (min-width: 1440px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ======================
 TEGEL
 ====================== */

.tile {
  display: block;
  background-color: var(--tile-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
  min-width: 0;
}

.tile:hover {
  border-color: var(--accent);
}

.tile:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ======================
 HEADER
 ====================== */

.tile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  min-width: 0;
}

.tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background-color: var(--icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.tile-icon svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

/* ======================
 TEKST
 ====================== */

.tile-title,
.tile-description,
.tile-location {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tile-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 0 4px;
  min-width: 0;
}

.tile-description {
  font-size: 13px;
  line-height: 1.4;
  margin: 0 0 12px 0;
  padding: 0 0 0 16px;
  color: var(--text-secondary);
}

.tile-location {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.tile:hover .tile-location,
.tile:focus .tile-location {
  color: var(--accent);
}

/* ======================
 SECTIETITEL
 ====================== */

.tile-section {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 6px 4px;
  margin-top: 12px;
  border-bottom: 1px solid var(--border);
}

/* ======================
 HOME TEGEL
 ====================== */

.tile-home {
  padding: 10px 12px;
  border-style: dashed;
  opacity: 0.9;
}

.tile-home .tile-icon {
  width: 36px;
  height: 36px;
}

.tile-home .tile-icon svg {
  width: 22px;
  height: 22px;
}

.tile-home .tile-title {
  font-size: 16px;
  font-weight: 600;
}

.tile-home .tile-description {
  display: none;
}

.tile-home .tile-title::before {
  content: "←";
  margin-right: 6px;
  color: var(--accent);
  font-weight: 700;
}

/* ======================
 EXTRA
 ====================== */
.blur {
  filter: blur(4px);
}

.blur:hover {
  cursor: pointer;
}
