/* ==========================================================================
   ROMANTIC JOURNEY MAP - CIRCLE NODES & DOTTED PATH
   A winding fairytale relationship path with small circular milestone logos,
   connected by a charming dotted trail. Tapping any circle opens its memory block.
   ========================================================================== */

.timeline-section {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.25rem 5.5rem;
}

.timeline-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.timeline-header .romantic-badge {
  margin-bottom: 0.8rem;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5.5vw, 3rem);
  color: var(--text-primary);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.timeline-subtitle {
  font-size: 0.98rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.6;
}

.timeline-progress-bar-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.timeline-progress-pill {
  width: 180px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 182, 193, 0.4);
  overflow: hidden;
  position: relative;
}

.timeline-progress-fill {
  height: 100%;
  width: 11%;
  background: linear-gradient(90deg, #ff4d79, #ff7597);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(255, 77, 121, 0.5);
}

.timeline-progress-text {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pink-primary);
}

/* ==========================================================================
   THE TRANSLUCENT JOURNEY MAP BLOCK & CURVED TRAIL
   ========================================================================== */

.progression-map {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3.5rem 1.5rem 4rem;
  max-width: 620px;
  margin: 0 auto;

  /* Solid / Translucent Glowing Romantic Block */
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1.5px solid rgba(255, 182, 193, 0.65);
  border-radius: 36px;
  box-shadow: 
    0 24px 60px rgba(255, 105, 180, 0.12),
    0 4px 18px rgba(255, 182, 193, 0.22),
    inset 0 2px 4px rgba(255, 255, 255, 0.95);
  overflow: visible;
}

/* Remove old straight center line */
.progression-map::before {
  display: none !important;
}

/* Connected Curved SVG Trail */
.journey-curved-trail-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: visible;
}

.journey-curved-path-glow {
  filter: blur(4px);
  opacity: 0.7;
}

.journey-curved-path {
  filter: drop-shadow(0 0 6px rgba(255, 117, 151, 0.6));
  animation: trailDashPulse 6s ease-in-out infinite alternate;
}

@keyframes trailDashPulse {
  0% {
    stroke-dashoffset: 0;
    opacity: 0.85;
  }
  100% {
    stroke-dashoffset: 40;
    opacity: 1;
  }
}

/* Individual Map Point */
.journey-map-point {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 1.8rem 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Organic Winding Trail Offsets (Desktop & Tablet) */
.journey-map-point.pos-center {
  transform: translateX(0);
}

.journey-map-point.pos-left {
  transform: translateX(-70px);
}

.journey-map-point.pos-right {
  transform: translateX(70px);
}

/* Inner Point Container */
.map-point-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Small Circle Logo Button */
.map-circle-node {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, #fff2f6 100%);
  border: 2.5px solid #ff668a;
  box-shadow: 
    0 8px 24px rgba(255, 77, 121, 0.28),
    0 0 0 5px rgba(255, 214, 224, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.map-circle-node:hover {
  transform: scale(1.15) translateY(-4px);
  border-color: #ff3366;
  box-shadow: 
    0 14px 32px rgba(255, 77, 121, 0.45),
    0 0 0 8px rgba(255, 200, 215, 0.7);
}

.map-circle-node:active {
  transform: scale(0.96);
}

/* Circle Icon */
.circle-icon {
  font-size: 1.65rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(220, 50, 100, 0.25));
  transition: transform 0.25s ease;
}

.map-circle-node:hover .circle-icon {
  transform: scale(1.12);
}

/* Small Milestone Number Badge */
.circle-num {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff4d79, #ff7597);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(255, 77, 121, 0.4);
}

/* Subtle Pulsing Halo around Circle Node */
.circle-halo {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 77, 121, 0.35);
  animation: mapHaloPulse 2.8s infinite ease-out;
  pointer-events: none;
}

@keyframes mapHaloPulse {
  0% { transform: scale(0.95); opacity: 0.75; }
  50% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(0.95); opacity: 0; }
}

/* Node Label Pill below Circle */
.map-node-label {
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.32rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 182, 193, 0.55);
  box-shadow: 0 4px 14px rgba(220, 80, 120, 0.1);
  transition: all 0.25s ease;
  user-select: none;
  max-width: 170px;
}

.map-node-label:hover {
  background: #ffffff;
  border-color: var(--pink-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(220, 80, 120, 0.18);
}

.map-node-title {
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.map-node-date {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--pink-primary);
  white-space: nowrap;
}

/* Viewed/Completed State */
.journey-map-point.is-viewed .map-circle-node {
  border-color: #ff3366;
  background: linear-gradient(145deg, #ffffff 0%, #ffeaf1 100%);
  box-shadow: 
    0 8px 24px rgba(255, 77, 121, 0.32),
    0 0 0 5px rgba(255, 182, 193, 0.65);
}

.journey-map-point.is-viewed .circle-num {
  background: linear-gradient(135deg, #e63968, #ff5c8a);
}

/* ==========================================================================
   MOBILE-FIRST ADJUSTMENTS
   ========================================================================== */

@media (max-width: 600px) {
  .timeline-section {
    padding: 3rem 1rem 4.5rem;
  }

  .timeline-header {
    margin-bottom: 2.2rem;
  }

  .progression-map {
    gap: 0.4rem;
    padding: 2rem 0;
  }

  .journey-map-point {
    margin: 1.2rem 0;
  }

  .journey-map-point.pos-left {
    transform: translateX(-48px);
  }

  .journey-map-point.pos-right {
    transform: translateX(48px);
  }

  .map-circle-node {
    width: 56px;
    height: 56px;
  }

  .circle-icon {
    font-size: 1.45rem;
  }

  .map-node-title {
    font-size: 0.82rem;
  }

  .map-node-date {
    font-size: 0.68rem;
  }
}

@media (max-width: 380px) {
  .journey-map-point.pos-left {
    transform: translateX(-34px);
  }

  .journey-map-point.pos-right {
    transform: translateX(34px);
  }

  .map-circle-node {
    width: 50px;
    height: 50px;
  }

  .circle-icon {
    font-size: 1.3rem;
  }
}
