/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-pink: #f43f5e;
  --primary-deep: #be123c;
  --warm-peach: #fb923c;
  --warm-amber: #f59e0b;
  --soft-rose: #fff1f2;
  --rose-border: #fed7aa;
  --text-dark: #374151;
  --text-muted: #6b7280;
  --card-bg: rgba(255, 255, 255, 0.94);
  --glass-shadow: 0 15px 35px rgba(251, 146, 60, 0.12), 0 5px 15px rgba(0, 0, 0, 0.04);
}

body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(135deg, #fff7ed 0%, #fff1f2 35%, #fef3c7 70%, #f3e8ff 100%);
  color: var(--text-dark);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Background Animated Canvas */
#heartCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Page Container */
.page-wrapper {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 5rem;
}

/* Audio Player Floating Button */
.audio-control {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  border: 1px solid #fed7aa;
  box-shadow: 0 4px 15px rgba(251, 146, 60, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  color: #c2410c;
  user-select: none;
}

.audio-control:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(251, 146, 60, 0.3);
  background: #ffffff;
}

.disc-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.disc-icon svg {
  width: 100%;
  height: 100%;
  stroke: #ea580c;
}

.spinning {
  animation: spin 3s linear infinite;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Hero Section */
.hero-section {
  text-align: center;
  padding: 3rem 1rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-pill {
  display: inline-block;
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  padding: 0.45rem 1.3rem;
  border-radius: 9999px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.main-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  color: #1f2937;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.highlight-name {
  background: linear-gradient(120deg, #ea580c, #f43f5e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  position: relative;
}

.subtitle {
  font-family: 'Caveat', cursive;
  font-size: 1.65rem;
  color: #4b5563;
  max-width: 620px;
  margin: 0 auto 1.8rem;
}

.subtitle em {
  color: #be123c;
  font-style: normal;
  font-weight: 700;
}

/* Cute Bear Avatar */
.cute-avatar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.8rem;
}

.cute-avatar {
  width: 175px;
  height: 175px;
  filter: drop-shadow(0 10px 18px rgba(251, 146, 60, 0.25));
}

.pulse-animation {
  animation: floatBounce 3s ease-in-out infinite;
}

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

.tagline {
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: #c2410c;
  margin-top: 0.75rem;
}

.scroll-down-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.5rem 1.2rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(251, 146, 60, 0.35);
}

.scroll-down-btn:hover {
  color: #ea580c;
  background: #ffffff;
  transform: translateY(2px);
}

/* Section Cards Shared */
.section-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 2.2rem 2rem;
  margin-bottom: 2.2rem;
  box-shadow: var(--glass-shadow);
  border: 1px solid rgba(255, 255, 255, 0.9);
  position: relative;
  transition: transform 0.3s ease;
}

.section-card:hover {
  box-shadow: 0 20px 40px rgba(251, 146, 60, 0.16);
}

.card-ribbon {
  position: absolute;
  top: -14px;
  left: 2rem;
  background: linear-gradient(135deg, #f97316, #f43f5e);
  color: white;
  padding: 0.35rem 1.2rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

.section-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  color: #1f2937;
  text-align: center;
  margin-bottom: 0.4rem;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
}

/* Letter Content */
.letter-card {
  background: linear-gradient(to bottom, #ffffff, #fffdfb);
  border-left: 5px solid #f97316;
}

.letter-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #fed7aa;
}

.letter-date {
  font-size: 0.9rem;
  font-weight: 600;
  color: #9a3412;
  background: #ffedd5;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
}

.letter-tag {
  font-family: 'Caveat', cursive;
  font-size: 1.35rem;
  color: #ea580c;
  font-weight: bold;
}

.letter-content {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.75;
}

.letter-content p {
  margin-bottom: 1.1rem;
}

.salutation {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  color: #9a3412;
  font-weight: 600;
  margin-bottom: 0.8rem !important;
}

.highlight-quote {
  font-family: 'Caveat', cursive;
  font-size: 1.55rem;
  color: #9a3412;
  background: rgba(255, 237, 213, 0.6);
  border-left: 4px solid #f97316;
  padding: 0.85rem 1.2rem;
  border-radius: 0 12px 12px 0;
  margin: 1.3rem 0 !important;
}

.signature {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
}

.signature span {
  font-size: 1rem;
  color: #6b7280;
}

.sign-name {
  font-family: 'Caveat', cursive;
  font-size: 1.55rem !important;
  color: #be123c !important;
  font-weight: bold;
}

/* Flip Cards (2 Cards Layout) */
.reasons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 620px;
  margin: 0 auto;
}

.reason-item {
  height: 200px;
  perspective: 1000px;
  cursor: pointer;
}

.reason-front,
.reason-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  padding: 1.25rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  backface-visibility: hidden;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.reason-front {
  background: #ffffff;
  border: 1px solid #fed7aa;
}

.reason-front .icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.reason-front h3 {
  font-size: 1.05rem;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.tap-hint {
  font-size: 0.75rem;
  color: #ea580c;
  font-weight: 600;
  text-transform: uppercase;
}

.reason-back {
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  border: 1px solid #f97316;
  transform: rotateY(180deg);
  font-size: 0.94rem;
  color: #4b5563;
  line-height: 1.5;
}

.reason-item.flipped .reason-front {
  transform: rotateY(180deg);
}

.reason-item.flipped .reason-back {
  transform: rotateY(0deg);
}

/* DECISION ARENA (BULLETPROOF & BALANCED) */
.decision-arena {
  text-align: center;
  padding: 3rem 1.8rem 2.5rem;
  border: 2px solid #fed7aa;
  position: relative;
}

.decision-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: #1f2937;
  margin-bottom: 0.4rem;
}

.decision-sub {
  color: #6b7280;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.decision-playground {
  position: relative;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin: 0 auto;
}

.btn-yes {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #f43f5e 100%);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1.1rem 2.2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease;
  z-index: 5;
}

.btn-yes:hover {
  transform: scale(1.08);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.6);
}

.btn-no {
  background: #ffffff;
  color: #6b7280;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.95rem 1.8rem;
  border-radius: 9999px;
  border: 1.5px solid #d1d5db;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s;
  user-select: none;
  z-index: 6;
  white-space: nowrap;
}

.btn-no.surrendered {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  cursor: pointer;
  transform: none !important;
}

.fun-warning {
  margin-top: 1.5rem;
  font-family: 'Caveat', cursive;
  font-size: 1.45rem;
  font-weight: 700;
  color: #c2410c;
  min-height: 35px;
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(17, 24, 39, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #ffffff;
  max-width: 480px;
  width: 100%;
  border-radius: 28px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  transform: scale(0.85);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-confetti-anim {
  font-size: 3.5rem;
  margin-bottom: 0.8rem;
}

.modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  color: #c2410c;
  margin-bottom: 0.8rem;
}

.modal-body {
  font-size: 1.05rem;
  color: #4b5563;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.treat-summary {
  background: #fff7ed;
  border: 1px dashed #f97316;
  border-radius: 14px;
  padding: 1rem;
  font-size: 0.95rem;
  color: #9a3412;
  margin-bottom: 1.8rem;
}

.modal-close-btn {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
}

.modal-close-btn:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

/* Responsive Breakpoints & Mobile Polish */
@media (max-width: 640px) {
  .audio-control {
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }
  .hero-section {
    padding: 2.8rem 0.5rem 1.8rem;
  }
  .main-title {
    font-size: 2.15rem;
  }
  .subtitle {
    font-size: 1.35rem;
    margin-bottom: 1.4rem;
  }
  .section-card {
    padding: 1.8rem 1.25rem;
    border-radius: 20px;
    margin-bottom: 2rem;
  }
  .reasons-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .decision-playground {
    flex-direction: column;
    min-height: 150px;
    gap: 1.2rem;
  }
  .btn-yes {
    font-size: 1.1rem;
    padding: 0.95rem 1.8rem;
    width: 100%;
    max-width: 300px;
  }
  .btn-no {
    font-size: 0.95rem;
    padding: 0.85rem 1.4rem;
    max-width: 90%;
    white-space: normal;
    text-align: center;
  }
  .decision-title {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .page-wrapper {
    padding: 1.2rem 0.85rem 3.5rem;
  }
  .hero-section {
    padding: 2.4rem 0.2rem 1.4rem;
  }
  .badge-pill {
    font-size: 0.78rem;
    padding: 0.35rem 1rem;
  }
  .main-title {
    font-size: 1.85rem;
  }
  .subtitle {
    font-size: 1.2rem;
  }
  .cute-avatar {
    width: 145px;
    height: 145px;
  }
  .tagline {
    font-size: 1.3rem;
  }
  .section-card {
    padding: 1.6rem 1rem;
    border-radius: 18px;
    margin-bottom: 1.6rem;
  }
  .card-ribbon {
    left: 1.2rem;
    font-size: 0.78rem;
    padding: 0.28rem 0.9rem;
  }
  .letter-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .letter-content {
    font-size: 0.98rem;
    line-height: 1.65;
  }
  .highlight-quote {
    font-size: 1.3rem;
    padding: 0.75rem 0.95rem;
    margin: 1.1rem 0 !important;
  }
  .salutation {
    font-size: 1.4rem;
  }
  .reason-item {
    height: 190px;
  }
  .modal-card {
    padding: 2rem 1.25rem;
    border-radius: 22px;
  }
  .modal-title {
    font-size: 1.55rem;
  }
  .modal-body {
    font-size: 0.95rem;
  }
}
