/* Superhero Challenges — signup flow widget (namespaced shc-) */

.shc-no-scroll {
  overflow: hidden;
}

.shc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 16px;
}

.shc-modal {
  position: relative;
  background: #ffffff;
  color: #16161a;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.shc-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #9a9aa3;
}
.shc-close:hover {
  color: #16161a;
}

.shc-progress {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e40615;
  margin-bottom: 8px;
}

/* Subtle back link shown on steps 2-4 */
.shc-back {
  display: block;
  border: none;
  background: none;
  padding: 0;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: #5c5c66;
  cursor: pointer;
}
.shc-back:hover {
  color: #16161a;
}

/* Confirmation: "see you there" line */
.shc-see-you {
  font-weight: 700;
  color: #16161a;
}

.shc-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.shc-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.shc-label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.shc-input {
  padding: 12px 14px;
  border: 1px solid #d8d8de;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
}
.shc-input:focus {
  border-color: #e40615;
  box-shadow: 0 0 0 3px rgba(228, 6, 21, 0.15);
}

.shc-hint {
  margin: 2px 0;
  font-size: 13px;
  color: #5c5c66;
  line-height: 1.45;
}

.shc-terms {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #3c3c44;
  line-height: 1.45;
  margin-top: 6px;
  cursor: pointer;
}
.shc-terms input {
  margin-top: 3px;
  accent-color: #e40615;
}

.shc-error {
  min-height: 18px;
  font-size: 13px;
  color: #c00312;
  font-weight: 600;
}
.shc-error:empty {
  display: none;
}

.shc-button {
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.08s ease;
}
.shc-button:active {
  transform: scale(0.99);
}

.shc-button-primary {
  background: #e40615;
  color: #fff;
}
.shc-button-primary:hover {
  background: #c00312;
}

/* Named shc-follow-list (NOT shc-socials) to avoid colliding with the
   footer's .shc-socials row layout defined in the host page. */
.shc-follow-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0;
  width: 100%;
  min-width: 0;
}

.shc-social-link {
  display: block;
  text-align: center;
  padding: 13px 16px;
  border: 2px solid #16161a;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  color: #16161a;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.shc-social-link:hover {
  background: #16161a;
  color: #fff;
}

.shc-challenges {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 8px 0 4px;
}

.shc-challenge {
  text-align: left;
  padding: 14px 16px;
  border: 2px solid #d8d8de;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.shc-challenge:hover:not(.shc-locked) {
  border-color: #e40615;
}
.shc-challenge.shc-selected {
  border-color: #e40615;
  background: rgba(228, 6, 21, 0.06);
}
.shc-challenge.shc-locked {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f4f4f6;
}
.shc-challenge.shc-locked .shc-challenge-name::after {
  content: " \1F512";
}

.shc-challenge-name {
  font-weight: 800;
  font-size: 15px;
}

.shc-challenge-desc {
  font-size: 13px;
  color: #5c5c66;
}

/* Step 3 keeps space for the sticky footer button */
.shc-step3 {
  padding-bottom: 68px;
}

.shc-sticky-footer {
  position: sticky;
  bottom: -28px; /* counteract modal padding so it hugs the modal edge */
  margin: 8px -28px -28px;
  padding: 14px 28px 20px;
  background: linear-gradient(to top, #ffffff 78%, rgba(255, 255, 255, 0));
}

.shc-sticky-button {
  width: 100%;
  background: #c9c9cf;
  color: #6b6b74;
  cursor: not-allowed;
}
.shc-sticky-button.shc-accepted {
  background: #e40615;
  color: #ffffff;
  cursor: pointer;
}
.shc-sticky-button.shc-accepted:hover {
  background: #c00312;
}

.shc-confirmation {
  align-items: center;
  text-align: center;
  gap: 12px;
}

.shc-confirm-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e40615;
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.shc-ticket {
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #16161a;
}

/* Step 1: terms link + optional marketing consent */
.shc-terms a {
  color: #e40615;
  font-weight: 600;
}
.shc-marketing {
  color: #5c5c66;
}

/* Step 2: info list */
.shc-info-list {
  margin: 4px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  line-height: 1.45;
  color: #3c3c44;
}
.shc-info-list b {
  color: #16161a;
}

/* Step 3: branded follow buttons (both required, stacked full-width) */
.shc-follow-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: filter 0.15s ease, background 0.2s ease;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.shc-follow-btn .shc-follow-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.shc-follow-btn.shc-follow-pending {
  filter: saturate(0.75) brightness(0.95);
}
.shc-follow-btn.shc-follow-pending .shc-follow-state {
  opacity: 0.85;
}
.shc-follow-btn:hover {
  filter: brightness(1.08);
}
.shc-follow-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.shc-follow-tiktok {
  background: #16161a;
}
.shc-follow-btn.shc-followed {
  background: #1da84e;
}
.shc-follow-icon {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  flex-shrink: 0;
}
.shc-follow-icon svg {
  width: 22px;
  height: 22px;
}
.shc-follow-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  flex-grow: 1;
}
.shc-follow-name {
  font-size: 15px;
}
.shc-follow-handle {
  font-size: 12px;
  opacity: 0.85;
  font-weight: 600;
}
.shc-follow-state {
  font-size: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 4px 12px;
}

/* Step 4: challenge detail rows on the unlocked card */
.shc-challenge-details {
  margin: 4px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
  color: #3c3c44;
}

/* Confirmation: calendar actions + secondary button */
.shc-cal-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.shc-cal-google {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
}
.shc-cal-ics {
  font-size: 13px;
  color: #5c5c66;
  text-decoration: underline;
}
.shc-cal-ics:hover {
  color: #16161a;
}
.shc-button-secondary {
  background: #ececef;
  color: #16161a;
  width: 100%;
}
.shc-button-secondary:hover {
  background: #dddde2;
}

@media (max-width: 520px) {
  .shc-modal {
    padding: 22px;
    border-radius: 14px;
  }
  .shc-sticky-footer {
    margin: 8px -22px -22px;
    padding: 12px 22px 16px;
    bottom: -22px;
  }
}
