/* ===================================================================
   FLOWER BOUQUET & BLOOMING ANIMATIONS - V4 SIMULTANEOUS BLOOM
   All Elements (Wrapper, Stems, Foliage, All Flowers) Bloom AT THE SAME TIME
   =================================================================== */

.bouquet-section {
  padding: 80px 0 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  text-align: center;
}

.bouquet-container {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 600px;
  margin: 25px auto 35px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 600px) {
  .bouquet-section {
    padding-top: 60px;
  }
  .bouquet-container {
    height: 480px;
    max-width: 390px;
  }
}

/* Entire Bouquet SVG scales and blooms smoothly together */
.bouquet-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 20px 45px rgba(160, 90, 105, 0.25));
  transform-origin: center 85%;
  transform: scale(0.85);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1s ease;
}

.bouquet-container.bloomed .bouquet-svg {
  transform: scale(1);
  opacity: 1;
}

/* ───────────────────────────────────────────────────────────────────
   1. STEMS (Appear simultaneously with the bouquet - NO delayed growth)
   ─────────────────────────────────────────────────────────────────── */
.stem {
  opacity: 0;
  transform-origin: center bottom;
  transform: scaleY(0.6);
  transition: opacity 1.1s ease, transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0s !important;
}

.bouquet-container.bloomed .stem {
  opacity: 1;
  transform: scaleY(1);
}

/* ───────────────────────────────────────────────────────────────────
   2. FOLIAGE & LEAVES (Bloom at the exact same time)
   ─────────────────────────────────────────────────────────────────── */
.foliage-leaf {
  transform-origin: center bottom;
  transform: scale(0.3);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 1s ease;
  transition-delay: 0s !important;
}

.bouquet-container.bloomed .foliage-leaf {
  transform: scale(1);
  opacity: 1;
}

/* ───────────────────────────────────────────────────────────────────
   3. ALL FLOWER BLOOMS (Bloom SIMULTANEOUSLY at the exact same time)
   No staggered delays: all flowers unfurl together in one harmony!
   ─────────────────────────────────────────────────────────────────── */
.flower-slot {
  cursor: pointer;
}

.flower-bloom {
  transform-origin: 0 0;
  transform: scale(0.2) rotate(-8deg);
  opacity: 0;
  transition: transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.9s ease, filter 0.3s ease;
  transition-delay: 0s !important;
}

.bouquet-container.bloomed .flower-bloom {
  transform: scale(1) rotate(0deg);
  opacity: 1;
}

/* Remove any lingering delays on individual slots */
.bouquet-container.bloomed .flower-slot .flower-bloom {
  transition-delay: 0s !important;
}

/* Flower Hover & Interaction */
.flower-slot:hover .flower-bloom {
  transform: scale(1.14) translateY(-8px) !important;
  filter: drop-shadow(0 0 20px rgba(246, 149, 170, 0.85)) brightness(1.1);
}

.flower-slot:active .flower-bloom {
  transform: scale(1.05) !important;
}

/* Organic gentle swaying */
.sway-flower {
  animation: gentleFlowerSway 4.5s ease-in-out infinite alternate;
}

.flower-slot:nth-child(even) .sway-flower {
  animation-duration: 5.2s;
  animation-delay: -2s;
}

@keyframes gentleFlowerSway {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(1.8deg); }
  100% { transform: rotate(-1.8deg); }
}

/* ───────────────────────────────────────────────────────────────────
   4. FAIRY LIGHTS (Glow concurrently)
   ─────────────────────────────────────────────────────────────────── */
.fairy-lights-group {
  opacity: 0;
  transition: opacity 1.2s ease 0.3s;
}

.bouquet-container.bloomed .fairy-lights-group {
  opacity: 1;
}

.fairy-light {
  animation: fairyTwinkle 2.8s infinite ease-in-out alternate;
}

.fl-1 { animation-delay: 0s; }
.fl-2 { animation-delay: 0.5s; }
.fl-3 { animation-delay: 1.1s; }
.fl-4 { animation-delay: 1.6s; }
.fl-5 { animation-delay: 0.8s; }
.fl-6 { animation-delay: 2.1s; }
.fl-7 { animation-delay: 1.3s; }

@keyframes fairyTwinkle {
  0% {
    opacity: 0.35;
    transform: scale(0.85);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
}

/* ───────────────────────────────────────────────────────────────────
   5. KRAFT & TISSUE WRAPPER (Blooms at the exact same time)
   ─────────────────────────────────────────────────────────────────── */
.bouquet-wrapper-paper {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  transition: opacity 1.1s ease, transform 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 0s !important;
}

.bouquet-container.bloomed .bouquet-wrapper-paper {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hint Pill underneath bouquet */
.bouquet-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: 1.5px dashed var(--blush-400);
  color: var(--blush-deep);
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(232, 93, 117, 0.18);
  animation: bounceHint 2.4s infinite ease-in-out;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.bouquet-hint-pill:hover {
  background: var(--blush-100);
  transform: scale(1.04);
  box-shadow: 0 10px 25px rgba(232, 93, 117, 0.28);
}

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