/* =========================================================
   Paul Hamoen — AI in het onderwijs
   Thema: Funko / speels-maar-professioneel
   ========================================================= */

:root {
  --funko-yellow: #FFDE59;
  --funko-gold:   #F5B700;
  --ink:          #1C1913;
  --ink-soft:     #55503F;
  --paper:        #FBF7EF;
  --card:         #FFFFFF;
  --line:         #EAE3D2;
  --blue:         #1B5299;   /* links / primaire actie  */
  --blue-dark:    #143D73;
  --beer:         #E8963A;   /* buy-me-a-koffie accent  */
  --beer-dark:    #CE7C22;

  --display: 'Fredoka', 'Segoe UI', system-ui, sans-serif;
  --body:    'Inter', 'Segoe UI', system-ui, sans-serif;

  --wrap: 860px;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(28, 25, 19, 0.08);
  --hard-shadow: 4px 5px 0 rgba(28, 25, 19, 0.85);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- Skip link ---------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 50;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- Header / hero ---------------- */
.site-header {
  background: linear-gradient(135deg, var(--funko-yellow), var(--funko-gold));
  border-bottom: 3px solid var(--ink);
}

.site-header .wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 40px 24px;
  display: flex;
  align-items: center;
  gap: 36px;
}

.hero-text { flex: 1 1 340px; }

.eyebrow {
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.7;
  margin: 0 0 10px;
}

.site-header h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 14px;
}

.site-header p {
  margin: 0;
  max-width: 46ch;
  color: #3a3526;
}

/* Funko als 'collectible' in de hero */
.hero-figure {
  flex: 0 0 auto;
  width: 190px;
  aspect-ratio: 1 / 1; /* Force square ratio for all hero images */
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  border: 3px solid var(--ink);
  box-shadow: 6px 8px 0 rgba(28, 25, 19, 0.9);
  transform: rotate(-2deg);
}
.hero-figure img { 
  display: block; 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}

/* ---------------- Navigatie ---------------- */
.site-nav {
  background: var(--funko-gold);
  border-bottom: 3px solid var(--ink);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-nav ul {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
  list-style: none;
  display: flex;
  gap: 6px;
}

.site-nav a {
  display: inline-block;
  padding: 14px 16px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

.site-nav a:hover { background: rgba(28, 25, 19, 0.08); }

.site-nav a[aria-current="page"] {
  border-bottom-color: var(--ink);
}

/* ---------------- In aanbouw ---------------- */
.notice {
  background: #FFF7DE;
  border-bottom: 1px solid #EFE2BC;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.notice p {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 10px 24px;
}
.notice strong { color: var(--ink); font-weight: 600; }

/* ---------------- Content ---------------- */
main { max-width: var(--wrap); margin: 0 auto; padding: 8px 24px 24px; }

.block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 30px;
  margin: 28px 0;
}

.block h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.block h2::before {
  content: "";
  width: 22px;
  height: 6px;
  border-radius: 3px;
  background: var(--funko-gold);
  transform: translateY(-4px);
}

.block p { margin: 0 0 14px; }
.block p:last-child { margin-bottom: 0; }

/* ---------------- Whack-a-Factor game ---------------- */
.game-page canvas#game {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  background: #000;
  touch-action: none;
}

.lead { font-size: 1.1rem; color: var(--ink-soft); }

.list-plain { margin: 0; padding-left: 1.15rem; }
.list-plain li { margin-bottom: 12px; }
.list-plain li:last-child { margin-bottom: 0; }
.list-plain li::marker { color: var(--funko-gold); }

/* Callout: voorwaarden / werkwijze */
.concept {
  background: #FFF7DE;
  border: 1px solid #F0DE9B;
  border-left: 5px solid var(--funko-gold);
  border-radius: 12px;
  padding: 20px 22px;
  color: var(--ink-soft);
}
.concept p { margin: 0 0 12px; }
.concept p:last-child { margin-bottom: 0; }
.concept strong { color: var(--ink); }

/* ---------------- Aanbod ---------------- */
.aanbod {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.aanbod-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--funko-gold);
  border-radius: 12px;
  padding: 20px 22px;
}

.aanbod-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 8px;
}

.aanbod-card p { margin: 0 0 10px; }
.aanbod-card p:last-child { margin-bottom: 0; }

.aanbod-card .voor-wie {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
}

/* ---------------- Portfolio ---------------- */
.group-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 64px 0 16px;
}
.block > .group-title:first-of-type { margin-top: 4px; }

.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.project-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--hard-shadow);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0;
}
.project-card h3 a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.project-card h3 a:hover { color: var(--blue); text-decoration-style: solid; }

.project-card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

.project-meta {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pill {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink-soft);
  white-space: nowrap;
}
.pill-live      { background: var(--funko-yellow); border-color: var(--ink); color: var(--ink); }
.pill-prototype { background: #E7EFF9; border-color: #B9CCE6; color: var(--blue-dark); }
.pill-onderzoek { background: #F1ECF7; border-color: #D6C9E6; color: #4B3A66; }

.item-date {
  font-family: var(--display);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}

.project-card .go {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--blue);
  text-decoration: none;
}
.project-card .go:hover { text-decoration: underline; }

/* Detailpagina van een project */
.project-facts {
  margin: 0 0 18px;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  font-size: 0.95rem;
}
.project-facts dt {
  font-family: var(--display);
  font-weight: 500;
  color: var(--ink-soft);
}
.project-facts dd { margin: 0; }

.backlink {
  display: inline-block;
  font-family: var(--display);
  font-size: 0.9rem;
  color: var(--blue);
  text-decoration: none;
  margin-bottom: 4px;
}
.backlink:hover { text-decoration: underline; }

/* ---------------- Funko-plank (over-pagina) ---------------- */
.shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 4px;
}

.figure-card {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--hard-shadow);
  margin: 0;
}
.figure-card img { display: block; width: 100%; height: auto; }
.figure-card .cap {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.95rem;
  text-align: center;
  padding: 8px 6px 10px;
  background: var(--funko-yellow);
  border-top: 2px solid var(--ink);
}

/* ---------------- Game ---------------- */
.game-intro { margin: 0 0 16px; color: var(--ink-soft); }

.game-section {
  display: flex;
  justify-content: center;
  padding: 4px 0 2px;
}
#game {
  width: 100%;
  max-width: 420px;
  height: auto;
  background: #000;
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow);
  touch-action: manipulation;
}

/* ---------------- Footer / colofon ---------------- */
.site-footer {
  background: var(--ink);
  color: #EDE7D6;
  margin-top: 40px;
}
.site-footer .wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 30px 24px 36px;
}
.colofon {
  font-size: 0.9rem;
  line-height: 1.7;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.colofon li { white-space: nowrap; }
.colofon strong { font-family: var(--display); font-weight: 500; }
.site-footer a { color: var(--funko-yellow); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-tagline {
  font-size: 0.82rem;
  color: #b7b09c;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
}

/* ---------------- WIP-O-Meter ---------------- */
.wip-meter {
  margin-top: 16px;
}

.wip-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.wip-bar-bg {
  background: var(--line);
  height: 10px;
  border-radius: 5px;
  border: 2px solid var(--ink);
  overflow: hidden;
  width: 100%;
}

.wip-bar-fill {
  background: var(--funko-gold);
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease-out;
}


/* ---------------- Collector Grid & Cards ---------------- */
.collector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

/* De kaart zelf (het doosje) */
.collector-card {
  text-decoration: none;
  color: var(--ink);
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  box-shadow: var(--hard-shadow);
  height: 100%;
}

.collector-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(28, 25, 19, 0.15);
}

/* Het 'venster' in de doos (de unboxing look) */
.card-window {
  aspect-ratio: 1 / 1;
  background: var(--line);
  border-bottom: 3px solid var(--ink);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Een subtiele glans over het venster */
.card-window::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, rgba(255,255,255,0) 45%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 55%);
  transform: rotate(25deg);
  transition: transform 0.5s ease;
}

.collector-card:hover .card-window::after {
  transform: rotate(25deg) translate(20%, 20%);
}

/* De tekst onderaan de kaart */
.card-label {
  padding: 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-label .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
}

.card-label .what {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* De 'Featured' kaart (groter) */
.featured-card {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.featured-card .card-window {
  flex: 0 0 200px;
  aspect-ratio: auto;
}

@media (max-width: 640px) {
  .featured-card {
    flex-direction: column;
  }
  .featured-card .card-window {
    flex: 0 0 150px;
  }
}


/* ---------------- Maintenance Notice ---------------- */
.maintenance-notice {
  background: var(--funko-yellow);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px 24px;
  margin: 24px 0 32px;
  font-weight: 500;
  box-shadow: var(--hard-shadow);
  line-height: 1.4;
}


/* ---------------- Mobile Responsive ---------------- */

/* ---------------- Header Utility ---------------- */
.header-utility {
  display: flex;
  justify-content: flex-end;
  padding: 8px 24px;
  background: var(--line);
  border-bottom: 2px solid var(--ink);
}

.devlog-link {
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.devlog-link:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  /* Header: Zet tekst en afbeelding onder elkaar en centreer ze */
  .site-header .wrap {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
  }

  .hero-text {
    flex: 1 1 auto;
  }

  /* Navigatie: Zorg dat menu-items naar de volgende regel springen als het niet past */
  .site-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  /* Footer: Centreer de informatie op mobiel voor een betere look */
  .colofon {
    justify-content: center;
    text-align: center;
  }
}

