/* Hidden romantic pages styles. Scoped with romance-* classes to avoid side effects. */
.romance-entry,
.romance-surprise {
  --rose-100: #fff4f8;
  --rose-200: #ffdbe8;
  --rose-300: #ffb9d3;
  --rose-500: #d85c8f;
  --ink: #4a2d3a;
}

.romance-entry {
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 20% 20%, #ffeef6, #fff 45%, #fffafc 100%);
}

.romance-entry__card {
  width: min(28rem, 100%);
  padding: 2rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--rose-200);
  box-shadow: 0 14px 40px rgba(216, 92, 143, 0.18);
  backdrop-filter: blur(8px);
}

.romance-entry__eyebrow,
.romance-surprise__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-500);
  margin-bottom: 0.5rem;
}

.romance-entry h1,
.romance-surprise h1,
.romance-surprise h2 {
  margin: 0;
  color: var(--ink);
}

.romance-entry__lead {
  margin-top: 0.7rem;
  color: #71505f;
}

.romance-entry__form {
  margin-top: 1.25rem;
  display: grid;
  gap: 0.7rem;
}

.romance-entry__form label {
  font-size: 0.9rem;
  color: #5f4551;
}

.romance-entry__form input {
  width: 100%;
  padding: 0.72rem 0.8rem;
  border-radius: 0.7rem;
  border: 1px solid #f0bfd4;
  background: #fff;
}

.romance-entry__form button {
  padding: 0.72rem 0.95rem;
  border: 0;
  border-radius: 0.7rem;
  background: linear-gradient(120deg, #e67ca8, #c95f89);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.romance-entry__form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(201, 95, 137, 0.28);
}

.romance-entry__form.is-loading button {
  opacity: 0.8;
  transform: scale(0.985);
}

.romance-entry__feedback {
  min-height: 1.2rem;
  margin: 0;
  font-size: 0.85rem;
  color: #b14f76;
}

.romance-surprise {
  position: relative;
  overflow: clip;
  background: linear-gradient(180deg, #fff7fb, #fff 40%, #fff6fa);
  padding: 3rem 1.2rem 4rem;
}

.romance-surprise__background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.heart,
.spark {
  position: absolute;
  opacity: 0.35;
  animation: floatY 12s ease-in-out infinite;
}

.heart {
  color: #e37fa8;
  font-size: clamp(1.2rem, 2.3vw, 2rem);
}

.heart--1 { top: 12%; left: 8%; }
.heart--2 { top: 30%; right: 10%; animation-delay: 2s; }
.heart--3 { top: 62%; left: 6%; animation-delay: 4s; }
.heart--4 { top: 76%; right: 14%; animation-delay: 6s; }

.spark {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f7bad2;
  box-shadow: 0 0 16px #f7bad2;
}

.spark--1 { top: 20%; right: 28%; }
.spark--2 { top: 55%; left: 28%; animation-delay: 3s; }
.spark--3 { top: 85%; left: 44%; animation-delay: 6s; }

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

.romance-surprise__section {
  max-width: 58rem;
  margin: 0 auto 3rem;
  padding: 1.6rem;
  border-radius: 1rem;
  border: 1px solid #ffe0ec;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 32px rgba(210, 132, 163, 0.13);
}

.romance-surprise__section p {
  color: #654957;
  line-height: 1.7;
}

.romance-gallery {
  margin-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.romance-gallery__card {
  border-radius: 0.9rem;
  overflow: hidden;
  border: 1px solid #ffd7e7;
  background: #fff;
  box-shadow: 0 6px 18px rgba(215, 126, 163, 0.12);
}

.romance-gallery__placeholder {
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  font-weight: 600;
  color: #a45777;
  background: linear-gradient(140deg, #ffe4f0, #fff7fb);
}

.romance-gallery__card p {
  margin: 0;
  padding: 0.8rem;
  font-size: 0.92rem;
}

.romance-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 450ms ease, transform 450ms ease;
}

.romance-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .romance-entry__card,
  .romance-surprise__section {
    padding: 1.2rem;
  }
}

/* Dark mode adaptations for Material darkchiki scheme */
[data-md-color-scheme="darkchiki"] .romance-entry,
[data-md-color-scheme="darkchiki"] .romance-surprise {
  --ink: #f7d9e7;
}

[data-md-color-scheme="darkchiki"] .romance-entry {
  background: radial-gradient(circle at 20% 20%, #301625, #17111b 45%, #120f17 100%);
}

[data-md-color-scheme="darkchiki"] .romance-entry__card {
  background: rgba(28, 20, 30, 0.84);
  border-color: #533346;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

[data-md-color-scheme="darkchiki"] .romance-entry__lead,
[data-md-color-scheme="darkchiki"] .romance-entry__form label,
[data-md-color-scheme="darkchiki"] .romance-surprise__section p {
  color: #d6bbca;
}

[data-md-color-scheme="darkchiki"] .romance-entry__form input {
  color: #f5dce9;
  background: #201824;
  border-color: #604055;
}

[data-md-color-scheme="darkchiki"] .romance-entry__form input::placeholder {
  color: #a57b8f;
}

[data-md-color-scheme="darkchiki"] .romance-entry__feedback {
  color: #f3a4c7;
}

[data-md-color-scheme="darkchiki"] .romance-surprise {
  background: linear-gradient(180deg, #1a1320, #15111a 40%, #110e16);
}

[data-md-color-scheme="darkchiki"] .heart {
  color: #f3a2c7;
  opacity: 0.45;
}

[data-md-color-scheme="darkchiki"] .spark {
  background: #ffb9d6;
  box-shadow: 0 0 14px #ff9fc9;
}

[data-md-color-scheme="darkchiki"] .romance-surprise__section,
[data-md-color-scheme="darkchiki"] .romance-gallery__card {
  background: rgba(26, 19, 31, 0.88);
  border-color: #4f3447;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

[data-md-color-scheme="darkchiki"] .romance-gallery__placeholder {
  color: #f5bfd8;
  background: linear-gradient(140deg, #3a2032, #271927);
}
