/* ==========================================================================
   دیت می‌ری؟ — تم: آسمون شب + صورتی رمانتیک + طلایی برند
   ========================================================================== */
@import url("https://cdn.jsdelivr.net/npm/vazirmatn@33.0.3/Vazirmatn-font-face.css");

:root {
  --navy: #12193A;
  --navy-deep: #0A0E24;
  --rose: #FF6F91;
  --rose-deep: #E84E75;
  --rose-light: #FFD2DE;
  --gold: #FFB84D;
  --cream: #FFF7F3;
  --ink: #2C2440;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 20px 50px rgba(18, 25, 58, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Vazirmatn", sans-serif;
  color: var(--cream);
  background: radial-gradient(ellipse at top, #1c2559 0%, var(--navy) 45%, var(--navy-deep) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---------------- starfield (signature backdrop) ---------------- */
.starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.starfield span {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle 3.5s ease-in-out infinite;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.6); }
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  text-align: center;
}

/* ---------------- constellation heart (signature element) ---------------- */
.constellation {
  width: 220px;
  max-width: 70vw;
  margin-bottom: 18px;
}
.constellation path {
  fill: none;
  stroke: var(--rose);
  stroke-width: 1.4;
  stroke-dasharray: 4 5;
  opacity: 0.85;
}
.constellation circle {
  fill: var(--gold);
  filter: drop-shadow(0 0 4px var(--gold));
}
.constellation text {
  fill: var(--rose-light);
  font-family: "Vazirmatn", sans-serif;
  font-size: 7px;
}

/* ---------------- card ---------------- */
.card {
  background: linear-gradient(165deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 210, 222, 0.18);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--rose);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
}
h1.question {
  font-size: clamp(22px, 5vw, 30px);
  font-weight: 800;
  line-height: 1.5;
  margin: 0 0 10px;
  color: #fff;
}
.when {
  display: inline-block;
  background: rgba(255, 184, 77, 0.14);
  color: var(--gold);
  border: 1px solid rgba(255, 184, 77, 0.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.custom-note {
  color: var(--rose-light);
  font-size: 14.5px;
  line-height: 1.8;
  margin: 10px 0 22px;
}

/* ---------------- buttons area ---------------- */
.button-arena {
  position: relative;
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}
.btn {
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-yes {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff;
  padding: 16px 34px;
  font-size: 17px;
  box-shadow: 0 10px 24px rgba(232, 78, 117, 0.45);
  transform: scale(var(--yes-scale, 1));
}
.btn-yes:active { transform: scale(calc(var(--yes-scale, 1) * 0.96)); }
.btn-no {
  background: rgba(255,255,255,0.08);
  color: var(--cream);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 16px 30px;
  font-size: 16px;
  position: relative;
}
.btn-no.is-fleeing {
  position: fixed;
  z-index: 5;
}

/* ---------------- result state ---------------- */
.result {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.result.is-visible { display: flex; }
.result .big-heart { font-size: 52px; animation: pop 0.4s ease; }
@keyframes pop {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}
.result p { color: var(--rose-light); font-size: 15.5px; line-height: 1.8; margin: 0; }

.floating-heart {
  position: fixed;
  bottom: -30px;
  font-size: 20px;
  animation: rise 2.6s ease-in forwards;
  z-index: 6;
  pointer-events: none;
}
@keyframes rise {
  0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-100vh) translateX(var(--drift, 20px)) rotate(25deg); opacity: 0; }
}

.footer-note {
  margin-top: 26px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.4);
}
.footer-note a { color: var(--gold); text-decoration: none; }

/* ---------------- form (create page) ---------------- */
.form-card { text-align: right; }
.field { margin-bottom: 16px; text-align: right; }
.field label { display: block; font-size: 13.5px; color: var(--rose-light); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: #fff;
  font-family: inherit;
  font-size: 14.5px;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.35); }
.field textarea { min-height: 80px; resize: vertical; }
.hint { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 5px; }
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 15px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 10px 24px rgba(232, 78, 117, 0.4);
}
.form-error {
  background: rgba(255, 90, 90, 0.15);
  border: 1px solid rgba(255, 90, 90, 0.4);
  color: #ffd0d0;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

/* ---------------- link box (created / status pages) ---------------- */
.link-box {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-md);
  padding: 14px;
  font-size: 13.5px;
  word-break: break-all;
  color: var(--gold);
  margin: 10px 0 6px;
  text-align: left;
  direction: ltr;
}
.copy-btn {
  background: rgba(255,184,77,0.15);
  border: 1px solid rgba(255,184,77,0.4);
  color: var(--gold);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
}

.status-pill {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  margin: 14px 0;
}
.status-pill.pending { background: rgba(255,255,255,0.1); color: var(--rose-light); }
.status-pill.yes { background: rgba(255,111,145,0.2); color: var(--rose); border: 1px solid var(--rose); }

@media (max-width: 480px) {
  .card { padding: 26px 20px; }
  .button-arena { gap: 14px; }
  .btn-yes { padding: 15px 26px; font-size: 16px; }
  .btn-no { padding: 14px 22px; font-size: 15px; }
}
