/* USER FLOW SECTION STYLES */

/* Karla Brand Colors */
:root {
  --karla-teal: #00739d;
  --karla-teal-light: #e6f4f8;
  --karla-mint: #2ff29e;
  --karla-mint-light: #e5fbf2;
  --karla-purple: #8f4bb1;
  --karla-purple-light: #f3e8f8;
  --karla-yellow: #f5c842;
  --karla-yellow-light: #fef9e6;
  --karla-dark: #1a1a2e;
}

.user-flow-section {
  margin-top: 4rem;
  margin-bottom: 4rem;
}

/* Legend */
.flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 2rem;
  padding: 16px 24px;
  background: #f8f7f5;
  border-radius: 10px;
  justify-content: center;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: #555;
}

.legend-dot {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-entry {
  background: var(--karla-dark);
}

.legend-screen {
  background: #fff;
  border: 2px solid var(--karla-teal);
}

.legend-decision {
  background: var(--karla-yellow-light);
  border: 2px solid var(--karla-yellow);
}

.legend-action {
  background: var(--karla-purple-light);
  border: 2px solid var(--karla-purple);
}

.legend-endpoint {
  background: var(--karla-mint-light);
  border: 2px solid var(--karla-mint);
}

/* Flow Diagram */
.flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Flow Block */
.flow-block {
  background: #fff;
  border: 1px solid #e8e7e3;
  border-radius: 12px;
  padding: 24px;
}

.flow-block-title {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #141414;
  margin: 0 0 1.25rem;
  padding-bottom: 12px;
  border-bottom: 1px solid #f0efea;
}

/* Flow Path */
.flow-path {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.flow-path-center {
  justify-content: center;
}

.flow-path-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Flow Nodes */
.flow-node {
  padding: 10px 18px;
  border-radius: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
}

.flow-entry {
  background: var(--karla-dark);
  color: #fff;
}

.flow-screen {
  background: #fff;
  border: 2px solid var(--karla-teal);
  color: var(--karla-teal);
}

.flow-decision {
  background: var(--karla-yellow-light);
  border: 2px solid var(--karla-yellow);
  color: #946b00;
}

.flow-action {
  background: var(--karla-purple-light);
  border: 2px solid var(--karla-purple);
  color: var(--karla-purple);
  border-radius: 50px;
}

.flow-endpoint {
  background: var(--karla-mint-light);
  border: 2px solid var(--karla-mint);
  color: #0a7a52;
}

/* Arrows */
.flow-arrow {
  color: #bbb;
  font-size: 1.25rem;
  font-weight: 400;
}

.flow-arrow-down {
  color: #bbb;
  font-size: 1rem;
}

/* Branches */
.flow-branches {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed #e0dfda;
  justify-content: center;
}

.flow-branch {
  flex: 0 1 240px;
  padding: 20px;
  background: #fafaf9;
  border-radius: 12px;
  border-top: 4px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.flow-branch-yes {
  border-top-color: #ababa9;
}

.flow-branch-skip {
  border-top-color: #c8bdbd;
}

.branch-label {
  display: inline-block;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding: 5px 14px;
  border-radius: 100px;
}

.branch-label-yes {
  background: #ececdf;
  color: #4c4c4c;
}

.branch-label-skip {
  background: #ecdfdf;
  color: #4c4c4c;
}

/* Features Grid */
.flow-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.flow-feature-card {
  padding: 20px;
  background: #fafaf9;
  border-radius: 10px;
  border: 1px solid #f0efea;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flow-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

.flow-feature-card h4 {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #141414;
  margin: 0 0 16px;
}

.feature-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

/* Mini Nodes */
.flow-node-mini {
  display: block;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
}

.flow-node-mini.flow-screen {
  background: #fff;
  border: 1.5px solid var(--karla-teal);
  color: var(--karla-teal);
}

.flow-node-mini.flow-action {
  background: var(--karla-purple-light);
  border: 1.5px solid var(--karla-purple);
  color: var(--karla-purple);
  border-radius: 50px;
}

.flow-node-mini.flow-endpoint {
  background: var(--karla-mint-light);
  border: 1.5px solid var(--karla-mint);
  color: #0a7a52;
}

.mini-arrow {
  color: #ccc;
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 900px) {
  .flow-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .flow-path {
    flex-direction: column;
  }

  .flow-path-center {
    align-items: center;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .flow-branches {
    flex-direction: column;
    align-items: center;
  }

  .flow-branch {
    flex: none;
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .flow-features-grid {
    grid-template-columns: 1fr;
  }

  .flow-legend {
    gap: 12px;
  }

  .legend-item {
    font-size: 0.75rem;
  }

  .legend-dot {
    width: 12px;
    height: 12px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .flow-feature-card:hover {
    transform: none;
  }
}
