/* Merci Rudy — stijl
   Feestelijke, warme "prikbord met kaartjes"-look. */

:root {
  --ink: #2b2440;
  --ink-soft: #6a6180;
  --bg: #fef6ec;
  --bg-warm: #fbe9d3;
  --paper: #ffffff;
  --accent: #ff5a8c;      /* feestroze */
  --accent-2: #6c4ff0;    /* paars */
  --gold: #ffb43a;
  --line: rgba(43, 36, 64, 0.10);
  --shadow: 0 18px 40px -18px rgba(43, 36, 64, 0.45);
  --shadow-sm: 0 8px 20px -12px rgba(43, 36, 64, 0.4);
  --radius: 20px;

  /* kaartkleuren */
  --c-blush: #ffe0e9;
  --c-sky: #d9edff;
  --c-mint: #d7f5e3;
  --c-butter: #fff2c2;
  --c-lavender: #e9e0ff;
  --c-peach: #ffe2cf;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--bg-warm), transparent 60%),
    radial-gradient(1000px 500px at 100% 0%, #ffe7f0, transparent 55%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.55;
}

h1, h2, h3 { font-family: "Fraunces", Georgia, serif; line-height: 1.05; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }

/* ---------- TAALSCHAKELAAR ---------- */
.lang-switch {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 20;
  display: inline-flex;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}
.lang-btn {
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  transition: all 0.15s ease;
}
.lang-btn.is-active { background: var(--ink); color: #fff; }
@media (max-width: 620px) {
  .lang-switch { top: 10px; right: 10px; }
  .lang-btn { padding: 6px 11px; font-size: 0.8rem; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 56px;
  text-align: center;
}
.hero__inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 800;
  font-size: .8rem;
  color: var(--accent-2);
  margin: 0 0 10px;
}
.hero__title {
  font-size: clamp(3rem, 9vw, 6rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero__title span {
  color: var(--accent);
  position: relative;
  white-space: nowrap;
}
.hero__title span::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: .08em;
  height: .14em;
  background: var(--gold);
  border-radius: 999px;
  transform: rotate(-1.2deg);
  z-index: -1;
  opacity: .9;
}
.hero__subtitle {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 700;
  margin: 18px 0 0;
}
.hero__intro {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 14px auto 0;
  font-size: 1.05rem;
}
.hero__cta {
  display: inline-block;
  margin-top: 26px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 14px 26px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.hero__cta:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.hero__photo { margin: 40px auto 0; width: min(280px, 70%); }
.hero__photo-placeholder,
.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 18px;
  background: var(--paper);
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.hero__photo-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--ink-soft);
}
.hero__photo-placeholder span { font-size: 2.4rem; }
.hero__photo-placeholder small { font-weight: 700; letter-spacing: .04em; }

/* ---------- WALL ---------- */
.wall { padding: 24px 0 60px; }
.wall__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 22px;
}
.wall__head h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 0; }

.wall__sort { display: inline-flex; background: #fff; border-radius: 999px; padding: 5px; box-shadow: var(--shadow-sm); }
.sort-btn {
  border: 0; background: transparent; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--ink-soft);
  padding: 8px 16px; border-radius: 999px; transition: all .15s ease;
}
.sort-btn.is-active { background: var(--ink); color: #fff; }

.wall__status { color: var(--ink-soft); font-weight: 600; }

.wall__grid {
  columns: 3 300px;
  column-gap: 22px;
}
@media (max-width: 620px) { .wall__grid { columns: 1; } }

/* ---------- CARD ---------- */
.card {
  break-inside: avoid;
  background: var(--card-bg, var(--c-blush));
  border-radius: var(--radius);
  padding: 22px 22px 16px;
  margin: 0 0 22px;
  box-shadow: var(--shadow);
  position: relative;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .18s ease, box-shadow .18s ease;
  animation: pop .35s ease both;
}
.card:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 24px 48px -18px rgba(43,36,64,.5); }
.card::before {
  /* plakband bovenaan */
  content: "";
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 92px; height: 24px;
  background: rgba(255,255,255,.55);
  border: 1px dashed rgba(43,36,64,.18);
  border-radius: 4px;
}
.card__msg {
  font-size: 1.06rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 8px 0 16px;
}
.card__video,
.card__photo {
  width: 100%;
  border-radius: 12px;
  margin: 4px 0 14px;
  background: #000;
  display: block;
}
.card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; border-top: 1px solid rgba(43,36,64,.12); padding-top: 12px;
}
.card__author { font-weight: 800; }
.card__date { display: block; font-weight: 600; font-size: .8rem; color: var(--ink-soft); }
.like-btn {
  border: 0; cursor: pointer; font: inherit; font-weight: 800;
  background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .12s ease;
}
.like-btn:hover { transform: scale(1.06); }
.like-btn:active { transform: scale(.94); }
.like-btn.is-liked { background: var(--accent); color: #fff; }
.like-btn[disabled] { cursor: default; }

.wall__empty {
  text-align: center; color: var(--ink-soft);
  padding: 40px 20px; font-size: 1.1rem; font-weight: 600;
}

@keyframes pop {
  from { opacity: 0; transform: rotate(var(--tilt,0deg)) translateY(12px) scale(.98); }
  to   { opacity: 1; }
}

/* ---------- COMPOSER ---------- */
.composer { position: relative; z-index: 1; background: linear-gradient(180deg, transparent, rgba(255,255,255,.6)); padding: 10px 20px 80px; }
.composer__inner {
  max-width: 640px; margin: 0 auto;
  background: var(--paper);
  border-radius: 26px;
  padding: 34px clamp(20px, 5vw, 40px);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.composer__inner h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 4px; }
.composer__lead { color: var(--ink-soft); margin: 0 0 24px; }

.field { margin-bottom: 20px; }
.field > label, .field__label {
  display: block; font-weight: 800; margin-bottom: 7px;
}
.field input[type="text"],
.field textarea,
.field input[type="file"] {
  width: 100%;
  font: inherit;
  padding: 13px 15px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: #fdfcff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent-2);
  box-shadow: 0 0 0 4px rgba(108,79,240,.15);
}
.field__hint, .field__counter { display: block; font-size: .82rem; color: var(--ink-soft); margin-top: 6px; }
.field__counter { text-align: right; }

.color-picker { display: flex; gap: 12px; flex-wrap: wrap; }
.swatch { cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.swatch span {
  display: block; width: 38px; height: 38px; border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line), var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.swatch--blush span { background: var(--c-blush); }
.swatch--sky span { background: var(--c-sky); }
.swatch--mint span { background: var(--c-mint); }
.swatch--butter span { background: var(--c-butter); }
.swatch--lavender span { background: var(--c-lavender); }
.swatch--peach span { background: var(--c-peach); }
.swatch input:checked + span { transform: scale(1.15); box-shadow: 0 0 0 3px var(--accent-2), var(--shadow-sm); }
.swatch input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-2), var(--shadow-sm); }

.media-preview { margin-top: 12px; }
.media-preview video,
.media-preview img { width: 100%; border-radius: 12px; }
.media-preview video { background: #000; }

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.card-form__foot { display: flex; align-items: center; gap: 16px; margin-top: 8px; }
.submit-btn {
  border: 0; cursor: pointer; font: inherit; font-weight: 800; font-size: 1.05rem;
  background: var(--accent); color: #fff;
  padding: 15px 28px; border-radius: 999px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.submit-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.submit-btn[disabled] { opacity: .6; cursor: default; transform: none; }
#upload-progress { flex: 1; height: 10px; border-radius: 999px; overflow: hidden; }

.form-message {
  margin-top: 16px; padding: 12px 16px; border-radius: 12px; font-weight: 700;
}
.form-message.is-error { background: #ffe0e6; color: #b3123f; }
.form-message.is-success { background: var(--c-mint); color: #0f7a45; }

/* ---------- FOOTER ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 30px 20px 50px;
  color: var(--ink-soft);
  font-weight: 700;
}

/* ---------- CONFETTI ---------- */
.confetti {
  position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
}
.confetti i {
  position: absolute; top: -12vh; opacity: .85;
  animation: fall linear infinite;
  will-change: transform;
}
.confetti i svg { width: 100%; height: 100%; display: block; }
@keyframes fall {
  from { transform: translateY(-12vh) rotate(0deg); }
  to { transform: translateY(115vh) rotate(720deg); }
}
@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .card { animation: none; }
  html { scroll-behavior: auto; }
}
