/* ======================
   RESET
====================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", system-ui, sans-serif;
}

button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

/* ======================
   BODY
====================== */
body {
  height: 100vh;
  background: linear-gradient(135deg, #09001f, #12002b);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  color: white;
}

/* ======================
   TOP BUTTONS
====================== */
#music,
#theme {
  position: fixed;
  top: 18px;
  padding: 10px 16px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 14px;
  transition: transform 0.25s ease;
  z-index: 20;
}

#music { right: 90px; }
#theme { right: 20px; }

#music:hover,
#theme:hover {
  transform: scale(1.1);
}

/* ======================
   CONTAINER
====================== */
.container {
  position: relative;
  width: 340px;
  max-width: 92vw;
}

/* ======================
   CARD
====================== */
.card {
  width: 100%;
  min-height: 480px;
  padding: 22px;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  box-shadow: 0 0 60px rgba(255, 0, 150, 0.4);
  text-align: center;
  animation: popIn 0.7s ease;
}

@keyframes popIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ======================
   IMAGE
====================== */
.image {
  height: 170px;
  background: url("assets/loveme.gif") center / contain no-repeat;
}

/* ======================
   TEXT
====================== */
.question {
  margin: 20px 0;
  font-size: 22px;
  font-weight: 600;
}

/* ======================
   YES / NO BUTTONS
====================== */
.buttons {
  display: flex;
  justify-content: space-around;
  margin-top: 12px;
}

.btn {
  padding: 12px 30px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, #ff4ecd, #ff007a);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 20px rgba(255, 0, 122, 0.5);
}

.no {
  background: linear-gradient(135deg, #444, #222);
  position: relative;
}

/* ======================
   GIFT & SHARE
====================== */
#gift,
#share {
  display: none;
  margin-top: 18px;
  padding: 14px;
  width: 100%;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  color: white;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.25s ease;
}

#gift {
  background: linear-gradient(135deg, #ff4ecd, #ff007a);
  animation: pulse 1.5s infinite;
}

#share {
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 0 18px rgba(37, 211, 102, 0.6);
}

#share:hover {
  transform: scale(1.05);
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px pink; }
  50% { box-shadow: 0 0 30px pink; }
  100% { box-shadow: 0 0 10px pink; }
}

/* ======================
   GIFT COVER
====================== */
.gift-cover {
  position: absolute;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.85);
  border-radius: 25px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  z-index: 5;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ======================
   POPUP
====================== */
.popup {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  z-index: 50;
}

.popup-box {
  background: linear-gradient(135deg, #fff0f6, #ffe3ec);
  color: #3a003a;
  padding: 35px 25px;
  border-radius: 25px;
  text-align: center;
  max-width: 320px;
  animation: scaleUp 0.4s ease;
  box-shadow: 0 0 40px rgba(255, 0, 120, 0.4);
}

@keyframes scaleUp {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ======================
   POPUP CONTENT
====================== */
.popup-heart {
  font-size: 44px;
  animation: heartBeat 1.2s infinite;
}

.popup-text {
  margin: 18px 0;
  font-size: 16px;
  line-height: 1.6;
}

.popup-actions button {
  padding: 12px 32px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #ff4ecd, #ff007a);
  color: white;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(255, 0, 120, 0.4);
  transition: transform 0.25s ease;
}

.popup-actions button:first-child {
  margin-bottom: 5px;
}

.popup-actions button:hover {
  transform: scale(1.1);
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

/* ======================
   FLOATING HEARTS
====================== */
.heart {
  position: fixed;
  bottom: -20px;
  animation: float 4s linear;
  pointer-events: none;
}

@keyframes float {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-100vh); opacity: 0; }
}

/* ======================
   CONFETTI
====================== */
.confetti {
  position: fixed;
  width: 8px;
  height: 8px;
  top: -10px;
  animation: confettiFall 1.5s ease-out forwards;
  z-index: 999;
}

@keyframes confettiFall {
  to {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
/* ======================
   💍 PROPOSAL RING
====================== */
.ring {
  font-size: 64px;
  display: inline-block;
  animation: ringPop 1.2s ease forwards;
  filter: drop-shadow(0 0 15px gold);
}

@keyframes ringPop {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.3) rotate(20deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0);
  }
}

/* ======================
   💌 SCREENSHOT MODE
   (Cleaner image)
====================== */
.screenshot-mode {
  box-shadow: none !important;
  background: linear-gradient(135deg, #ffdde1, #ee9ca7) !important;
}

.screenshot-mode .btn,
.screenshot-mode #music,
.screenshot-mode #theme {
  display: none !important;
}

/* ======================
   🧠 REMEMBER YES FOREVER
====================== */
.love-accepted {
  animation: loveGlow 2s infinite alternate;
}

@keyframes loveGlow {
  from {
    box-shadow: 0 0 30px rgba(255, 0, 120, 0.4);
  }
  to {
    box-shadow: 0 0 70px rgba(255, 0, 120, 0.9);
  }
}

/* ======================
   💖 FLOATING EMOJIS (POPUP)
====================== */
.popup::after {
  content: "💖 💕 💗 💓 💞";
  position: absolute;
  bottom: 15%;
  font-size: 22px;
  opacity: 0.7;
  animation: emojiFloat 4s infinite linear;
}

@keyframes emojiFloat {
  from {
    transform: translateX(-20px);
  }
  to {
    transform: translateX(20px);
  }
}

/* ======================
   🌙 AUTO DARK / LIGHT
====================== */
@media (prefers-color-scheme: light) {
  body {
    background: linear-gradient(135deg, #ffe6f0, #ffd6e8);
    color: #3a003a;
  }

  .card {
    background: rgba(255, 255, 255, 0.9);
    color: #3a003a;
  }

  #music,
  #theme {
    background: rgba(0, 0, 0, 0.1);
    color: #3a003a;
  }
}
