/* ============================================================
   STYLE.CSS — Do You Love Me?
   Font: Playfair Display (display) + Nunito (body)
   Palette:
     --bg:       #FFF0F5  (lavender blush)
     --card:     #FFFFFF
     --rose:     #E8587A  (tomato rose — main accent)
     --rose-lt:  #F7A8BB  (light rose)
     --rose-dk:  #C0395A  (hover)
     --text:     #3D1A26
     --muted:    #9B6375
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:      #FFF0F5;
  --card:    #FFFFFF;
  --rose:    #E8587A;
  --rose-lt: #F7A8BB;
  --rose-dk: #C0395A;
  --text:    #3D1A26;
  --muted:   #9B6375;
  --radius:  20px;
  --shadow:  0 8px 40px rgba(232,88,122,.18);
}

/* ── Base ── */
html, body {
  min-height: 100%;
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ── Pages ── */
.page {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  position: relative;
}
.page.active { display: flex; }

/* ── Floating hearts background ── */
.hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
/* Hearts are injected by JS */
.heart-particle {
  position: absolute;
  bottom: -60px;
  font-size: 1.4rem;
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(-15deg); opacity: .6; }
  80%  { opacity: .3; }
  100% { transform: translateY(-110vh) rotate(25deg); opacity: 0; }
}

/* ── Card ── */
.card {
  position: relative;
  z-index: 1;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 48px 40px 40px;
  max-width: 480px;
  width: calc(100% - 32px);
  text-align: center;
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn {
  from { transform: scale(.85); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.emoji-top {
  font-size: 2.8rem;
  margin-bottom: 12px;
  display: block;
  animation: wiggle 2s ease-in-out infinite;
}
@keyframes wiggle {
  0%,100% { transform: rotate(-8deg) scale(1); }
  50%      { transform: rotate(8deg) scale(1.12); }
}

/* ── Question ── */
.question {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 28px;
}
.question em {
  font-style: italic;
  color: var(--rose);
}

/* ── Media slot ── */
.media-slot {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 32px;
  background: #fff0f5;
  border: 2px dashed var(--rose-lt);
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.media-slot img,
.media-slot video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}
/* Placeholder text (shown when image fails / no file set) */
.media-slot .placeholder-text {
  display: none;
  padding: 24px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.6;
}
.media-slot.placeholder img,
.media-slot.placeholder video { display: none; }
.media-slot.placeholder .placeholder-text { display: block; }

/* ── Buttons ── */
.buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

#btn-yes {
  font-family: 'Nunito', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 16px 44px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--rose), #f7819a);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(232,88,122,.4);
  transition: transform .15s, box-shadow .15s;
}
#btn-yes:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 28px rgba(232,88,122,.55);
}
#btn-yes:active { transform: scale(.97); }

#btn-no {
  font-family: 'Nunito', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  padding: 10px 24px;
  border: 2px solid var(--rose-lt);
  border-radius: 50px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .2s, color .2s;
  /* NO button is positioned fixed so it can escape anywhere on screen */
  position: fixed;
}
#btn-no:hover { border-color: var(--rose); color: var(--rose); }

/* ── YES page ── */
.yes-card { border-top: 6px solid var(--rose); }

.yes-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 10px;
}

.yes-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 28px;
  line-height: 1.6;
}

.btn-back {
  font-family: 'Nunito', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  padding: 10px 28px;
  border: 2px solid var(--rose-lt);
  border-radius: 50px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  margin-top: 8px;
  transition: all .2s;
}
.btn-back:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

/* ── Confetti ── */
.confetti-wrap {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.confetti-piece {
  position: absolute;
  width: 10px;
  height: 14px;
  top: -20px;
  opacity: 0;
  border-radius: 3px;
  animation: confettiFall linear forwards;
}
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg);    opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 420px) {
  .card { padding: 36px 20px 28px; }
  .buttons { flex-direction: column; gap: 14px; }
  #btn-yes { width: 100%; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .heart-particle,
  .confetti-piece,
  .emoji-top { animation: none; }
}