/* ===== Basis ===== */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  width: 100%;
  overflow: hidden;
  font-family: -apple-system, "Helvetica Neue", "Segoe UI", sans-serif;
  background: linear-gradient(160deg, #ffe3ec 0%, #ffc4d4 45%, #ffb3c6 100%);
  color: #4a0d1d;
  -webkit-font-smoothing: antialiased;
}

body {
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ===== Schermen ===== */
.screen {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.screen.active {
  display: flex;
  opacity: 1;
}

/* ===== Wachtwoordscherm ===== */
.password-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 36px 28px;
  width: 100%;
  max-width: 320px;
  box-shadow: 0 20px 60px rgba(160, 30, 60, 0.25);
  text-align: center;
}
.mini-heart {
  font-size: 48px;
  color: #ee2b48;
  text-shadow: 0 4px 12px rgba(238, 43, 72, 0.4);
  margin-bottom: 8px;
}
.password-card h1 {
  font-size: 22px;
  font-weight: 600;
  color: #8a0a1c;
  margin-bottom: 20px;
}
#passwordInput {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #ffb3c6;
  border-radius: 14px;
  font-size: 18px;
  text-align: center;
  background: #fff;
  color: #4a0d1d;
  outline: none;
  transition: border-color 0.2s;
}
#passwordInput:focus { border-color: #ee2b48; }
#passwordSubmit {
  margin-top: 16px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff5577, #d4002a);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(212, 0, 42, 0.35);
  transition: transform 0.15s;
}
#passwordSubmit:active { transform: scale(0.97); }
.error-msg {
  margin-top: 12px;
  color: #c8002a;
  font-size: 14px;
  min-height: 18px;
}
.shake { animation: shake 0.4s; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* ===== Hart-scherm ===== */
.heart-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
}
.heart-container {
  width: 220px;
  height: 200px;
  position: relative;
  cursor: pointer;
  filter: drop-shadow(0 18px 28px rgba(180, 20, 50, 0.45));
  animation: heartPulse 1.6s ease-in-out infinite;
}
.heart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
#heartLeft, #heartRight {
  transform-origin: 100px 100px;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.2s;
}
.heart-container.broken #heartLeft,
.heart-container.broken #heartRight {
  transition: transform 1.2s cubic-bezier(0.6, -0.2, 0.4, 1.2), opacity 1.2s;
}
.shine { transition: opacity 0.6s; }

.heart-container.bump { animation: heartBump 0.35s ease; }
@keyframes heartBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@keyframes heartPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* Hart breken */
.heart-container.broken { animation: none; }
.heart-container.broken #heartLeft {
  transform: translate(-90px, 120px) rotate(-35deg);
  opacity: 0;
}
.heart-container.broken #heartRight {
  transform: translate(90px, 120px) rotate(35deg);
  opacity: 0;
}
.heart-container.broken .shine { opacity: 0; }

.hint {
  font-size: 18px;
  color: #8a0a1c;
  font-weight: 500;
  text-align: center;
  opacity: 0.85;
}
.click-again {
  display: none;
  font-size: 20px;
  font-weight: 600;
  animation: bounceIn 0.5s ease;
}
.click-again.show { display: block; }
@keyframes bounceIn {
  0% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0.85; }
}
.letters {
  font-size: 26px;
  font-weight: 600;
  color: #c8002a;
  text-align: center;
  min-height: 36px;
  letter-spacing: 1px;
  text-shadow: 0 2px 6px rgba(255, 255, 255, 0.6);
}
.letters span {
  display: inline-block;
  animation: letterPop 0.4s ease;
}
@keyframes letterPop {
  0% { transform: scale(0) translateY(-10px); opacity: 0; }
  60% { transform: scale(1.3) translateY(0); opacity: 1; }
  100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* ===== Zonen-scherm ===== */
#screen-sons {
  background:
    linear-gradient(160deg, rgba(255,227,236,0.92) 0%, rgba(255,180,200,0.88) 100%),
    url("assets/photos/IMG_3026.jpeg") 35% center/cover no-repeat;
}
.marloes-wrap {
  position: relative;
  width: 280px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.floating-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.floating-hearts span {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 28px;
  color: #ee2b48;
  text-shadow: 0 4px 10px rgba(238, 43, 72, 0.45);
  will-change: transform, opacity;
}
@keyframes floatUp {
  0% {
    transform: translate(calc(var(--x) - 50%), 0) scale(calc(var(--s) * 0.5));
    opacity: 0;
  }
  10% { opacity: 0.95; }
  80% { opacity: 0.6; }
  100% {
    transform: translate(calc(var(--x) - 50% + 30px), -700px) scale(var(--s)) rotate(15deg);
    opacity: 0;
  }
}
.marloes-photo {
  position: relative;
  z-index: 1;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background-image: url("assets/photos/IMG_0323.jpeg");
  background-size: cover;
  background-position: center 25%;
  border: 5px solid #fff;
  box-shadow: 0 12px 32px rgba(180, 20, 50, 0.35);
  margin-bottom: 20px;
  padding: 0;
  cursor: pointer;
  animation: fadeUp 0.7s ease backwards;
  transition: transform 0.2s;
}
button.marloes-photo:active { transform: scale(0.95); }
.sons-title {
  font-size: 28px;
  color: #8a0a1c;
  margin-bottom: 32px;
  font-weight: 600;
  animation: fadeUp 0.6s ease 0.1s backwards;
}
.sons {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
}
.son-card {
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(180, 20, 50, 0.2);
  transition: transform 0.2s;
  animation: fadeUp 0.6s ease backwards;
}
.son-card:nth-child(1) { animation-delay: 0.1s; }
.son-card:nth-child(2) { animation-delay: 0.25s; }
.son-card:active { transform: scale(0.95); }
.son-photo {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 4px solid #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
.photo-rens {
  background-image: url("assets/photos/IMG_1413%20kopie.jpg");
  background-size: cover;
  background-position: center 30%;
}
.photo-stijn {
  background-image: url("assets/photos/IMG_0903.jpeg");
  background-size: cover;
  background-position: center 30%;
}
.son-name {
  font-size: 22px;
  font-weight: 600;
  color: #4a0d1d;
}
@keyframes fadeUp {
  0% { transform: translateY(20px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ===== Persoonlijke pagina's ===== */
.son-page {
  justify-content: flex-start;
  padding-top: 60px;
}
.son-page h2 {
  font-size: 26px;
  color: #8a0a1c;
  margin-bottom: 20px;
}
.back-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.7);
  border: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  color: #8a0a1c;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.back-btn:active { transform: scale(0.95); }
.son-content {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.video-placeholder {
  width: 100%;
  aspect-ratio: 9/16;
  background: rgba(255,255,255,0.6);
  border: 2px dashed #ee2b48;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8a0a1c;
  font-size: 14px;
  text-align: center;
  padding: 16px;
}
.son-video {
  width: 100%;
  max-height: 70vh;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 12px 28px rgba(180, 20, 50, 0.25);
}
.son-message {
  font-size: 16px;
  color: #4a0d1d;
  line-height: 1.5;
  text-align: center;
  padding: 0 8px;
}

