/* =============================================
   PharmaRegAI — eQMS Page Styles
   ============================================= */

/* MVP Timeline */
.mvp-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  padding: var(--space-xl) 0;
}

.mvp-timeline::before {
  content: "";
  position: absolute;
  top: calc(var(--space-xl) + var(--space-md) + 28px);
  left: 5%;
  right: 5%;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: 4px;
  transform: translateY(-50%);
  z-index: 0;
}

.mvp-week {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mvp-week-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-small);
  margin-bottom: var(--space-sm);
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26, 86, 219, 0.3);
}

.mvp-week h4 {
  font-size: var(--fs-body);
  margin-bottom: var(--space-xs);
}

.mvp-week p {
  font-size: var(--fs-small);
  margin-inline: auto;
  max-width: 240px;
  color: var(--text-dark-muted);
}

.section-light .mvp-week p {
  color: var(--text-light-muted);
}

/* eQMS Features Grid */
.eqms-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-md);
  align-items: stretch;
}

.eqms-features-grid .feature-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.eqms-features-grid .feature-card p {
  flex-grow: 1;
}

/* eQMS Benefit Cards */
.eqms-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: var(--space-md);
  align-items: stretch;
}

.eqms-benefit-card {
  padding: var(--space-xl);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.eqms-benefit-card p {
  flex-grow: 1;
}

.eqms-benefit-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-sm);
}

/* eQMS Problem Cards */
.eqms-problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-md);
  align-items: stretch;
}

.eqms-problem-grid .problem-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.eqms-problem-grid .problem-card p {
  flex-grow: 1;
}

/* Compliance Section */
.compliance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.compliance-card {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.compliance-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 86, 219, 0.1);
  border: 1px solid rgba(26, 86, 219, 0.2);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .mvp-timeline {
    grid-template-columns: 1fr;
    gap: var(--space-md);
    padding-left: 20px;
  }
  .mvp-timeline::before {
    top: 0;
    bottom: 0;
    left: 48px;
    right: auto;
    width: 4px;
    height: 100%;
    transform: none;
  }
  .mvp-week {
    text-align: left;
    align-items: flex-start;
    padding-left: 72px;
  }
  .mvp-week-badge {
    position: absolute;
    left: 0;
    top: 24px;
    transform: translateY(-50%);
    margin-bottom: 0;
  }
  .mvp-week p { margin-inline: 0; max-width: 100%; }
}

/* Reusing problem-card styles for eQMS */
.eqms-problem-grid .problem-card {
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
}

.eqms-problem-grid .problem-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--blue-end), transparent);
  border-radius: 4px 0 0 4px;
}

.eqms-problem-grid .problem-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.eqms-problem-grid .problem-card h3 {
  font-size: var(--fs-h4);
  margin-bottom: var(--space-xs);
}
