/* wwwroot/css/shared/how-to-use-section.css */

/* ─── Section ───────────────────────────────────────────── */
.how-to-use-section {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
  background: linear-gradient(160deg,
    var(--color-surface, #f8fafc) 0%,
    var(--color-white) 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative blob */
.how-to-use-section::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(59, 130, 246, 0.06) 0%,
    transparent 70%);
  top: -150px;
  left: -150px;
  pointer-events: none;
}

/* ─── Section Header ────────────────────────────────────── */
.how-to-use-section .section-header {
  margin-bottom: var(--spacing-5, 3rem);
  position: relative;
  z-index: 1;
}

.how-to-use-section .section-title {
  font-size: var(--section-title-size);
  font-weight: var(--section-title-weight);
  color: var(--section-title-color);
  margin-bottom: var(--spacing-2);
  letter-spacing: -0.02em;
}

.how-to-use-section .section-subtitle {
  font-size: var(--font-size-body);
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: var(--line-height-base);
}

/* ─── Steps List — Horizontal on Desktop ────────────────── */
.how-to-steps {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-5, 3rem);
  position: relative;
  z-index: 1;
  counter-reset: none;
}

/* ─── Individual Step ───────────────────────────────────── */
.how-to-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 0 var(--spacing-2);
}

/* ─── Connector Arrow ───────────────────────────────────── */
.step-connector {
  position: absolute;
  top: 22px; /* vertically centered on the icon circle */
  right: -14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  color: var(--color-primary);
  font-size: 0.65rem;
}

/* ─── Icon Wrap ─────────────────────────────────────────── */
.step-icon-wrap {
  position: relative;
  margin-bottom: var(--spacing-2);
}

/* ─── Step Icon ─────────────────────────────────────────── */
.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    var(--color-primary-soft) 0%,
    rgba(14, 165, 233, 0.12) 100%);
  color: var(--color-primary);
  font-size: 1.4rem;
  border: 2px solid rgba(59, 130, 246, 0.15);
  transition: var(--transition-base);
}

.how-to-step:hover .step-icon {
  background: linear-gradient(135deg, var(--color-primary), #0ea5e9);
  color: var(--color-white);
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.30);
  border-color: transparent;
}

/* Done / last step icon — green tint */
.step-icon--done {
  background: linear-gradient(135deg,
    rgba(22, 163, 74, 0.10) 0%,
    rgba(16, 185, 129, 0.10) 100%);
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.2);
}

.how-to-step:hover .step-icon--done {
  background: linear-gradient(135deg, #16a34a, #10b981);
  color: var(--color-white);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.28);
}

/* ─── Step Number Badge ─────────────────────────────────── */
.step-number {
  position: absolute;
  bottom: -6px;
  right: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #0ea5e9);
  color: var(--color-white);
  font-size: 0.65rem;
  font-weight: var(--font-weight-bold);
  border: 2px solid var(--color-white);
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.30);
  line-height: 1;
}

.step-number--done {
  background: linear-gradient(135deg, #16a34a, #10b981);
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.30);
}

/* ─── Step Content ──────────────────────────────────────── */
.step-content {
  max-width: 220px;
}

.step-title {
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-1);
  line-height: 1.3;
}

.step-description {
  font-size: var(--font-size-small);
  color: var(--color-text-secondary);
  line-height: var(--line-height-base);
  margin: 0;
}

/* ─── CTA Closer ────────────────────────────────────────── */
.how-to-cta {
  position: relative;
  z-index: 1;
  padding-top: var(--spacing-4);
  border-top: 1px solid var(--color-border);
}

.how-to-cta-text {
  font-size: var(--font-size-body);
  color: var(--color-text-muted);
  margin-bottom: var(--spacing-2);
}

.how-to-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: var(--font-weight-semibold);
}

.how-to-btn-arrow {
  font-size: 0.8rem;
  transition: transform var(--transition-duration-base) var(--transition-easing-out);
}

.how-to-cta-btn:hover .how-to-btn-arrow {
  transform: translateX(3px);
}

/* ════════════════════════════════════════════════════════
   MOBILE — Vertical Timeline
   ════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {

  .how-to-steps {
    flex-direction: column;
    gap: 0;
    padding-left: var(--spacing-2);
  }

  .how-to-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    padding: 0 0 var(--spacing-4);
    gap: var(--spacing-3);
  }

  /* Vertical timeline line */
  .how-to-step::after {
    content: '';
    position: absolute;
    left: 31px; /* center of the 64px icon */
    top: 70px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg,
      rgba(59, 130, 246, 0.3),
      rgba(59, 130, 246, 0.05));
  }

  /* Hide last step's line */
  .how-to-step:last-child::after {
    display: none;
  }

  /* Hide horizontal connector arrows on mobile */
  .step-connector {
    display: none;
  }

  /* Icon stays left-aligned */
  .step-icon-wrap {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  .step-content {
    max-width: 100%;
    padding-top: 8px;
  }

}
