/**
 * Friend invite share strip · homepage + athlete portal
 */
.wdhc-friend-share {
  position: relative;
  margin: 20px 0;
  padding: 22px 20px 20px;
  border-radius: 18px;
  border: 1px solid rgba(212, 175, 55, 0.32);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(212, 175, 55, 0.14) 0%, transparent 55%),
    radial-gradient(70% 100% at 100% 100%, rgba(205, 127, 50, 0.08) 0%, transparent 50%),
    linear-gradient(155deg, rgba(28, 22, 12, 0.96) 0%, rgba(10, 10, 12, 0.98) 100%);
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(240, 215, 140, 0.1);
  overflow: hidden;
}

.wdhc-friend-share::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4af37 0%, #e8a04a 50%, #cd7f32 100%);
  opacity: 0.85;
  pointer-events: none;
}

.wdhc-friend-share__eyebrow {
  margin: 0 0 6px;
  font-family: 'Rajdhani', 'Source Sans 3', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d4af37;
}

.wdhc-friend-share__title {
  margin: 0 0 8px;
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.12;
  color: #fff;
}

.wdhc-friend-share__title-gold {
  color: transparent;
  background: linear-gradient(115deg, #ffe566 0%, #d4af37 45%, #f0a030 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wdhc-friend-share__copy {
  margin: 0 0 16px;
  max-width: 40rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #c8c0b0;
}

.wdhc-friend-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wdhc-friend-share__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: 'Rajdhani', 'Source Sans 3', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
}

a.wdhc-friend-share__btn--primary,
a.wdhc-friend-share__btn--primary:link,
a.wdhc-friend-share__btn--primary:visited,
a.wdhc-friend-share__btn--primary:hover,
button.wdhc-friend-share__btn--primary,
.wdhc-friend-share__btn--primary {
  background: linear-gradient(180deg, #e8c547 0%, #d4af37 55%, #b8922e 100%);
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  border-color: rgba(255, 229, 102, 0.35);
}

a.wdhc-friend-share__btn--primary:hover,
button.wdhc-friend-share__btn--primary:hover,
.wdhc-friend-share__btn--primary:hover {
  filter: brightness(1.06);
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

.wdhc-friend-share__btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(212, 175, 55, 0.35);
  color: #f0d78c;
}

.wdhc-friend-share__btn--ghost:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.55);
  color: #fff;
}

.wdhc-friend-share__toast {
  margin: 12px 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: #9fd39f;
}

.wdhc-friend-share__toast[hidden] {
  display: none !important;
}

/* Homepage placement under main board CTA · full content-grid width */
.wdhc-friend-share--home {
  margin: 8px 0 28px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

/* Desktop: copy on top, all share buttons on one row */
@media (min-width: 901px) {
  .wdhc-friend-share--home {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "eyebrow"
      "title"
      "copy"
      "actions"
      "toast";
    column-gap: 28px;
    row-gap: 8px;
    align-items: start;
    padding: 26px 28px 24px;
  }

  .wdhc-friend-share--home .wdhc-friend-share__eyebrow {
    grid-area: eyebrow;
    margin-bottom: 0;
  }

  .wdhc-friend-share--home .wdhc-friend-share__title {
    grid-area: title;
    margin: 0;
    font-size: clamp(1.45rem, 2vw, 1.9rem);
  }

  .wdhc-friend-share--home .wdhc-friend-share__copy {
    grid-area: copy;
    margin: 4px 0 0;
    max-width: none;
  }

  .wdhc-friend-share--home .wdhc-friend-share__actions {
    grid-area: actions;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: center;
    gap: 8px;
    margin-top: 6px;
  }
  .wdhc-friend-share--home .wdhc-friend-share__btn {
    flex: 0 0 auto;
    padding: 8px 13px;
    min-height: 40px;
    white-space: nowrap;
  }

  .wdhc-friend-share--home .wdhc-friend-share__toast {
    grid-area: toast;
  }
}

/* Portal dashboard card */
.wdhc-friend-share--portal {
  margin: 0 0 12px;
  padding: 16px 14px 14px;
}

.wdhc-friend-share--portal .wdhc-friend-share__title {
  font-size: 1.15rem;
}

.wdhc-friend-share--portal .wdhc-friend-share__copy {
  font-size: 0.88rem;
  margin-bottom: 10px;
  color: #b8b0a0;
}

@media (max-width: 600px) {
  .wdhc-friend-share {
    padding: 14px 12px 12px;
    margin: 0 0 10px;
    border-radius: 14px;
  }
  .wdhc-friend-share__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }
  .wdhc-friend-share__btn {
    flex: none;
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }
  .wdhc-friend-share__btn--primary {
    grid-column: 1 / -1;
    width: 100%;
  }
  /* Portal: one primary + copy only · hide extra social columns on phone */
  .wdhc-friend-share--portal .wdhc-friend-share__copy {
    display: none;
  }
  .wdhc-friend-share--portal .wdhc-friend-share__title {
    font-size: 1.05rem;
    margin-bottom: 10px;
  }
  .wdhc-friend-share--portal .wdhc-friend-share__btn--ghost:not([data-friend-share="copy"]) {
    display: none !important;
  }
  .wdhc-friend-share--portal .wdhc-friend-share__btn[data-friend-share="copy"] {
    display: inline-flex !important;
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(212, 175, 55, 0.28);
    color: #d4c48a;
  }
}
