/* ========================================================================
   PLATFORM PAGE STYLES
   ========================================================================

   Custom styles for the Platform Overview page including the lifecycle
   journey, phase numbers, and golden thread connector.

   ======================================================================== */

/* ===== LIFECYCLE JOURNEY ===== */
.lifecycle-journey {
  position: relative;
}

.lifecycle-phase {
  position: relative;
  margin-bottom: 6rem !important;
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.lifecycle-phase:first-child {
  padding-top: 0 !important;
}

.lifecycle-phase:last-child {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* Phase Number Badge */
.phase-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: linear-gradient(135deg, hsl(var(--color-deep-royal-blue)), hsl(var(--color-electric-cyan)));
  color: white;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: var(--font-weight-bold);
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px hsl(var(--color-electric-cyan) / 0.3);
  flex-shrink: 0;
}

/* Golden Thread - Connecting Line */
.golden-thread {
  position: relative;
  height: 10rem !important;
  margin: 6rem auto !important;
  max-width: 6rem;
}

.golden-thread::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    hsl(var(--color-electric-cyan) / 0.3) 0%,
    hsl(var(--color-electric-cyan) / 0.6) 50%,
    hsl(var(--color-electric-cyan) / 0.3) 100%
  );
  transform: translateX(-50%);
}

.golden-thread::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: hsl(var(--color-electric-cyan));
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 12px hsl(var(--color-electric-cyan) / 0.6);
  animation: pulse-thread 2s ease-in-out infinite;
}

@keyframes pulse-thread {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 12px hsl(var(--color-electric-cyan) / 0.6);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 20px hsl(var(--color-electric-cyan) / 0.8);
  }
}

/* Responsive adjustments */
@media (max-width: 1023px) {
  .lifecycle-phase {
    display: flex;
    flex-direction: column;
  }

  .lifecycle-phase .glass-card {
    order: 2 !important;
  }

  .lifecycle-phase > div:not(.glass-card) {
    order: 1 !important;
  }
}

/* Section midnight - ensure proper contrast */
.section-midnight {
  background-color: hsl(var(--color-navy));
  color: white;
}

/* Gradient text variations for platform page */
.gradient-text-blue {
  background: linear-gradient(90deg, hsl(var(--color-deep-royal-blue)), hsl(var(--color-electric-cyan)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-orange {
  background: linear-gradient(90deg, #FF6700 0%, #FFB703 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced glass card for lifecycle sections */
.lifecycle-phase .glass-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Image styling for lifecycle phases */
.lifecycle-phase img {
  border: 1px solid hsl(var(--color-border));
}

/* Improved spacing for lifecycle content */
.lifecycle-phase h3 {
  line-height: 1.3;
}

.lifecycle-phase .text-destructive {
  color: hsl(var(--color-destructive));
}

/* Ensure proper contrast in dark sections */
.section-midnight .gradient-text {
  background: linear-gradient(90deg, #FF6700 0%, #FFB703 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Button link styling */
a.btn {
  text-decoration: none !important;
}

a.btn:hover,
a.btn:focus {
  text-decoration: none !important;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .golden-thread::after {
    animation: none !important;
  }
}
