/* -------------------------------------------------------
   GLOBAL RESET & BASE
------------------------------------------------------- */

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

body.app {
  font-family: "Inter", sans-serif;
  background: #faf7f5;
  color: #333;
  line-height: 1.4;
  padding: 0;
  margin: 0;
}

.app-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* -------------------------------------------------------
   HEADER
------------------------------------------------------- */

.app-header {
  text-align: center;
  margin-bottom: 30px;
}

.app-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.app-tagline {
  font-size: 1rem;
  opacity: 0.7;
}

/* -------------------------------------------------------
   SCREEN LAYOUT
------------------------------------------------------- */

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.screen-inner {
  display: flex;
  gap: 30px;
}

.screen-inner--recipient {
  flex-direction: column;
  align-items: center;
}

/* -------------------------------------------------------
   FORGE PREVIEW
------------------------------------------------------- */

.forge-preview {
  flex: 1;
}

.forge-canvas {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px auto;
}

.heart-svg {
  width: 100%;
  height: auto;
  display: block;
}

/* -------------------------------------------------------
   MESSAGE DISPLAY (external echo)
------------------------------------------------------- */

#heart-message-display,
#received-heart-message-display {
  margin-top: 10px;
  text-align: center;
  font-size: 1.2rem;
  opacity: 0.85;
  font-style: italic;
}

/* -------------------------------------------------------
   ACTIVATION BUTTONS
------------------------------------------------------- */

.heart-activation {
  margin-top: 20px;
  text-align: center;
}

.btn {
  padding: 10px 16px;
  border: none;
  cursor: pointer;
  border-radius: 6px;
  font-size: 1rem;
}

.btn-primary {
  background: #ff3366;
  color: white;
}

.btn-secondary {
  background: #ddd;
  color: #333;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #aaa;
  color: #333;
}

/* -------------------------------------------------------
   PANELS & CONTROLS
------------------------------------------------------- */

.forge-controls {
  width: 340px;
  flex-shrink: 0;
}

.panel {
  background: white;
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.panel-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.control-group {
  margin-bottom: 14px;
}

.control-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
  opacity: 0.8;
}

.control-input {
  width: 100%;
  padding: 6px;
  font-size: 1rem;
}

.panel-subsection {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.panel-subtitle {
  font-size: 1rem;
  margin-bottom: 8px;
  opacity: 0.8;
}

/* -------------------------------------------------------
   EMOJI LIST
------------------------------------------------------- */

.emoji-add-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.emoji-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.emoji-list button {
  background: #f2f2f2;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
}

/* -------------------------------------------------------
   OFFERING PANEL
------------------------------------------------------- */

.send-actions {
  margin-top: 10px;
}

.share-link-wrapper {
  margin-top: 12px;
}

.share-link-row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.share-link-input {
  flex: 1;
  padding: 6px;
}

/* -------------------------------------------------------
   RECIPIENT SCREEN
------------------------------------------------------- */

.recipient-main {
  text-align: center;
}

.received-canvas {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 20px auto;
}

/* -------------------------------------------------------
   ANIMATIONS
------------------------------------------------------- */

@keyframes heartPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); }
}

@keyframes heartGlow {
  0% { filter: drop-shadow(0 0 0px rgba(255, 80, 120, 0)); }
  100% { filter: drop-shadow(0 0 20px rgba(255, 80, 120, 0.6)); }
}

.heart-activated {
  animation: heartPulse 0.8s ease-out forwards,
             heartGlow 1.2s ease-out forwards;
}

/* Shimmer animation (now inside SVG) */
@keyframes shimmerMove {
  0% { opacity: 0; }
  50% { opacity: 0.4; }
  100% { opacity: 0; }
}

/* -------------------------------------------------------
   MISC
------------------------------------------------------- */

.forge-mode-indicator {
  text-align: center;
  margin-bottom: 10px;
  font-size: 0.9rem;
  opacity: 0.7;
}

.app-footer {
  margin-top: 40px;
  text-align: center;
  opacity: 0.6;
  font-size: 0.9rem;
}
.heart-text-stack {
  margin-top: 12px;
  text-align: center;
}

.emoji-layer {
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 6px;
}







body {
  background: radial-gradient(circle at center, #ffe6ef 0%, #ffb3c9 40%, #ff8fb3 100%);
  background-attachment: fixed;
}
.valentine-float {
  position: fixed;
  top: -10vh;
  left: 50%;
  font-size: 2rem;
  opacity: 0.4;
  animation: floatUp 8s linear infinite;
  pointer-events: none;
}

@keyframes floatUp {
  0% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.4; }
  100% { transform: translateX(-50%) translateY(-120vh) scale(1.4); opacity: 0; }
}

#screen-forge, #screen-recipient {
  border: 3px solid #ff4f7a;
  border-radius: 20px;
  padding: 20px;
  background: rgba(255, 240, 245, 0.6);
  backdrop-filter: blur(6px);
}


h1, h2, h3 {
  color: #ff3366;
  font-family: 'Dancing Script', cursive;
  text-shadow: 0 0 6px rgba(255, 80, 120, 0.4);
}
button {
  border-radius: 12px;
  background: #ff5c8a;
  color: white;
  box-shadow: 0 0 10px rgba(255, 80, 120, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 14px rgba(255, 80, 120, 0.9);
}
.heart-activated {
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
#valentine-banner {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #ff3366;
  font-family: 'Dancing Script', cursive;
}
