/* ============================================
   💙 Valentine's Day Website - Blue Theme
   ============================================ */

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

:root {
  /* Blue Color Palette */
  --primary-light: #e8f4fc;
  --primary-100: #bde0fe;
  --primary-200: #90c9f9;
  --primary-300: #64b5f6;
  --primary-400: #42a5f5;
  --primary-500: #2196f3;
  --primary-600: #1e88e5;
  --primary-700: #1976d2;
  --primary-800: #1565c0;
  --accent-pink: #f8bbd9;
  --accent-purple: #ce93d8;
  --white: #ffffff;
  --text-dark: #1a365d;
  --text-light: #4a6fa5;
}

body {
  font-family: 'Prompt', sans-serif;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-300) 50%, var(--primary-500) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  position: relative;
}

/* ============================================
   Password Screen
   ============================================ */

.password-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 1.5rem;
}

.password-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow:
    0 25px 50px -12px rgba(21, 101, 192, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: cardAppear 0.8s ease-out;
}

.password-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: heartBeat 2s ease-in-out infinite;
}

.password-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 0.5rem;
}

.password-subtitle {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.password-input-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.password-input {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-family: 'Prompt', sans-serif;
  border: 2px solid var(--primary-200);
  border-radius: 50px;
  background: var(--white);
  color: var(--text-dark);
  outline: none;
  transition: all 0.3s ease;
  text-align: center;
}

.password-input:focus {
  border-color: var(--primary-500);
  box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15);
}

.password-input::placeholder {
  color: var(--primary-300);
}

.password-btn {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  color: var(--white);
  box-shadow: 0 10px 30px -10px rgba(33, 150, 243, 0.5);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.password-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px -10px rgba(33, 150, 243, 0.6);
}

.password-btn:active {
  transform: scale(1);
}

.password-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.password-error {
  color: #e53935;
  font-size: 0.9rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

/* ============================================
   Floating Hearts Background
   ============================================ */

.hearts-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.floating-heart {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.6;
  animation: floatUp 8s ease-in-out infinite;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

@keyframes floatUp {
  0% {
    transform: translateY(100vh) rotate(0deg) scale(0.5);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-100px) rotate(360deg) scale(1);
    opacity: 0;
  }
}

/* ============================================
   Main Container
   ============================================ */

.container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
}

/* ============================================
   Date Badge
   ============================================ */

.date-badge {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  animation: fadeInDown 0.8s ease-out;
}

.date-label {
  font-size: 0.75rem;
  color: var(--text-dark);
  opacity: 0.8;
}

.date-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-800);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   Main Card
   ============================================ */

.card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  padding: 2.5rem 2rem;
  width: 100%;
  text-align: center;
  position: relative;
  box-shadow:
    0 25px 50px -12px rgba(21, 101, 192, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  animation: cardAppear 1s ease-out 0.3s both;
  overflow: hidden;
}

.card-glow {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.1) 0%, transparent 60%);
  animation: glowRotate 10s linear infinite;
  pointer-events: none;
}

@keyframes glowRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes cardAppear {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ============================================
   Cute Icon
   ============================================ */

.cute-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: heartBeat 1.5s ease-in-out infinite;
  filter: drop-shadow(0 5px 15px rgba(33, 150, 243, 0.3));
}

@keyframes heartBeat {

  0%,
  100% {
    transform: scale(1);
  }

  25% {
    transform: scale(1.1);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(1.05);
  }
}

/* ============================================
   Her Name
   ============================================ */

.her-name {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-700);
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  animation: shimmer 3s ease-in-out infinite;
}

.her-name::after {
  content: '✨';
  position: absolute;
  top: -10px;
  right: -25px;
  font-size: 1.2rem;
  animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes shimmer {

  0%,
  100% {
    text-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
  }

  50% {
    text-shadow: 0 0 30px rgba(33, 150, 243, 0.5), 0 0 60px rgba(33, 150, 243, 0.3);
  }
}

@keyframes sparkle {

  0%,
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8) rotate(20deg);
  }
}

/* ============================================
   Question
   ============================================ */

.question {
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* ============================================
   Buttons Container
   ============================================ */

.buttons-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

/* Yes Button */
.btn-yes {
  background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
  color: var(--white);
  box-shadow:
    0 10px 30px -10px rgba(33, 150, 243, 0.5),
    0 0 0 0 rgba(33, 150, 243, 0.4);
  min-width: 140px;
}

.btn-yes:hover {
  transform: scale(1.15);
  box-shadow:
    0 15px 40px -10px rgba(33, 150, 243, 0.6),
    0 0 0 8px rgba(33, 150, 243, 0.1);
}

.btn-yes:active {
  transform: scale(1.1);
}

.btn-yes .btn-text {
  position: relative;
  z-index: 1;
}

.btn-yes .btn-hearts {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-yes:hover .btn-hearts {
  animation: burstHearts 0.6s ease-out forwards;
}

@keyframes burstHearts {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -150%) scale(1.5);
  }
}

/* No Button */
.btn-no {
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-light);
  border: 2px solid var(--primary-200);
  min-width: 100px;
  transition: all 0.2s ease-out;
}

.btn-no.escaping {
  position: fixed !important;
  z-index: 9999 !important;
  transition: left 0.25s ease-out, top 0.25s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Success Screen
   ============================================ */

.success-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-200) 0%, var(--primary-500) 50%, var(--primary-700) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.success-screen.active {
  opacity: 1;
  visibility: visible;
}

.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 12px;
  height: 12px;
  top: -20px;
  animation: confettiFall 4s ease-in-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

.success-content {
  text-align: center;
  padding: 2rem;
  animation: successPop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-hearts {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  animation: bounceHearts 1s ease-in-out infinite;
}

@keyframes bounceHearts {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.success-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.success-message {
  font-size: 1.3rem;
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 2rem;
  white-space: pre-line;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.success-date {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  display: inline-block;
}

.success-date span {
  color: var(--white);
  font-weight: 600;
}

.floating-emoji {
  position: absolute;
  font-size: 4rem;
  animation: floatAround 6s ease-in-out infinite;
}

@keyframes floatAround {

  0%,
  100% {
    transform: translate(0, 0) rotate(-10deg);
  }

  25% {
    transform: translate(20px, -30px) rotate(10deg);
  }

  50% {
    transform: translate(-10px, -50px) rotate(-5deg);
  }

  75% {
    transform: translate(-30px, -20px) rotate(15deg);
  }
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 380px) {
  .card {
    padding: 2rem 1.5rem;
  }

  .her-name {
    font-size: 2rem;
  }

  .question {
    font-size: 1.1rem;
  }

  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 480px;
  }

  .card {
    padding: 3rem 2.5rem;
  }

  .cute-icon {
    font-size: 5rem;
  }

  .her-name {
    font-size: 3rem;
  }

  .question {
    font-size: 1.5rem;
  }
}

/* ============================================
   Touch Device Optimizations
   ============================================ */

@media (hover: none) {
  .btn-yes:hover {
    transform: scale(1);
    box-shadow:
      0 10px 30px -10px rgba(33, 150, 243, 0.5),
      0 0 0 0 rgba(33, 150, 243, 0.4);
  }

  .btn-yes:active {
    transform: scale(1.1);
  }
}