/* ==========================================
   DESIGN SYSTEM & RESETS
   ========================================== */
:root {
  --primary-color: #ff5c8a;
  --primary-hover: #ff7597;
  --secondary-color: #fbc4ab;
  --dark-text: #2b2d42;
  --light-text: #6c757d;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.4);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 30px rgba(255, 92, 138, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.06);
  --font-main: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--dark-text);
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(-45deg, #ffe5ec, #ffc2d1, #ffb3c6, #ff8fab, #fbc4ab);
  background-size: 400% 400%;
  animation: gradientBG 15s ease infinite;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Moving gradient background animation */
@keyframes gradientBG {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ==========================================
   FLOATING HEART BACKGROUND
   ========================================== */
.heart-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-heart {
  position: absolute;
  font-size: 1.5rem;
  color: rgba(255, 92, 138, 0.15);
  animation: floatUp 6s linear forwards;
  pointer-events: none;
}

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

/* ==========================================
   LAYOUT CONTAINERS
   ========================================== */
.app-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
  padding: 20px;
}

/* Screens control */
.screen {
  display: none;
  width: 100%;
  max-width: 480px;
  justify-content: center;
  align-items: center;
}

.screen.active {
  display: flex;
  animation: screenAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Glassmorphism Card Style */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  padding: 2.5rem 2rem;
  width: 100%;
  box-shadow: var(--shadow-lg), var(--shadow-md);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ff5c8a, #ff99ac, #fbc4ab);
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2 {
  font-family: var(--font-serif);
  color: var(--dark-text);
  margin-bottom: 0.8rem;
  font-weight: 700;
  line-height: 1.25;
}

.intro-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #c9184a;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.question-title {
  font-size: 1.85rem;
  color: #c9184a;
}

.celebration-title {
  font-size: 1.85rem;
  color: #c9184a;
}

.section-title {
  font-size: 1.85rem;
  color: #c9184a;
}

p {
  font-size: 1.05rem;
  color: var(--light-text);
  margin-bottom: 1.5rem;
}

.accent-text {
  font-size: 0.9rem;
  color: var(--primary-color);
  font-weight: 600;
  display: block;
  margin-top: 5px;
}

/* ==========================================
   INTERACTIVE BUTTONS
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: var(--font-main);
  box-shadow: 0 4px 15px rgba(255, 92, 138, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #ff8fab);
  color: var(--white);
  width: 100%;
  margin-top: 1.5rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 92, 138, 0.35);
  background: linear-gradient(135deg, #ff7597, #ffa5ab);
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-yes {
  background: linear-gradient(135deg, #c9184a, #ff5c8a);
  color: var(--white);
  flex: 1;
}

.btn-yes:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(201, 24, 74, 0.4);
}

.btn-no {
  background: var(--white);
  color: var(--light-text);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
  flex: 1;
  position: relative;
  z-index: 10;
}

.button-group {
  display: flex;
  gap: 15px;
  margin-top: 1.5rem;
  min-height: 52px;
}

.relative-container {
  position: relative;
  width: 100%;
}

/* Copy plan button special visual style from Image 5 */
.btn-copy {
  background: #d81159; /* Matching pink-red button image 5 */
  color: var(--white);
  padding: 16px 32px;
  font-size: 1.2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-family: var(--font-main);
  box-shadow: 0 6px 25px rgba(216, 17, 89, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  font-weight: 600;
  margin-top: 20px;
}

.btn-copy:hover {
  transform: translateY(-3px);
  background: #ff126e;
  box-shadow: 0 8px 30px rgba(216, 17, 89, 0.45);
}

.copy-icon {
  width: 20px;
  height: 20px;
}

/* ==========================================
   IMAGES STYLING
   ========================================== */
.image-wrapper {
  margin: 1.5rem auto;
  border-radius: 20px;
  overflow: hidden;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper-small {
  margin: 0.5rem auto 1rem auto;
  border-radius: 12px;
  overflow: hidden;
  max-width: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.invite-image {
  max-height: 220px;
  width: auto;
  max-width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  object-fit: contain;
}

.invite-image-small {
  max-height: 110px;
  width: auto;
  max-width: 100%;
  border-radius: 10px;
  object-fit: contain;
}

/* Animation presets for images */
.animate-bounce {
  animation: softBounce 3s ease-in-out infinite;
}

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

.animate-celebrate {
  animation: celebrateScale 2.5s ease-in-out infinite;
}

@keyframes celebrateScale {
  0%, 100% { transform: scale(1) rotate(0); }
  50% { transform: scale(1.05) rotate(2deg); }
}

.animate-pulse {
  animation: pulseButton 1.8s infinite;
}

@keyframes pulseButton {
  0% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 92, 138, 0.2); }
  50% { transform: scale(1.02); box-shadow: 0 4px 25px rgba(255, 92, 138, 0.45); }
  100% { transform: scale(1); box-shadow: 0 4px 15px rgba(255, 92, 138, 0.2); }
}

/* ==========================================
   TIMER ELEMENTS (SCREEN 1)
   ========================================== */
.timer-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 1.5rem 0 1rem 0;
  background: rgba(255, 255, 255, 0.4);
  padding: 8px 16px;
  border-radius: 100px;
}

.progress-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 100px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ff5c8a, #ff99ac);
  border-radius: 100px;
  transition: width 0.1s linear;
}

.timer-seconds {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.95rem;
  min-width: 32px;
  text-align: right;
}

.skip-btn {
  background: none;
  border: none;
  color: var(--light-text);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  margin-top: 10px;
  font-family: var(--font-main);
  transition: color 0.2s ease;
}

.skip-btn:hover {
  color: var(--primary-color);
}

.heart-pulsing {
  font-size: 4rem;
  animation: heartPulse 1.2s infinite;
  display: inline-block;
  margin-bottom: 10px;
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  15% { transform: scale(1.2) rotate(-5deg); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15) rotate(3deg); }
  60% { transform: scale(1); }
  100% { transform: scale(1); }
}

/* ==========================================
   NO PRESSURE CAPTION TEXT
   ========================================== */
.no-pressure-text {
  font-family: var(--font-main);
  font-size: 1.15rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  background-color: #2b2d42; /* dark blue-black block */
  padding: 8px 16px;
  border-radius: 6px;
  display: inline-block;
  margin: 0.5rem auto 1.2rem auto;
  transform: rotate(-1.5deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
  animation: floatScale 3s ease-in-out infinite alternate;
}

@keyframes floatScale {
  0% { transform: rotate(-1.5deg) scale(0.98); }
  100% { transform: rotate(-1.5deg) scale(1.02); }
}

/* ==========================================
   CONFETTI CANVAS (SCREEN 3)
   ========================================== */
#confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* ==========================================
   FOOD CARDS (SCREEN 5)
   ========================================== */
.food-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 1.5rem 0;
}

.food-card {
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 16px 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.food-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 6px 15px rgba(255, 92, 138, 0.12);
}

.food-card.selected {
  border-color: var(--primary-color);
  background: rgba(255, 229, 236, 0.7);
  box-shadow: 0 8px 20px rgba(255, 92, 138, 0.18);
}

.food-emoji {
  font-size: 2.2rem;
  margin-bottom: 8px;
  transition: transform 0.3s ease;
}

.food-card:hover .food-emoji {
  transform: scale(1.15) rotate(5deg);
}

.food-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-text);
}

.checkbox-indicator {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.food-card.selected .checkbox-indicator {
  border-color: var(--primary-color);
  background: var(--primary-color);
}

.food-card.selected .checkbox-indicator::after {
  content: '';
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  transform: rotate(-45deg) translate(1px, -1px);
  display: block;
}

/* ==========================================
   SUMMARY DETAILS (SCREEN 6)
   ========================================== */
.summary-details {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  padding: 18px;
  margin: 1.2rem 0;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-sm);
}

.summary-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.summary-row:last-child {
  margin-bottom: 0;
}

.summary-icon {
  font-size: 1.3rem;
  margin-right: 12px;
  width: 25px;
  text-align: center;
}

.summary-label {
  font-weight: 600;
  color: var(--light-text);
  margin-right: 8px;
  min-width: 75px;
}

.summary-val {
  font-weight: 700;
  color: #c9184a;
}

/* ==========================================
   TOAST NOTIFICATION (CLIPBOARD SUCCESS)
   ========================================== */
.toast {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  background: rgba(43, 45, 66, 0.95);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  z-index: 100;
  opacity: 1;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

/* ==========================================
   RESPONSIVE OPTIMIZATIONS
   ========================================== */
@media (max-width: 480px) {
  .glass-card {
    padding: 1.8rem 1.2rem;
  }
  
  .intro-title {
    font-size: 2.1rem;
  }
  
  .question-title {
    font-size: 1.55rem;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
  
  .btn-copy {
    font-size: 1.05rem;
    padding: 14px 24px;
  }

  .food-emoji {
    font-size: 1.8rem;
  }
  
  .food-name {
    font-size: 0.85rem;
  }
}
