/* Moslim Vrijwilliger — Components
   Sticker-cartoon aesthetic: bold outlines, offset shadows, chunky display type. */

/* ── Buttons ─────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: var(--fs-button);
  font-weight: var(--fw-black);
  line-height: 1;
  text-decoration: none;
  border: var(--stroke);
  background: var(--c-surface);
  color: var(--c-ink);
  cursor: pointer;
  box-shadow: var(--shadow-sticker);
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background-color var(--duration-base) var(--ease-out),
              color var(--duration-base) var(--ease-out);
  white-space: nowrap;
  text-transform: none;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 0 var(--c-ink);
  text-decoration: none;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 3px 0 0 var(--c-ink);
}

.btn--primary  { background: var(--c-pink);  color: var(--c-surface); }
.btn--primary:hover { background: var(--c-pink-dark); color: var(--c-surface); }

.btn--secondary { background: var(--c-surface); color: var(--c-ink); }
.btn--secondary:hover { background: var(--c-yellow); }

.btn--blue { background: var(--c-blue); color: var(--c-surface); }
.btn--blue:hover { background: var(--c-blue-dark); color: var(--c-surface); }

.btn--lime { background: var(--c-lime); color: var(--c-ink); }
.btn--lime:hover { background: var(--c-lime-dark); color: var(--c-surface); }

.btn--gold,
.btn--yellow { background: var(--c-yellow); color: var(--c-ink); }
.btn--gold:hover,
.btn--yellow:hover { background: var(--c-yellow-dark); }

.btn--ghost {
  background: transparent;
  box-shadow: none;
}
.btn--ghost:hover { background: var(--c-yellow); transform: translate(-1px, -1px); box-shadow: 3px 4px 0 0 var(--c-ink); }

.btn--on-dark {
  background: var(--c-surface);
  color: var(--c-ink);
  border-color: var(--c-surface);
  box-shadow: 4px 5px 0 0 var(--c-yellow);
}
.btn--on-dark:hover {
  background: var(--c-yellow);
  color: var(--c-ink);
  box-shadow: 6px 7px 0 0 var(--c-yellow);
}

.btn--large {
  padding: 18px 32px;
  font-size: 1.0625rem;
  box-shadow: var(--shadow-card);
}
.btn--large:hover { box-shadow: 8px 9px 0 0 var(--c-ink); }
.btn--large:active { box-shadow: 3px 4px 0 0 var(--c-ink); }

.btn--block { width: 100%; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; transform: none;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* ── Tags & badges ──────────────────────────── */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: var(--fs-tag);
  font-weight: var(--fw-black);
  line-height: 1.2;
  letter-spacing: 0.02em;
  background: var(--c-lime-soft);
  color: var(--c-ink);
  border: 2px solid var(--c-ink);
  text-decoration: none;
  text-transform: uppercase;
}

.tag--gold   { background: var(--c-yellow-soft); }
.tag--coral  { background: var(--c-coral-soft); }
.tag--purple { background: var(--c-purple-soft); color: var(--c-ink); }
.tag--blue   { background: var(--c-blue); color: var(--c-surface); }
.tag--pink   { background: var(--c-pink); color: var(--c-surface); }
.tag--forest { background: var(--c-blue); color: var(--c-surface); }

/* ── Cards ──────────────────────────────────── */

.card {
  background: var(--c-surface);
  border: var(--stroke);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: var(--s-4);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}

.card--cream  { background: var(--c-cream); }
.card--mint   { background: var(--c-lime-soft); }
.card--pink   { background: var(--c-pink-soft); }
.card--yellow { background: var(--c-yellow-soft); }
.card--blue   { background: var(--c-blue); color: var(--c-surface); }
.card--blue h3, .card--blue h4 { color: var(--c-surface); }

.card--linked { cursor: pointer; }
.card--linked:hover {
  transform: translate(-3px, -3px);
  box-shadow: 9px 10px 0 0 var(--c-ink);
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-pill);
  background: var(--c-yellow);
  color: var(--c-ink);
  border: var(--stroke);
  box-shadow: var(--shadow-sticker);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-3);
  font-weight: var(--fw-black);
  font-size: 1.375rem;
}

.card__icon--pink   { background: var(--c-pink); color: var(--c-surface); }
.card__icon--lime   { background: var(--c-lime); }
.card__icon--blue   { background: var(--c-blue); color: var(--c-surface); }
.card__icon--coral  { background: var(--c-coral); color: var(--c-surface); }
.card__icon--purple { background: var(--c-purple); color: var(--c-surface); }

.card h3 { margin-bottom: var(--s-2); }
.card p:last-child { margin-bottom: 0; }

/* ── Forms ──────────────────────────────────── */

.form__field { margin-bottom: var(--s-4); }

.form__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-black);
  color: var(--c-ink);
  margin-bottom: var(--s-2);
}

.form__help {
  display: block;
  font-size: var(--fs-small);
  color: var(--c-text-muted);
  margin-top: 6px;
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  color: var(--c-ink);
  background: var(--c-surface);
  border: var(--stroke);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sticker);
  transition: box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-fast) var(--ease-out);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.6;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  outline: none;
  box-shadow: 6px 7px 0 0 var(--c-ink), 0 0 0 4px var(--c-yellow);
  transform: translate(-1px, -1px);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--c-text-subtle);
  font-weight: var(--fw-medium);
}

.form__input[aria-invalid="true"],
.form__textarea[aria-invalid="true"] {
  box-shadow: 4px 5px 0 0 var(--c-error);
}

.form__error {
  display: block;
  color: var(--c-error);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  margin-top: 6px;
}

.form__checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
  cursor: pointer;
  font-weight: var(--fw-medium);
}

.form__checkbox input {
  margin-top: 4px;
  width: 20px;
  height: 20px;
  accent-color: var(--c-pink);
  flex: 0 0 auto;
}

.choice-card {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 18px;
  border: var(--stroke);
  border-radius: var(--r-md);
  background: var(--c-surface);
  box-shadow: var(--shadow-sticker);
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  font-weight: var(--fw-bold);
}

.choice-card:hover {
  transform: translate(-2px, -2px);
  background: var(--c-yellow-soft);
  box-shadow: 6px 7px 0 0 var(--c-ink);
}

.choice-card input {
  width: 20px;
  height: 20px;
  accent-color: var(--c-pink);
  flex: 0 0 auto;
  margin: 0;
}

.choice-card:has(input:checked) {
  background: var(--c-yellow);
  transform: translate(-2px, -2px);
  box-shadow: 6px 7px 0 0 var(--c-ink);
}

/* ── Nav ────────────────────────────────────── */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-cream);
  border-bottom: 3px solid var(--c-ink);
}

.site-nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: var(--s-2);
  min-height: 84px;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-ink);
  font-weight: var(--fw-black);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.site-nav__brand img { height: 60px; width: auto; max-width: 200px; display: block; }

@media (min-width: 640px) {
  .site-nav__brand img { height: 72px; max-width: 240px; }
}

.site-nav nav { display: none; }

.site-nav__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: var(--s-5);
  align-items: center;
}

.site-nav__links li { margin: 0; }

.site-nav__links a {
  color: var(--c-ink);
  font-size: var(--fs-nav);
  font-weight: var(--fw-bold);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 3px solid transparent;
}

.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  color: var(--c-blue);
  border-bottom-color: var(--c-pink);
}

.site-nav__actions {
  display: flex;
  gap: var(--s-2);
  align-items: center;
}

.site-nav__toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--c-surface);
  border: var(--stroke);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sticker);
  cursor: pointer;
}

.site-nav__toggle span {
  display: block;
  width: 20px;
  height: 3px;
  background: var(--c-ink);
  border-radius: 2px;
}

@media (min-width: 960px) {
  .site-nav nav { display: block; }
  .site-nav__toggle { display: none; }
}

/* Mobile drawer */
.site-nav[data-open="true"] nav {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--c-cream);
  border-bottom: 3px solid var(--c-ink);
  box-shadow: 0 12px 0 -3px var(--c-ink);
  padding: var(--s-3) var(--gutter-mobile) var(--s-4);
  animation: navSlideDown 200ms var(--ease-out);
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.site-nav[data-open="true"] .site-nav__links {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

.site-nav[data-open="true"] .site-nav__links a {
  display: block;
  padding: 14px 0;
  border-bottom: 2px solid var(--c-ink-10);
  border-top: none;
  font-size: 1rem;
}

.site-nav[data-open="true"] .site-nav__links li:last-child a { border-bottom: none; }

/* ── Footer ─────────────────────────────────── */

.site-footer {
  background: var(--c-blue);
  color: var(--c-surface);
  padding-block: var(--s-7) var(--s-5);
  margin-top: var(--s-8);
  border-top: 4px solid var(--c-ink);
}

.site-footer a {
  color: var(--c-surface);
  text-decoration: none;
  font-weight: var(--fw-bold);
}

.site-footer a:hover {
  color: var(--c-yellow);
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
  color: var(--c-surface);
  margin-bottom: var(--s-3);
}

.site-footer__brand img { height: 80px; width: auto; max-width: 240px; display: block; }

.site-footer__tagline {
  color: rgba(255, 255, 255, 0.85);
  max-width: 320px;
  font-weight: var(--fw-medium);
}

.site-footer h4 {
  color: var(--c-yellow);
  font-size: var(--fs-small);
  font-weight: var(--fw-black);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 0;
  padding: 6px 0;
}

.site-footer__bottom {
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  padding-top: var(--s-4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.65);
  font-weight: var(--fw-medium);
}

/* ── Details / accordion ────────────────────── */

details.card {
  padding: 0;
  overflow: hidden;
}

details.card > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-4);
  list-style: none;
  cursor: pointer;
  font-weight: var(--fw-black);
  position: relative;
  transition: background var(--duration-fast) var(--ease-out);
}

details.card > summary::-webkit-details-marker { display: none; }

details.card > summary::after {
  content: "";
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--c-yellow);
  border: 2.5px solid var(--c-ink);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D1B2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-size: 18px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform var(--duration-base) var(--ease-out);
}

details.card[open] > summary::after { transform: rotate(180deg); }
details.card > summary:hover { background: var(--c-yellow-soft); }

details.card > p,
details.card > div {
  padding: 0 var(--s-4) var(--s-4);
  margin: 0;
}

/* ── Alerts ─────────────────────────────────── */

.alert {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  font-weight: var(--fw-bold);
  border: var(--stroke);
  box-shadow: var(--shadow-sticker);
  margin-bottom: var(--s-4);
}

.alert--success { background: var(--c-lime); }
.alert--warning { background: var(--c-yellow); }
.alert--error   { background: var(--c-coral-soft); color: var(--c-error); }

/* ── Decorative bits ────────────────────────── */

.sparkle {
  position: absolute;
  pointer-events: none;
  font-size: 1.5rem;
  line-height: 1;
  animation: sparkle-twinkle 2.4s var(--ease-out) infinite alternate;
}

@keyframes sparkle-twinkle {
  0% { transform: scale(1) rotate(0); opacity: 1; }
  100% { transform: scale(1.15) rotate(8deg); opacity: 0.85; }
}
