/* Valentine's week page styles */
/* Header ---- */
.site-header {
  background: linear-gradient(135deg, #fff0f5, #fce4ec);
  padding: 14px 20px;
  text-align: center;
  border-bottom: 2px solid rgba(249, 168, 201, 0.35);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.site-header h1 {
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.3rem, 4vw, 2.1rem);
  color: var(--deep);
}

/*  Days nav  */
.days-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 14px 18px;
  background: white;
  border-bottom: 1px solid var(--peach);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;

  /* Mobile Default: Align to the start for scrolling */
  justify-content: flex-start;
}

.days-nav::-webkit-scrollbar {
  display: none;
}

/* Desktop Version */
@media (min-width: 768px) {
  .days-nav {
    /* Center the pills on larger screens */
    justify-content: center;
    /* Remove horizontal scroll if not needed on desktop */
    overflow-x: hidden;
  }
}
.day-pill {
  flex-shrink: 0;
  padding: 8px 15px;
  border-radius: 30px;
  border: 2px solid var(--pink);
  background: white;
  color: var(--rose);
  font-family: "Nunito", sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s;
  white-space: nowrap;
}
.day-pill:hover,
.day-pill.active {
  background: linear-gradient(135deg, var(--rose), var(--deep));
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(232, 84, 122, 0.4);
}

/*  Day sections  */
.day-section {
  display: none;
  padding: 36px 18px 60px;
  max-width: 680px;
  margin: 0 auto;
  animation: fadeIn 0.55s ease;
}
.day-section.active {
  display: block;
}

/*  Day header  */
.day-header {
  text-align: center;
  margin-bottom: 28px;
}

.day-emoji {
  font-size: 4.5rem;
  display: block;
  margin-bottom: 10px;
  animation: wiggle 2.5s ease-in-out infinite;
}

.day-title {
  font-family: "Dancing Script", cursive;
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--deep);
  margin-bottom: 4px;
}

.day-date {
  font-size: 0.82rem;
  color: var(--rose);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/*  Nav arrows  */
.nav-arrows {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  gap: 10px;
}

/* DAY 0 = ROSE DAY */
.rose-poem {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  line-height: 2.3;
  color: var(--text);
  text-align: center;
}

.poem-title {
  font-family: "Dancing Script", cursive;
  font-size: 1.5rem;
  color: var(--rose);
  text-align: center;
  display: block;
  margin-bottom: 18px;
}

.rose-anim-container {
  text-align: center;
  margin: 18px 0;
}

.rose-svg {
  width: 110px;
  height: 110px;
  animation: roseBloom 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  filter: drop-shadow(0 8px 20px rgba(232, 84, 122, 0.4));
}
@keyframes roseBloom {
  0% {
    transform: scale(0) rotate(-200deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}

/* DAY 1 = PROPOSE DAY */
.heart-container {
  position: relative;
  height: 160px;
  margin: 14px 0;
  overflow: hidden;
}

.animated-heart {
  position: absolute;
  animation: floatHeart linear infinite;
}

@keyframes floatHeart {
  0% {
    bottom: -30px;
    opacity: 1;
  }
  100% {
    bottom: 100%;
    opacity: 0;
    transform: translateX(var(--dx)) scale(0.6);
  }
}

.propose-message {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text);
  text-align: center;
}

/* DAY 2 = CHOCOLATE DAY */
.choco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
  margin: 18px 0;
}

.choco-box {
  background: linear-gradient(135deg, #6d4c41, #3e2723);
  border-radius: 16px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.35s;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(109, 76, 65, 0.3);
}

.choco-box .choco-emoji {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.choco-box .choco-msg {
  opacity: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  font-family: "Nunito", sans-serif;
  font-size: 0.75rem;
  line-height: 1.4;
  background: linear-gradient(
    135deg,
    rgba(232, 84, 122, 0.96),
    rgba(194, 24, 91, 0.96)
  );
  border-radius: 16px;
  transition: opacity 0.4s;
  text-align: center;
}

.choco-box.opened .choco-msg {
  opacity: 1;
}
.choco-box:hover {
  transform: scale(1.06) rotate(1.5deg);
}

/* DAY 3 = TEDDY DAY */
.game-area {
  background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
}

.game-score {
  font-size: 1rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 10px;
}

.game-canvas {
  width: 100%;
  height: 230px;
  position: relative;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
  overflow: hidden;
}

.falling-teddy {
  position: absolute;
  cursor: pointer;
  animation: fall linear forwards;
  user-select: none;
  transition: transform 0.1s;
  line-height: 1;
}
.falling-teddy:active {
  transform: scale(1.4);
}

@keyframes fall {
  from {
    top: -60px;
  }
  to {
    top: 240px;
  }
}

.game-result {
  font-family: "Dancing Script", cursive;
  font-size: 1.7rem;
  color: var(--deep);
  margin-top: 10px;
}
.game-msg {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 6px;
}

/*  teddy SVG */
.bibhu-teddy {
  display: inline-block;
  font-size: 2.6rem;
}
/* DAY 4 = PROMISE DAY */
.promise-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 13px;
  margin: 18px 0;
  perspective: 800px;
}

.promise-card {
  border-radius: 18px;
  min-height: 110px;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 5px 18px rgba(108, 92, 231, 0.3);
}
.promise-card.flipped {
  transform: rotateY(180deg);
}

.promise-card .front,
.promise-card .back {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 12px;
  border-radius: 18px;
  backface-visibility: hidden;
  text-align: center;
  color: white;
  font-weight: 600;
}

.promise-card .front {
  background: linear-gradient(135deg, var(--purple), #6c5ce7);
}
.promise-card .back {
  background: linear-gradient(135deg, var(--rose), var(--deep));
  font-family: "Playfair Display", serif;
  font-size: 0.82rem;
  line-height: 1.55;
  transform: rotateY(180deg);
}

.promise-icon {
  font-size: 1.9rem;
  margin-bottom: 6px;
}

/* DAY 5 = HUG DAY */
.hug-animation {
  text-align: center;
  padding: 16px 0;
}

.hug-figures {
  font-size: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.hug-left {
  animation: hugLeft 2.2s ease-in-out infinite;
}
.hug-right {
  animation: hugRight 2.2s ease-in-out infinite;
}
.hug-heart {
  animation: heartBeat 1.8s ease-in-out infinite;
}

@keyframes hugLeft {
  0%,
  100% {
    transform: translateX(-16px);
  }
  50% {
    transform: translateX(0);
  }
}
@keyframes hugRight {
  0%,
  100% {
    transform: translateX(16px);
  }
  50% {
    transform: translateX(0);
  }
}

.hug-message {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  line-height: 2;
  color: var(--text);
  text-align: center;
  margin: 18px 0;
}

/* DAY 6 = A WISH  */
.sparkle-area {
  position: relative;
  text-align: center;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(249, 168, 201, 0.1),
    rgba(232, 84, 122, 0.08)
  );
  border: 2px dashed rgba(249, 168, 201, 0.5);
  transition: background 0.3s;
}
.sparkle-area:hover {
  background: linear-gradient(
    135deg,
    rgba(249, 168, 201, 0.18),
    rgba(232, 84, 122, 0.14)
  );
}

.wish-msg {
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.3rem, 4.5vw, 2.2rem);
  color: var(--deep);
  animation: glow 2.5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

/* DAY 7 = VALENTINE'S DAY */
.music-note {
  font-size: 1.2rem;
  animation: musicFloat 2s ease-in-out infinite;
  display: inline-block;
}
.music-note:nth-child(2) {
  animation-delay: 0.35s;
}
.music-note:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes musicFloat {
  0%,
  100% {
    transform: translateY(0) rotate(-12deg);
  }
  50% {
    transform: translateY(-10px) rotate(12deg);
  }
}

.love-letter {
  font-family: "Playfair Display", serif;
  font-size: 1.02rem;
  line-height: 2;
  color: var(--text);
  padding: 16px 14px;
  border-radius: 14px;
  border-left: 3px solid var(--pink);
  background: linear-gradient(180deg, transparent, rgba(252, 228, 236, 0.25));
}
.love-letter p {
  margin-bottom: 14px;
}
.love-letter .salutation {
  font-family: "Dancing Script", cursive;
  font-size: 1.55rem;
  color: var(--rose);
}
.love-letter .sign-off {
  font-family: "Dancing Script", cursive;
  font-size: 1.35rem;
  color: var(--deep);
}

/* Valentine game */
.valentine-game {
  text-align: center;
  padding: 16px 0;
}

.vg-question {
  font-family: "Dancing Script", cursive;
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: var(--deep);
  margin-bottom: 22px;
  line-height: 1.4;
}

.vg-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.yes-btn {
  background: linear-gradient(135deg, var(--rose), var(--deep));
  color: white;
  border: none;
  padding: 13px 36px;
  border-radius: 50px;
  font-family: "Dancing Script", cursive;
  font-size: 1.6rem;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(232, 84, 122, 0.5);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.yes-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(232, 84, 122, 0.7);
}

.no-btn {
  background: #eee;
  color: #aaa;
  border: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-family: "Nunito", sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
}

.vg-result {
  display: none;
  text-align: center;
}
.vg-result .result-emoji {
  font-size: 5rem;
  animation: bigBounce 0.55s ease;
  display: block;
}
@keyframes bigBounce {
  0% {
    transform: scale(0);
  }
  70% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}
.vg-result-text {
  font-family: "Dancing Script", cursive;
  font-size: 2rem;
  color: var(--deep);
  margin-top: 10px;
}

/* Nabin K. Bhattarai reference note */
.music-ref {
  font-size: 0.78rem;
  color: var(--rose);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  opacity: 0.8;
}
