/* Valentine Theme - Romantic Pink & Red */
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;700&family=Poppins:wght@300;400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
}

.valentine-container {
  min-height: 100vh;
  width: 100%;
  background: linear-gradient(135deg, #ffeef8 0%, #ffd6e7 25%, #ffc4dd 50%, #ffb3d1 75%, #ff9ec4 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 20px;
}

/* Floating Hearts Animation */
.floating-hearts {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-heart {
  position: absolute;
  bottom: -50px;
  animation: floatUp linear infinite;
  opacity: 0.7;
}

.floating-heart svg {
  width: 100%;
  height: 100%;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) rotate(0deg) scale(0.5);
    opacity: 0;
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.7;
  }
  100% {
    transform: translateY(-100vh) rotate(360deg) scale(1.2);
    opacity: 0;
  }
}

/* Sparkles Animation */
.sparkles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.sparkle {
  position: absolute;
  animation: sparkleAnimation ease-in-out infinite;
  font-size: 20px;
}

@keyframes sparkleAnimation {
  0%, 100% {
    transform: scale(0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1) rotate(180deg);
    opacity: 1;
  }
}

/* ==================== CUTE BEAR CSS ANIMATION ==================== */

.cute-bear {
  width: 180px;
  height: 220px;
  margin: 0 auto 25px;
  position: relative;
  animation: gentleBounce 2s ease-in-out infinite;
}

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

.bear-face {
  position: relative;
  z-index: 10;
}

.bear-ears {
  display: flex;
  justify-content: space-between;
  width: 140px;
  margin: 0 auto;
  position: relative;
  top: 15px;
}

.ear {
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #d4a574 0%, #c49a6c 100%);
  border-radius: 50%;
  position: relative;
  animation: earWiggle 3s ease-in-out infinite;
}

.ear.left {
  animation-delay: 0s;
}

.ear.right {
  animation-delay: 0.5s;
}

.ear::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 25px;
  background: #f4c2c2;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes earWiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-5deg);
  }
  75% {
    transform: rotate(5deg);
  }
}

.bear-head {
  width: 130px;
  height: 115px;
  background: linear-gradient(135deg, #e8c4a0 0%, #d4a574 100%);
  border-radius: 50% 50% 45% 45%;
  margin: -20px auto 0;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.bear-eyes {
  display: flex;
  justify-content: center;
  gap: 25px;
  padding-top: 35px;
}

.eye {
  width: 18px;
  height: 22px;
  background: #333;
  border-radius: 50%;
  position: relative;
  animation: blink 4s ease-in-out infinite;
}

.bear-eyes.happy .eye {
  height: 8px;
  border-radius: 0 0 50% 50%;
  background: transparent;
  border-bottom: 4px solid #333;
}

.pupil {
  width: 6px;
  height: 8px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 3px;
  right: 3px;
}

@keyframes blink {
  0%, 96%, 100% {
    transform: scaleY(1);
  }
  98% {
    transform: scaleY(0.1);
  }
}

.bear-nose {
  width: 22px;
  height: 16px;
  background: #5a3d2b;
  border-radius: 50%;
  margin: 8px auto 0;
  position: relative;
}

.bear-nose::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 4px;
  background: #8b5a3c;
  border-radius: 50%;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
}

.bear-mouth {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.mouth-left, .mouth-right {
  width: 12px;
  height: 8px;
  border: 2px solid #5a3d2b;
  border-top: none;
  border-radius: 0 0 50% 50%;
}

.big-smile .mouth-left,
.big-smile .mouth-right {
  width: 18px;
  height: 12px;
  border-width: 3px;
}

.bear-blush {
  width: 20px;
  height: 12px;
  background: #ffb6c1;
  border-radius: 50%;
  position: absolute;
  top: 55px;
  opacity: 0.7;
}

.bear-blush.left {
  left: 15px;
}

.bear-blush.right {
  right: 15px;
}

.bear-blush.dark {
  background: #ff91a4;
  opacity: 0.9;
}

.bear-body {
  width: 100px;
  height: 90px;
  background: linear-gradient(135deg, #e8c4a0 0%, #d4a574 100%);
  border-radius: 40% 40% 35% 35%;
  margin: -15px auto 0;
  position: relative;
}

.belly {
  width: 65px;
  height: 60px;
  background: #f5e6d3;
  border-radius: 50%;
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.belly-heart {
  width: 35px;
  height: 35px;
  animation: heartbeat 1.2s ease-in-out infinite;
}

.arms {
  display: flex;
  justify-content: space-between;
  width: 120px;
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
}

.arms.up {
  top: 10px;
}

.arms.up .arm.left {
  transform: rotate(-30deg);
}

.arms.up .arm.right {
  transform: rotate(30deg);
}

.arm {
  width: 25px;
  height: 45px;
  background: linear-gradient(135deg, #e8c4a0 0%, #d4a574 100%);
  border-radius: 50%;
}

/* Celebration Animation */
.celebration-bear {
  position: relative;
  margin-bottom: 25px;
}

.celebration-bear .cute-bear {
  animation: celebrateBounce 0.8s ease-in-out infinite;
}

@keyframes celebrateBounce {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
}

/* Confetti */
.confetti {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: 50%;
  left: 50%;
  animation: confettiPop 1.5s ease-out infinite;
}

.confetti-piece.c1 { background: #ff6b9d; animation-delay: 0s; --tx: -80px; --ty: -80px; }
.confetti-piece.c2 { background: #ffd93d; animation-delay: 0.1s; --tx: 80px; --ty: -60px; }
.confetti-piece.c3 { background: #6bcf7f; animation-delay: 0.2s; --tx: -60px; --ty: -100px; }
.confetti-piece.c4 { background: #4d96ff; animation-delay: 0.3s; --tx: 100px; --ty: -40px; }
.confetti-piece.c5 { background: #ff6b6b; animation-delay: 0.4s; --tx: -100px; --ty: -50px; }
.confetti-piece.c6 { background: #c084fc; animation-delay: 0.5s; --tx: 60px; --ty: -90px; }
.confetti-piece.c7 { background: #ff6b9d; animation-delay: 0.6s; --tx: -40px; --ty: -110px; }
.confetti-piece.c8 { background: #ffd93d; animation-delay: 0.7s; --tx: 120px; --ty: -70px; }
.confetti-piece.c9 { background: #6bcf7f; animation-delay: 0.8s; --tx: -120px; --ty: -30px; }
.confetti-piece.c10 { background: #4d96ff; animation-delay: 0.9s; --tx: 40px; --ty: -120px; }
.confetti-piece.c11 { background: #ff6b6b; animation-delay: 1s; --tx: -20px; --ty: -60px; }
.confetti-piece.c12 { background: #c084fc; animation-delay: 1.1s; --tx: 20px; --ty: -100px; }

@keyframes confettiPop {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0);
    opacity: 1;
  }
  100% {
    transform: translate(var(--tx), var(--ty)) rotate(720deg) scale(1);
    opacity: 0;
  }
}

/* ==================== MAIN CONTENT ==================== */

.proposal-content {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  padding: 40px 35px;
  max-width: 550px;
  width: 100%;
  text-align: center;
  box-shadow: 
    0 20px 60px rgba(255, 107, 157, 0.3),
    0 0 100px rgba(255, 182, 193, 0.2);
  z-index: 10;
  position: relative;
  animation: fadeInUp 1s ease-out;
  border: 3px solid #ffb3d1;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Typography */
.proposal-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.5rem;
  color: #d63384;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(214, 51, 132, 0.2);
  line-height: 1.2;
}

.inline-icon {
  display: inline-block;
  vertical-align: middle;
  margin: 0 8px;
}

.inline-icon.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}

.proposal-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Buttons */
.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  min-height: 150px;
  position: relative;
}

.yes-button {
  background: linear-gradient(135deg, #ff6b9d 0%, #ff1744 100%);
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 
    0 8px 25px rgba(255, 23, 68, 0.4),
    0 4px 10px rgba(255, 23, 68, 0.2);
  transition: all 0.3s ease;
  animation: heartbeat 1.5s ease-in-out infinite;
  font-family: 'Poppins', sans-serif;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.05);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(1);
  }
}

.yes-button:hover {
  transform: scale(1.1);
  box-shadow: 
    0 12px 35px rgba(255, 23, 68, 0.5),
    0 6px 15px rgba(255, 23, 68, 0.3);
}

.no-button {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  color: #6c757d;
  border: 2px solid #ced4da;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
  position: relative;
  min-width: 100px;
}

.no-button:hover {
  background: linear-gradient(135deg, #dee2e6 0%, #ced4da 100%);
}

/* Encouragement Text */
.encouragement-text {
  color: #ff6b9d;
  font-size: 0.95rem;
  font-weight: 500;
  animation: fadeIn 0.5s ease;
}

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

/* Romantic Quote */
.romantic-quote {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 2px dashed #ffb3d1;
  color: #8e44ad;
  font-style: italic;
}

.romantic-quote p {
  margin-bottom: 8px;
  font-family: 'Dancing Script', cursive;
  font-size: 1.2rem;
}

.romantic-quote span {
  font-size: 0.85rem;
  color: #9b59b6;
}

/* Success Page */
.success-page {
  background: linear-gradient(135deg, #fff5f7 0%, #ffe4ed 25%, #ffd4e5 50%, #ffc4dd 75%, #ffb3d1 100%);
  display: none;
}

.success-content {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 30px;
  padding: 40px 35px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  box-shadow: 
    0 25px 80px rgba(255, 107, 157, 0.4),
    0 0 120px rgba(255, 182, 193, 0.3);
  z-index: 10;
  position: relative;
  animation: celebrationBounce 1s ease-out;
  border: 4px solid #ff6b9d;
}

@keyframes celebrationBounce {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.success-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2.8rem;
  color: #ff1744;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(255, 23, 68, 0.2);
}

.success-message {
  font-size: 1.2rem;
  color: #495057;
  margin-bottom: 25px;
  line-height: 1.8;
}

.highlight {
  color: #d63384;
  font-weight: 600;
  font-size: 1.4rem;
  display: block;
  margin-top: 10px;
}

.love-declaration {
  background: linear-gradient(135deg, #fff0f5 0%, #ffe4e1 100%);
  border-radius: 20px;
  padding: 25px;
  margin: 25px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.big-heart {
  width: 45px;
  height: 45px;
  animation: heartbeat 1s ease-in-out infinite;
}

.love-text {
  font-size: 1rem;
  color: #6c757d;
  line-height: 2;
  font-style: italic;
}

.music-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
  color: #ff6b9d;
  font-size: 1rem;
  font-weight: 500;
  animation: gentleBounce 2s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
  .proposal-content,
  .success-content {
    padding: 30px 20px;
    margin: 10px;
  }
  
  .proposal-title {
    font-size: 2rem;
  }
  
  .success-title {
    font-size: 2.2rem;
  }
  
  .cute-bear {
    width: 150px;
    height: 180px;
  }
  
  .bear-head {
    width: 110px;
    height: 95px;
  }
  
  .bear-ears {
    width: 120px;
  }
  
  .ear {
    width: 38px;
    height: 38px;
  }
  
  .bear-body {
    width: 85px;
    height: 75px;
  }
  
  .yes-button {
    padding: 14px 30px;
    font-size: 1.1rem;
  }
  
  .no-button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .buttons-container {
    min-height: 160px;
  }
  
  .love-declaration {
    flex-direction: column;
    padding: 18px;
  }
  
  .big-heart {
    width: 35px;
    height: 35px;
  }
}

@media (max-width: 480px) {
  .proposal-title {
    font-size: 1.6rem;
  }
  
  .success-title {
    font-size: 1.8rem;
  }
  
  .proposal-subtitle {
    font-size: 0.95rem;
  }
  
  .success-message {
    font-size: 1rem;
  }
  
  .highlight {
    font-size: 1.1rem;
  }
  
  .yes-button {
    padding: 12px 25px;
    font-size: 1rem;
  }
  
  .no-button {
    padding: 8px 15px;
    font-size: 0.85rem;
  }
  
  .cute-bear {
    width: 130px;
    height: 160px;
  }
  
  .bear-head {
    width: 95px;
    height: 80px;
  }
  
  .bear-ears {
    width: 100px;
    top: 10px;
  }
  
  .ear {
    width: 32px;
    height: 32px;
  }
  
  .eye {
    width: 14px;
    height: 18px;
  }
  
  .bear-body {
    width: 70px;
    height: 65px;
  }
}

/* Extra small devices */
@media (max-width: 320px) {
  .proposal-content,
  .success-content {
    padding: 20px 12px;
  }
  
  .proposal-title {
    font-size: 1.4rem;
  }
  
  .cute-bear {
    width: 110px;
    height: 140px;
  }
}
