/* ============================================================
   GENERAL PAGE STYLING
   ============================================================ */

body {
  margin: 0;
  padding: 0;
  text-align: center;
  font-family: "Poppins", system-ui, sans-serif;
  background: linear-gradient(135deg, #ffe7d3 0%, #ffd2d2 100%);
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin-top: 2rem;
  font-size: 2.2rem;
  font-weight: 700;
  color: #6a1b9a;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;

  max-width: 900px;
  margin: 2rem auto 0.8rem;
  padding: 1.6rem 1.4rem;

  background: rgba(255,255,255,0.55);
  border-radius: 18px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);

  text-align: left;
}

.hero-photo {
  width: 240px;
  height: 300px;
  object-fit: cover;
  object-position: 50% 4%;
  border-radius: 18px;
  border: 4px solid #ff7a00;
  box-shadow: 0 10px 28px rgba(0,0,0,0.32);
}

.hero-text {
  flex: 1;
  font-size: 1.06rem;
  color: #6a1b9a;
  line-height: 1.55;
}
.hero-text strong { color: #ff7a00; }

/* Donatieknop */
.hero-actions {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 0 0 1.8rem;
}

.donate-btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  background: linear-gradient(135deg, #ff7a00, #ffa833);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  border-radius: 30px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.25s ease;
}
.donate-btn:hover { transform: scale(1.1); }

/* ============================================================
   SPIN WHEEL
   ============================================================ */

.wheel-wrap {
  position: relative;
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#wheelCanvas {
  width: min(520px, 85vw);
  height: min(520px, 85vw);
  filter: drop-shadow(0 15px 35px rgba(0,0,0,0.25));
  border-radius: 50%;
  transition: transform 0.4s ease;
}
#wheelCanvas:hover { transform: scale(1.02); }

.pointer-svg {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  z-index: 9980;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.35));
}

/* Spin button */
.spin-btn {
  margin-top: 1.2rem;
  padding: 0.7rem 1.6rem;
  background: linear-gradient(135deg, #ff7a00, #ffa833);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}
.spin-btn:hover { transform: scale(1.1); }

/* ============================================================
   STICKY WALL (ONDERAAN PAGINA)
   ============================================================ */

.sticky-divider {
  margin-top: 3rem;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #6a1b9a;
}

.sticky-wall {
  background: rgba(255,255,255,0.55);
  border-radius: 16px;
  backdrop-filter: blur(4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  padding: 1rem;
  width: min(900px, 92vw);
  margin-inline: auto;
  text-align: left;
}

/* Sticky form */
.sticky-form { display: grid; gap: .6rem; }
.sticky-form input,
.sticky-form textarea {
  width: 100%;
  border: 2px solid rgba(0,0,0,0.06);
  border-radius: 10px;
  padding: .7rem .9rem;
  font: inherit;
  background: #fff;
}
.sticky-form textarea { min-height: 84px; resize: vertical; }

.sticky-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Kleuren */
.color-palette {
  display: flex;
  gap: .4rem;
}
.color-palette button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.15);
  cursor: pointer;
}
.color-palette button[data-color="#FFF59D"] { background:#FFF59D; }
.color-palette button[data-color="#FFD1DC"] { background:#FFD1DC; }
.color-palette button[data-color="#B2EBF2"] { background:#B2EBF2; }
.color-palette button[data-color="#C8E6C9"] { background:#C8E6C9; }
.color-palette button[data-color="#E1BEE7"] { background:#E1BEE7; }

/* Submit */
.sticky-submit {
  background: linear-gradient(135deg,#ff7a00,#ffa833);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: .6rem 1.1rem;
  font-weight: 700;
  cursor: pointer;
}

/* Notes */
.stickies {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .9rem;
}

.sticky {
  position: relative;
  padding: .8rem .7rem .9rem;
  min-height: 100px;
  border-radius: 8px;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  transform: rotate(var(--rot, 0deg));
  background: var(--bg, #FFF59D);
  animation: dropIn .25s ease-out;
}

/* ============================================================
   POPUP
   ============================================================ */

#winner-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  background: #fff;
  border-radius: 18px;
  padding: 1.8rem 1.4rem 1.2rem;
  width: min(90vw, 420px);
  text-align: center;
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  animation: popupIn 0.38s ease;
}

@keyframes popupIn {
  0% { transform: scale(0.6); opacity: 0; }
 100% { transform: scale(1); opacity: 1; }
}

.modal-card h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #6a1b9a;
}

.modal-category {
  color: #ff7a00;
  font-size: 1.2rem;
  font-weight: 600;
}

.modal-prize {
  font-size: 1.3rem;
  font-weight: 700;
  color: #7d00c5;
  margin: 1rem 0 1.4rem;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.modal-close,
.modal-camera,
.modal-download {
  padding: 0.6rem 1.4rem;
  background: linear-gradient(135deg, #ff7a00, #ffa833);
  border-radius: 25px;
  font-weight: 700;
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  text-decoration: none;
}

.modal-close:hover,
.modal-camera:hover,
.modal-download:hover {
  transform: scale(1.1);
}

/* ============================================================
   TABLET  (≤ 768px)
   ============================================================ */

@media (max-width: 768px) {

  .hero-section {
    flex-direction: column;
    text-align: center;
    padding: 1.2rem 1rem;
    gap: 1.2rem;
  }

  .hero-photo {
    width: 160px;
    height: 200px;
  }

  .sticky-divider {
    margin-top: 2rem;
  }
}

/* ============================================================
   MOBIEL  (≤ 480px)
   ============================================================ */

@media (max-width: 480px) {

  h1 {
    font-size: 1.4rem;
    margin-top: 1.2rem;
  }

  .hero-photo {
    width: 120px;
    height: 150px;
  }

  .hero-text {
    font-size: 0.92rem;
  }

  .donate-btn {
    font-size: 1rem;
    padding: 0.7rem 1.3rem;
  }

  #wheelCanvas {
    width: min(340px, 90vw);
    height: min(340px, 90vw);
  }

  .spin-btn {
    font-size: 1rem;
    padding: 0.6rem 1.2rem;
  }

  .stickies {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }

  .modal-card {
    padding: 1.2rem 1rem 1rem;
  }

  .modal-card h2 {
    font-size: 1.5rem;
  }

  .modal-actions {
    flex-wrap: wrap;
  }
}

/* ============================================================
   POINTER WOBBLE ANIMATIE
   ============================================================ */
/* Pointer wobble animatie */
.pointer-svg {
  transform-origin: 50% 100%;
}

.pointer-svg.wobble {
  animation: pointerWobble 160ms ease-out;
}

@keyframes pointerWobble {
  0%   { transform: translateX(-50%) rotate(0deg); }
  35%  { transform: translateX(-50%) rotate(var(--wobble-deg, 10deg)); }
  100% { transform: translateX(-50%) rotate(0deg); }
}
