/*
========================================
 PaylessWatts Solar Form (React)
 PlayStation White Progress Bar Styles
 Sophisticated Steel & Charcoal Aesthetic
========================================
*/

/**
 * PaylessWatts React Form - PlayStation White Progress Bar
 * 
 * Sophisticated progress indicators with steel progression
 */

/* PlayStation Progress Container */
.progress-container {
  margin-bottom: 3rem;
  width: 100%;
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

/* PlayStation Progress Bar */
.progress {
  height: 12px;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 
    inset 0 2px 4px rgba(0, 0, 0, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.04);
  position: relative;
}

.progress::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.3) 0%, 
    transparent 50%, 
    rgba(255, 255, 255, 0.1) 100%);
  border-radius: 50px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(135deg, #334155, #475569);
  border-radius: 50px;
  transition: width 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: 
    0 2px 8px rgba(51, 65, 85, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.progress-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0.2) 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    rgba(255, 255, 255, 0.2) 100%);
  background-size: 200% 100%;
  animation: playstationShine 2s ease-in-out infinite;
  border-radius: 50px;
}

/* PlayStation Shine Animation */
@keyframes playstationShine {
  0% { 
    background-position: -200% 0; 
    opacity: 0;
  }
  50% { 
    background-position: 200% 0; 
    opacity: 1;
  }
  100% { 
    background-position: 400% 0; 
    opacity: 0;
  }
}

/* PlayStation Step Counter */
.step-counter {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.step-counter small {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.01em;
}

/* PlayStation Step Indicators */
.step-indicators {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  position: relative;
  padding: 0 1rem;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 120px;
}

/* PlayStation Step Dot */
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  transition: all 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  z-index: 2;
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.step-dot::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 300ms ease;
}

.step-dot-index {
  font-size: 0.875rem;
  font-weight: 700;
  color: #94a3b8;
  transition: all 300ms ease;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* PlayStation Step Label */
.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  text-align: center;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: all 300ms ease;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.01em;
}

/* PlayStation Connector Lines */
.step-connector {
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  right: calc(50% + 16px);
  height: 3px;
  background: #e2e8f0;
  z-index: 1;
  border-radius: 2px;
  transition: all 400ms ease;
}

/* Active Step - PlayStation Style */
.step-indicator.active .step-dot {
  background: linear-gradient(135deg, #334155, #475569);
  border-color: #334155;
  transform: scale(1.15);
  box-shadow: 
    0 0 0 6px rgba(51, 65, 85, 0.1),
    0 8px 16px rgba(51, 65, 85, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  animation: playstationPulse 2s ease-in-out infinite;
}

.step-indicator.active .step-dot::before {
  opacity: 1;
}

.step-indicator.active .step-dot-index {
  color: white;
  font-weight: 800;
}

.step-indicator.active .step-label {
  color: #334155;
  font-weight: 700;
  transform: translateY(-2px);
}

/* Completed Step - PlayStation Style */
.step-indicator.completed .step-dot {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  transform: scale(1.05);
  box-shadow: 
    0 6px 12px rgba(16, 185, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.step-indicator.completed .step-dot-index {
  color: white;
  font-weight: 800;
}

.step-indicator.completed .step-label {
  color: #10b981;
  font-weight: 700;
}

.step-indicator.completed .step-connector {
  background: linear-gradient(90deg, #10b981, #059669);
  box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

/* PlayStation Pulse Animation */
@keyframes playstationPulse {
  0%, 100% {
    box-shadow: 
      0 0 0 6px rgba(51, 65, 85, 0.1),
      0 8px 16px rgba(51, 65, 85, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
  50% {
    box-shadow: 
      0 0 0 10px rgba(51, 65, 85, 0.15),
      0 12px 24px rgba(51, 65, 85, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
}

/* Upcoming Step - PlayStation Style */
.step-indicator.upcoming .step-dot {
  background: rgba(248, 250, 252, 0.8);
  border-color: #cbd5e1;
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.step-indicator.upcoming .step-dot-index {
  color: #cbd5e1;
}

.step-indicator.upcoming .step-label {
  color: #94a3b8;
}

/* PlayStation Mobile Responsive */
@media (max-width: 768px) {
  .progress-container {
    margin-bottom: 2.5rem;
  }
  
  .progress {
    height: 10px;
  }
  
  .step-counter small {
    font-size: 0.8rem;
  }
  
  /* Hide detailed step indicators on mobile, keep simple progress */
  .step-indicators {
    display: none;
  }
  
  /* Show simplified step dots for mobile */
  .mobile-step-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
  }
  
  .mobile-step-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e2e8f0;
    transition: all 300ms ease;
  }
  
  .mobile-step-dot.completed {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
  }
  
  .mobile-step-dot.active {
    background: linear-gradient(135deg, #334155, #475569);
    transform: scale(1.5);
    box-shadow: 0 2px 6px rgba(51, 65, 85, 0.3);
  }
}

@media (max-width: 576px) {
  .progress-container {
    margin-bottom: 2rem;
  }
  
  .progress {
    height: 8px;
  }
  
  .step-counter {
    justify-content: center;
    margin-top: 0.75rem;
  }
  
  .step-counter small {
    font-size: 0.75rem;
  }
}

/* PlayStation Desktop Enhancement */
@media (min-width: 769px) {
  .step-indicators {
    margin-top: 2.5rem;
    padding: 0 2rem;
  }
  
  .step-dot {
    width: 36px;
    height: 36px;
  }
  
  .step-dot-index {
    font-size: 1rem;
  }
  
  .step-label {
    font-size: 0.875rem;
    max-width: 120px;
  }
  
  .step-connector {
    top: 18px;
    left: calc(50% + 18px);
    right: calc(50% + 18px);
    height: 4px;
  }
} 