/* ==========================================================================
   Level 2 Getting Started – page template styles
   Enqueue after effective-practice-hub.css and dashboard.css
   ========================================================================== */

/* --------------------------------------------------------------------------
   Top navigation bar (Getting started / Course units / Progress)
   -------------------------------------------------------------------------- */
.gs-top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--pd-grey-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(63, 68, 72, 0.06);
}

.gs-top-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--pd-grey-dark);
  transition: background 0.15s ease, color 0.15s ease;
}

.gs-top-nav__item:hover {
  background: var(--white);
  color: var(--pd-blue-dark);
}

.gs-top-nav__item--active {
  background: var(--white);
  color: var(--pd-purple);
  box-shadow: 0 2px 8px rgba(63, 68, 72, 0.1);
}

.gs-top-nav__item--locked {
  color: var(--pd-grey);
  cursor: not-allowed;
}

.gs-lock {
  font-size: 0.75rem;
  color: var(--pd-grey);
}

/* --------------------------------------------------------------------------
   Step progress indicators
   -------------------------------------------------------------------------- */
.gs-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gs-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--pd-grey-dark);
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  min-width: 120px;
  flex: 1;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  position: relative;
  box-shadow: 0 4px 12px rgba(63, 68, 72, 0.06);
}

.gs-step:hover:not(.gs-step--locked) {
  background: var(--pd-grey-soft);
}

.gs-step--active {
  background: var(--white);
  border-color: var(--step-color, var(--pd-blue));
  border-width: 2px;
  color: var(--step-color, var(--pd-blue));
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.gs-step--done {
  background: var(--pd-grey-soft);
  color: var(--standard-green);
  border-color: var(--standard-green);
}

.gs-step--locked {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.gs-step__icon {
  font-size: 1.4rem;
  line-height: 1;
}

.gs-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--step-color, var(--pd-grey-soft));
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 900;
}

.gs-step--done .gs-step__num {
  background: var(--standard-green);
}

.gs-step__label {
  line-height: 1.3;
  max-width: 90px;
}

.gs-step__connector {
  flex: 0 0 20px;
  height: 2px;
  background: var(--line);
  margin: 0 -1px;
  align-self: center;
}

/* --------------------------------------------------------------------------
   Tab content area
   -------------------------------------------------------------------------- */
.gs-tab-content {
  position: relative;
}

.gs-pane {
  display: none;
}

.gs-pane.active {
  display: block;
}

/* --------------------------------------------------------------------------
   Content card
   -------------------------------------------------------------------------- */
.gs-card {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(24px, 4vw, 40px);
}

.gs-card__title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 800;
  color: var(--pd-purple);
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.gs-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--pd-grey-dark);
  margin: 0 0 14px;
}

.gs-card p:last-of-type {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Units grid (in Introduction tab)
   -------------------------------------------------------------------------- */
.gs-units-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 18px 0 22px;
}

.gs-unit-card {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(63, 68, 72, 0.06);
}

.gs-unit-card__num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  flex-shrink: 0;
}

.gs-unit-card__label {
  padding: 12px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  background: var(--pd-grey-soft);
  flex: 1;
}

/* --------------------------------------------------------------------------
   Download buttons
   -------------------------------------------------------------------------- */
.gs-download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.gs-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--pd-blue);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.15s ease, transform 0.12s ease;
}

.gs-download-btn:hover {
  background: var(--pd-purple);
  transform: translateY(-1px);
  color: var(--white);
}

.gs-download-btn--outline {
  background: transparent;
  border-color: var(--pd-blue);
  color: var(--pd-blue-dark);
}

.gs-download-btn--outline:hover {
  background: var(--pd-blue-soft);
  color: var(--pd-blue-dark);
  transform: none;
}

/* --------------------------------------------------------------------------
   Checkbox confirmation rows
   -------------------------------------------------------------------------- */
.gs-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--pd-grey-soft);
  border: 2px solid var(--line);
  border-radius: 14px;
  margin-top: 22px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gs-checkbox-row--done {
  background: var(--standard-green-soft);
  border-color: var(--standard-green);
}

.gs-checkbox-row label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pd-grey-dark);
  cursor: pointer;
  line-height: 1.5;
}

.gs-checkbox-row label em {
  font-style: italic;
  font-weight: 400;
  color: var(--pd-grey);
}

.gs-not-checked {
  font-size: 0.85rem;
  color: #c0392b;
  font-weight: 600;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Nav buttons (Back / Next)
   -------------------------------------------------------------------------- */
.gs-nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 10px;
}

.gs-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 11px 24px;
  border-radius: 999px;
  font: 800 0.9rem/1 inherit;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.gs-btn--next {
  background: var(--pd-purple);
  color: var(--white);
  margin-left: auto;
}

.gs-btn--next:hover:not(:disabled) {
  background: var(--pd-purple-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(111, 45, 168, 0.24);
}

.gs-btn--back {
  background: transparent;
  border-color: var(--line);
  color: var(--pd-grey-dark);
}

.gs-btn--back:hover {
  background: var(--pd-grey-soft);
}

.gs-btn--launch {
  background: var(--standard-green);
  color: var(--white);
  margin-left: auto;
}

.gs-btn--launch:hover {
  background: #2e7a1a;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(46, 122, 26, 0.24);
  color: var(--white);
}

.gs-btn--disabled,
.gs-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 760px) {
  .gs-steps {
    flex-wrap: wrap;
  }

  .gs-step {
    min-width: calc(50% - 20px);
    flex: 0 0 calc(50% - 20px);
  }

  .gs-step__connector {
    display: none;
  }

  .gs-top-nav {
    flex-direction: column;
  }

  .gs-nav-btns {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .gs-btn--next,
  .gs-btn--launch {
    margin-left: 0;
    justify-content: center;
  }

  .gs-btn--back {
    justify-content: center;
  }

  .gs-download-list {
    flex-direction: column;
  }

  .gs-download-btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .gs-step {
    min-width: 100%;
    flex: 0 0 100%;
  }

  .gs-units-grid {
    grid-template-columns: 1fr;
  }
}
