/**
 * Phase System Styling
 * Styles for transformation roadmap, BPAs, and value drivers
 * Last Updated: November 5, 2025
 */

/* ==================== TRANSFORMATION ROADMAP SECTION ==================== */

.transformation-roadmap-section {
  margin: 3rem 0;
}

.transformation-roadmap-header {
  margin-bottom: 2rem;
}

.transformation-roadmap-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.transformation-roadmap-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

#transformationRoadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ==================== PHASE CARDS ==================== */

.phase-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  border-left: 4px solid;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.phase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.phase-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.phase-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(123, 44, 191, 0.1);
  border-radius: 50%;
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.phase-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.phase-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.phase-duration {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.phase-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  min-height: 2.8rem;
}

.phase-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 1rem 0;
}

.phase-metric {
  text-align: center;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 0.25rem;
}

.dashboard-card-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: right;
}

.dashboard-card-cta-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.phase-card:hover .dashboard-card-cta-text {
  gap: 0.75rem;
}

/* ==================== BUSINESS PROCESS AREAS SECTION ==================== */

.business-process-areas-section {
  margin: 3rem 0;
}

.business-process-areas-header {
  margin-bottom: 2rem;
}

.business-process-areas-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.business-process-areas-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

#businessProcessAreas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ==================== BPA CARDS ==================== */

.bpa-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.bpa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.bpa-header {
  padding: 1.5rem;
  background-color: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-color);
}

.bpa-number {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.bpa-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.bpa-phase-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background-color: rgba(123, 44, 191, 0.1);
  color: var(--color-primary);
  border-radius: 4px;
}

.bpa-content {
  padding: 1.5rem;
}

.bpa-pain {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.bpa-pain strong {
  color: var(--text-primary);
}

.bpa-value {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.bpa-value strong {
  color: var(--text-primary);
}

.value-range {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 0.25rem;
}

/* ==================== VALUE DRIVERS SECTION ==================== */

.value-drivers-section {
  margin: 3rem 0;
}

.value-drivers-header {
  margin-bottom: 2rem;
}

.value-drivers-header h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.value-drivers-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

#valueDrivers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* ==================== VALUE DRIVER CARDS ==================== */

.vd-card {
  background-color: var(--bg-secondary);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  border-top: 3px solid var(--color-primary);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.vd-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.vd-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.vd-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.vd-title-section {
  flex: 1;
}

.vd-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.vd-type-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.vd-type-badge.strategic {
  background-color: rgba(155, 89, 182, 0.1);
  color: var(--color-primary);
}

.vd-type-badge.operational {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--color-accent-light);
}

.vd-content {
  flex: 1;
}

.vd-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.vd-value {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.vd-value strong {
  color: var(--text-primary);
}

.value-emphasis {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 0.25rem;
}

/* ==================== PHASE SCROLL NAVIGATION ==================== */

#phaseScrollNav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  background-color: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  overflow-x: auto;
  flex-wrap: wrap;
}

.phase-nav-link {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.phase-nav-link:hover {
  background-color: rgba(123, 44, 191, 0.05);
  color: var(--color-primary);
}

.phase-nav-link.active {
  background-color: rgba(123, 44, 191, 0.1);
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
  #transformationRoadmap,
  #businessProcessAreas,
  #valueDrivers {
    grid-template-columns: 1fr;
  }

  .phase-metrics {
    grid-template-columns: 1fr;
  }

  .transformation-roadmap-header h2,
  .business-process-areas-header h2,
  .value-drivers-header h2 {
    font-size: 1.5rem;
  }

  #phaseScrollNav {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  .phase-card,
  .bpa-card,
  .vd-card {
    padding: 1rem;
  }

  .phase-title,
  .bpa-title,
  .vd-title {
    font-size: 1rem;
  }

  .transformation-roadmap-header h2,
  .business-process-areas-header h2,
  .value-drivers-header h2 {
    font-size: 1.25rem;
  }

  .transformation-roadmap-header p,
  .business-process-areas-header p,
  .value-drivers-header p {
    font-size: 1rem;
  }

  .phase-metrics {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  #phaseScrollNav {
    flex-direction: column;
    gap: 0.25rem;
  }

  .phase-nav-link {
    width: 100%;
    text-align: left;
  }
}

/* ==================== PHASE-SPECIFIC COLORS ==================== */

.phase-0 { border-left-color: var(--phase-0-color); }
.phase-1 { border-left-color: var(--phase-1-color); }
.phase-2 { border-left-color: var(--phase-2-color); }
.phase-3 { border-left-color: var(--phase-3-color); }
.phase-4 { border-left-color: var(--phase-4-color); }

/* ==================== ANIMATION ==================== */

.phase-card,
.bpa-card,
.vd-card {
  animation: fadeInUp 0.6s ease-out backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Stagger animation for multiple cards */
#transformationRoadmap .phase-card:nth-child(1) { animation-delay: 0.1s; }
#transformationRoadmap .phase-card:nth-child(2) { animation-delay: 0.2s; }
#transformationRoadmap .phase-card:nth-child(3) { animation-delay: 0.3s; }
#transformationRoadmap .phase-card:nth-child(4) { animation-delay: 0.4s; }
#transformationRoadmap .phase-card:nth-child(5) { animation-delay: 0.5s; }

/* ==================== UTILITY CLASSES ==================== */

.dashboard-card-interactive {
  cursor: pointer;
}

.dashboard-card-interactive:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}
