/* style.css */

/* ✅ PUT YOUR IMAGES HERE */
:root{
  --img-1: url("images/first.jpg");   /* <- replace with your first image path */
  --img-2: url("images/second.jpg");  /* <- replace with your second image path */

  --pink-1:#ffe4f0;
  --pink-2:#ffc6df;
  --pink-3:#ffb6d9;
  --pink-4:#ff8fc6;
  --ink:#4b1b33;

  --card:#ffffffcc;
  --shadow: 0 20px 60px rgba(255, 79, 162, .25);
  --radius: 26px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--ink);
  display:grid;
  place-items:center;
  background:
    radial-gradient(1200px 600px at 20% 10%, #fff 0%, transparent 60%),
    radial-gradient(900px 500px at 80% 20%, #fff 0%, transparent 55%),
    linear-gradient(135deg, var(--pink-1), var(--pink-2));
  overflow:hidden;
}

/* floating hearts background */
.bg-hearts{
  position:fixed; inset:0;
  pointer-events:none;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,79,162,.20) 0 10px, transparent 11px),
    radial-gradient(circle at 70% 20%, rgba(255,79,162,.15) 0 9px, transparent 10px),
    radial-gradient(circle at 40% 80%, rgba(255,79,162,.16) 0 12px, transparent 13px),
    radial-gradient(circle at 85% 75%, rgba(255,79,162,.14) 0 8px, transparent 9px);
  animation: floaty 10s ease-in-out infinite;
  opacity:.85;
}

@keyframes floaty{
  0%,100%{ transform: translateY(0px) }
  50%{ transform: translateY(-14px) }
}

.card{
  width:min(520px, 92vw);
  padding:26px 22px 18px;
  background:var(--card);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .6);
  position:relative;
  overflow:hidden;
}

.sparkle{
  position:absolute;
  inset:-80px -60px auto auto;
  width:220px;
  height:220px;
  background: radial-gradient(circle, rgba(255,79,162,.25), transparent 60%);
  transform: rotate(15deg);
}

.image-box{
  height: 240px;
  border-radius: 22px;
  border: 2px solid rgba(255,79,162,.35);
  box-shadow:
    0 18px 36px rgba(255,79,162,.18),
    inset 0 0 0 4px rgba(255,255,255,.55);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* ✅ FIRST IMAGE (default state) */
  background-image:
    linear-gradient(135deg, rgba(255,79,162,.15), rgba(255,255,255,.1)),
    var(--img-1);

  position:relative;
}

.image-box::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 22px;
  background: radial-gradient(circle at 15% 20%, rgba(255,255,255,.55), transparent 35%);
  mix-blend-mode: screen;
  pointer-events:none;
}

.title{
  margin:18px 0 6px;
  font-size: clamp(24px, 3.6vw, 34px);
  letter-spacing: -0.02em;
  text-align:center;
}

.subtitle{
  margin:0 0 18px;
  text-align:center;
  opacity:.85;
}

.buttons{
  display:flex;
  justify-content:center;
  gap:18px;
  padding: 8px 8px 4px;
}

/* 🌸 Cute pastel buttons */
.btn{
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
  user-select:none;
}

.btn:active{ transform: translateY(0); }

.btn.yes{
  background: linear-gradient(180deg, var(--pink-3), var(--pink-4));
  color: #6b113f;
  box-shadow:
    0 10px 20px rgba(255, 143, 198, 0.35),
    inset 0 2px 0 rgba(255,255,255,0.6);
}
.btn.yes:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(255, 143, 198, 0.45);
}

.btn.no{
  background: #fff;
  color: #a45a7f;
  border: 1.5px solid #ffd2e8;
  box-shadow: 0 8px 16px rgba(255, 182, 217, 0.25);
}
.btn.no:hover{ background: #fff6fb; }

/* ✅ Ultra-smooth floating "No" button */
.btn.no.no-float{
  position: fixed;
  left: 0;
  top: 0;
  z-index: 9999;
  will-change: transform;
  transform: translate3d(0,0,0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
.btn.no.no-float.is-moving{
  filter: drop-shadow(0 14px 24px rgba(255, 143, 198, 0.28));
}

.footer{
  display:flex;
  justify-content:center;
  margin-top: 10px;
  font-size: 13px;
  opacity:.75;
}

/* Success state */
.card.success .buttons{ display:none; }
.card.success .title{ color: #a51f57; }
