/* ==========================================================================
   Hub-homepagina — doelgroepkaarten + speelse emoji-achtergrond.
   Bouwt op de Leerlab-huisstijl (styles.css).
   ========================================================================== */

/* Decoratieve emoji's, zacht en verstrooid achter de inhoud. */
.emoji-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.emoji-bg span {
  position: absolute; font-size: clamp(28px, 6vw, 52px); opacity: 0.12;
  filter: saturate(1.1); animation: emoji-float 9s ease-in-out infinite;
}
.emoji-bg span:nth-child(1)  { top: 6%;  left: 8%;  animation-delay: 0s; }
.emoji-bg span:nth-child(2)  { top: 14%; left: 82%; animation-delay: .6s; }
.emoji-bg span:nth-child(3)  { top: 26%; left: 30%; animation-delay: 1.2s; }
.emoji-bg span:nth-child(4)  { top: 34%; left: 66%; animation-delay: 1.8s; }
.emoji-bg span:nth-child(5)  { top: 46%; left: 12%; animation-delay: 2.4s; }
.emoji-bg span:nth-child(6)  { top: 52%; left: 88%; animation-delay: 3s; }
.emoji-bg span:nth-child(7)  { top: 62%; left: 40%; animation-delay: 3.6s; }
.emoji-bg span:nth-child(8)  { top: 70%; left: 74%; animation-delay: 4.2s; }
.emoji-bg span:nth-child(9)  { top: 78%; left: 18%; animation-delay: 4.8s; }
.emoji-bg span:nth-child(10) { top: 84%; left: 56%; animation-delay: 5.4s; }
.emoji-bg span:nth-child(11) { top: 10%; left: 50%; animation-delay: 6s; }
.emoji-bg span:nth-child(12) { top: 40%; left: 92%; animation-delay: 6.6s; }
.emoji-bg span:nth-child(13) { top: 90%; left: 88%; animation-delay: 7.2s; }
.emoji-bg span:nth-child(14) { top: 58%; left: 4%;  animation-delay: 7.8s; }
.emoji-bg span:nth-child(15) { top: 22%; left: 6%;  animation-delay: 8.4s; }
@keyframes emoji-float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%      { transform: translateY(-14px) rotate(4deg); }
}
@media (prefers-reduced-motion: reduce) { .emoji-bg span { animation: none; } }

/* De inhoud boven de achtergrond. */
.wrap { position: relative; z-index: 1; }

.hub-head { text-align: center; max-width: 620px; margin: 8px auto 32px; }
.hub-head h1 {
  font-size: clamp(28px, 6vw, 42px); line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 14px; font-weight: 800; text-transform: uppercase;
}
.hub-head .lead { color: var(--ink); font-size: 17px; margin: 0; }

.hub-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .hub-grid { grid-template-columns: 1fr; } }

.hub-card {
  display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 2.5px solid var(--ink); border-radius: var(--radius);
  padding: 28px 26px 24px; box-shadow: 0 6px 0 var(--accent, var(--pink));
  transition: transform .14s ease, box-shadow .14s ease;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: 0 10px 0 var(--accent, var(--pink)); }
.hub-card:focus-visible { outline: 3px solid var(--accent, var(--pink)); outline-offset: 3px; }
.hub-emoji { font-size: 44px; line-height: 1; }
.hub-tag {
  display: inline-block; align-self: flex-start; margin-top: 6px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: var(--accent, var(--pink)); padding: 4px 11px; border-radius: 999px;
}
.hub-card h2 { margin: 6px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.hub-card p { margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.5; flex: 1; }
.hub-go { margin-top: 10px; font-weight: 800; font-size: 16px; color: var(--pink-deep); }
.hub-card:hover .hub-go { text-decoration: underline; text-underline-offset: 3px; }
