/* FND Connect Ambassador channel — the public-facing creator page.
   Bright, bubbly and personal: leans into the brand magenta/rose while
   keeping the shared tokens from styles.css with safe fallbacks. */

.ambassador-page .amb-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fnd-magenta, #c9005a);
  margin-bottom: 0.5rem;
}

/* --- Hero ----------------------------------------------------------------- */
.amb-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 120% at 0% 0%, #ff5fa2 0%, transparent 45%),
    linear-gradient(135deg, var(--fnd-rose, #ed2b7b) 0%, var(--fnd-magenta, #c9005a) 42%, #6a1352 100%);
  color: #fff;
}
.amb-hero[style*="--amb-banner"]::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--amb-banner);
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  z-index: -1;
}
.amb-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 85% -10%, rgba(255, 255, 255, 0.28), transparent 55%);
  pointer-events: none;
}

/* Soft floating blobs for a playful, non-corporate feel. */
.amb-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
}
.amb-blob--1 {
  width: 220px; height: 220px;
  top: -70px; right: 8%;
  background: radial-gradient(circle at 30% 30%, #ffd1e6, transparent 70%);
}
.amb-blob--2 {
  width: 160px; height: 160px;
  bottom: -60px; left: 12%;
  background: radial-gradient(circle at 30% 30%, #ffe9a8, transparent 70%);
  opacity: 0.4;
}

.amb-hero__inner {
  position: relative;
  display: flex;
  gap: clamp(1.3rem, 4vw, 2.6rem);
  align-items: center;
  padding: clamp(2.4rem, 6vw, 4.2rem) var(--gutter, 24px);
  flex-wrap: wrap;
}
.amb-hero--vacant .wrap {
  position: relative;
  padding: clamp(2.5rem, 7vw, 4.5rem) var(--gutter, 24px);
}
.amb-hero--vacant h1,
.amb-hero h1 {
  color: #fff;
  margin: 0.15rem 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.amb-hero--vacant .lead { color: rgba(255, 255, 255, 0.95); max-width: 60ch; }
.amb-hero .amb-eyebrow { color: #fff; opacity: 0.95; }

.amb-avatar {
  position: relative;
  flex: 0 0 auto;
  width: clamp(120px, 27vw, 184px);
  height: clamp(120px, 27vw, 184px);
  border-radius: 50%;
  overflow: visible;
  background: rgba(255, 255, 255, 0.16);
  border: 5px solid #fff;
  box-shadow: 0 18px 46px rgba(106, 19, 82, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
}
.amb-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.amb-avatar__wave {
  position: absolute;
  right: -6px;
  bottom: 2px;
  width: 2.4rem;
  height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  font-size: 1.3rem;
  box-shadow: 0 6px 16px rgba(106, 19, 82, 0.3);
  transform-origin: 70% 80%;
}
@media (prefers-reduced-motion: no-preference) {
  .amb-avatar__wave { animation: amb-wave 2.6s ease-in-out infinite; }
  @keyframes amb-wave {
    0%, 60%, 100% { transform: rotate(0deg); }
    70% { transform: rotate(16deg); }
    80% { transform: rotate(-8deg); }
    90% { transform: rotate(12deg); }
  }
}

.amb-hero__copy { flex: 1 1 320px; min-width: 0; }
.amb-tagline {
  font-size: clamp(1.08rem, 2.4vw, 1.35rem);
  color: #fff;
  margin: 0 0 1.1rem;
  max-width: 56ch;
  line-height: 1.5;
}

/* --- Social buttons with real brand logos --------------------------------- */
.amb-social-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.2rem; }
.amb-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem 0.5rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  color: var(--fnd-navy, #002b5f);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(106, 19, 82, 0.18);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}
.amb-social__icon {
  display: inline-flex;
  width: 1.45rem;
  height: 1.45rem;
}
.amb-social__icon svg { width: 100%; height: 100%; display: block; }
.amb-social:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 24px rgba(106, 19, 82, 0.28);
  color: #fff;
}
/* Light up in each network's own colour on hover. */
.amb-social[data-net="tiktok"]:hover { background: #fe2c55; }
.amb-social[data-net="instagram"]:hover {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}
.amb-social[data-net="facebook"]:hover { background: #1877f2; }
.amb-social[data-net="youtube"]:hover { background: #ff0000; }
.amb-social[data-net="discord"]:hover { background: #5865f2; }
.amb-social[data-net="website"]:hover { background: var(--fnd-magenta, #c9005a); }

.amb-hero .button-row { gap: 0.65rem; flex-wrap: wrap; margin-top: 0.3rem; }
.amb-hero .button.secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}
.amb-hero .button.secondary:hover {
  background: #fff;
  color: var(--fnd-magenta, #c9005a);
  border-color: #fff;
}
.amb-donate {
  background: #fff;
  color: var(--fnd-magenta, #c9005a);
  border-color: #fff;
}
.amb-donate:hover {
  background: var(--fnd-navy, #002b5f);
  border-color: var(--fnd-navy, #002b5f);
  color: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  .amb-donate { animation: amb-pop 3.4s ease-in-out infinite; }
  @keyframes amb-pop {
    0%, 92%, 100% { transform: scale(1); }
    96% { transform: scale(1.05); }
  }
}

/* --- Owner bar ------------------------------------------------------------ */
.amb-owner-bar {
  background: var(--pale, #fff1f7);
  border-bottom: 1px solid var(--border, #e6e0ea);
}
.amb-owner-bar .wrap { padding: 0.7rem var(--gutter, 24px); font-weight: 600; }

/* --- About ---------------------------------------------------------------- */
.amb-about { background: linear-gradient(180deg, #fff 0%, var(--pale, #fff1f7) 100%); }
.amb-about__card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border, #e6e0ea);
  border-radius: 22px;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  box-shadow: 0 14px 40px rgba(201, 0, 90, 0.08);
  overflow: hidden;
}
.amb-about__card::before {
  content: "\201C";
  position: absolute;
  top: -1.4rem;
  right: 1rem;
  font-size: 9rem;
  line-height: 1;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--fnd-rose, #ed2b7b);
  opacity: 0.12;
  pointer-events: none;
}
.amb-about__card h2 { margin: 0 0 0.6rem; color: var(--fnd-navy, #002b5f); }
.amb-about .amb-bio {
  position: relative;
  max-width: 70ch;
  white-space: pre-line;
  color: var(--text, #26364d);
  line-height: 1.75;
  margin: 0;
}

/* --- Virtual Coffee Morning ----------------------------------------------- */
.amb-coffee-section { background: linear-gradient(180deg, var(--pale, #fff1f7) 0%, #fff 100%); }
.amb-coffee {
  position: relative;
  display: flex;
  gap: clamp(1.2rem, 4vw, 2.4rem);
  align-items: center;
  flex-wrap: wrap;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(237, 43, 123, 0.12), transparent 55%),
    #fff;
  border: 1px solid var(--border, #e6e0ea);
  border-radius: 22px;
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: 0 16px 44px rgba(201, 0, 90, 0.1);
  overflow: hidden;
}
.amb-coffee__mug {
  position: relative;
  flex: 0 0 auto;
  width: clamp(110px, 22vw, 150px);
  height: clamp(110px, 22vw, 150px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fnd-rose, #ed2b7b), var(--fnd-magenta, #c9005a));
  box-shadow: 0 14px 32px rgba(201, 0, 90, 0.28);
}
.amb-coffee__cup { font-size: clamp(3rem, 8vw, 4.2rem); line-height: 1; }
.amb-coffee__steam {
  position: absolute;
  top: 18%;
  width: 6px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  opacity: 0;
}
.amb-coffee__steam--1 { left: 42%; }
.amb-coffee__steam--2 { left: 50%; }
.amb-coffee__steam--3 { left: 58%; }
@media (prefers-reduced-motion: no-preference) {
  .amb-coffee__steam { animation: amb-steam 2.8s ease-in-out infinite; }
  .amb-coffee__steam--2 { animation-delay: 0.5s; }
  .amb-coffee__steam--3 { animation-delay: 1s; }
  @keyframes amb-steam {
    0% { opacity: 0; transform: translateY(6px) scaleY(0.6); }
    40% { opacity: 0.7; }
    100% { opacity: 0; transform: translateY(-16px) scaleY(1.2); }
  }
}
.amb-coffee__body { flex: 1 1 320px; min-width: 0; }
.amb-coffee__body h2 { margin: 0.1rem 0 0.6rem; color: var(--fnd-navy, #002b5f); font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.amb-coffee__when {
  background: var(--fnd-magenta, #c9005a);
  color: #fff !important;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.amb-coffee__body p { color: var(--text, #26364d); line-height: 1.65; margin: 0 0 0.8rem; max-width: 60ch; }
.amb-coffee__note { color: var(--muted, #637086); font-style: italic; }
.amb-coffee__cta { margin-top: 0.2rem; }

/* --- Featured fundraiser -------------------------------------------------- */
.amb-featured__card {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--white, #fff);
  border: 1px solid var(--border, #e6e0ea);
  border-left: 6px solid var(--fnd-magenta, #c9005a);
  border-radius: 18px;
  padding: 1.35rem 1.6rem;
  box-shadow: 0 12px 32px rgba(0, 43, 95, 0.07);
}
.amb-featured__card img { width: 160px; height: 120px; object-fit: cover; border-radius: 12px; }
.amb-featured__card > div { flex: 1 1 260px; }
.amb-featured__card h3 { margin: 0.1rem 0 0.4rem; color: var(--fnd-navy, #002b5f); }
.amb-featured__raised { color: var(--muted, #637086); margin: 0.25rem 0 0.9rem; }

/* --- Feed ----------------------------------------------------------------- */
.amb-feed { background: var(--pale, #fff1f7); }
.amb-feed__head { text-align: center; margin: 0 auto 2.5rem; max-width: 700px; }
.amb-feed__head h2 { color: var(--fnd-navy, #002b5f); font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
.amb-feed__head p { color: var(--muted, #637086); }

.amb-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 1.6rem;
  justify-content: center;
}
.amb-post {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white, #fff);
  border: 1px solid var(--border, #e6e0ea);
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: 0 10px 28px rgba(0, 43, 95, 0.06);
  scroll-margin-top: 90px;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.amb-post::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--fnd-rose, #ed2b7b), var(--fnd-magenta, #c9005a));
}
.amb-post:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(201, 0, 90, 0.16);
}
.amb-post__title { margin: 0.3rem 0 0.75rem; color: var(--fnd-navy, #002b5f); font-size: 1.22rem; }
.amb-post__body { white-space: pre-line; line-height: 1.65; margin: 0.9rem 0 0; color: var(--text, #26364d); }

.amb-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}
.amb-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.amb-media img { width: 100%; border-radius: 14px; display: block; }

.amb-watch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.05rem;
  border-radius: 999px;
  background: var(--pale, #fff1f7);
  color: var(--fnd-magenta, #c9005a);
  font-weight: 800;
  text-decoration: none;
  text-transform: capitalize;
  transition: background 0.15s ease, transform 0.15s ease;
}
.amb-watch:hover { background: #ffe3ef; transform: translateY(-1px); }

.amb-post__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted, #637086);
  font-size: 0.85rem;
  margin-top: 0.95rem;
}

/* --- Reactions ------------------------------------------------------------ */
.amb-reactions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }
.amb-react-form { margin: 0; }
.amb-react {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border, #e6e0ea);
  border-radius: 999px;
  background: #fff;
  color: var(--text, #26364d);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.amb-react:hover { border-color: var(--fnd-magenta, #c9005a); transform: translateY(-2px) scale(1.04); }
.amb-react.is-active { background: var(--pale, #fff1f7); border-color: var(--fnd-magenta, #c9005a); color: var(--fnd-magenta, #c9005a); }
.amb-react span { font-weight: 700; }

/* --- Comments ------------------------------------------------------------- */
.amb-comments { margin-top: 1rem; border-top: 1px solid var(--border, #e6e0ea); padding-top: 0.9rem; }
.amb-comment { font-size: 0.92rem; margin-bottom: 0.5rem; line-height: 1.5; }
.amb-comment__who { font-weight: 800; color: var(--fnd-navy, #002b5f); margin-right: 0.4rem; }
.amb-comment-form { display: flex; gap: 0.5rem; margin-top: 0.6rem; }
.amb-comment-form input[type="text"] {
  flex: 1 1 auto;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--border, #e6e0ea);
  border-radius: 999px;
  font: inherit;
}
.amb-comment-form input[type="text"]:focus {
  outline: none;
  border-color: var(--fnd-magenta, #c9005a);
  box-shadow: 0 0 0 3px rgba(201, 0, 90, 0.12);
}
.amb-signin-hint { font-size: 0.88rem; color: var(--muted, #637086); margin: 0.6rem 0 0; }

.amb-empty {
  text-align: center;
  padding: 2.8rem 1.2rem;
  border: 2px dashed var(--fnd-rose, #ed2b7b);
  border-radius: 18px;
  color: var(--fnd-navy, #002b5f);
  background: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .amb-hero__inner { flex-direction: column; text-align: center; align-items: center; }
  .amb-social-row, .amb-hero .button-row { justify-content: center; }
  .amb-about__card::before { font-size: 6rem; }
  .amb-coffee { flex-direction: column; text-align: center; }
  .amb-coffee__body p { margin-left: auto; margin-right: auto; }
  .amb-coffee .button-row { justify-content: center; }
}

/* --- Homepage "Meet our Ambassador" band ---------------------------------- */
/* Lives here (loaded on the homepage too) so all Ambassador styling is in one
   place. Uses its own .home-ambassador namespace to stay isolated. */
.home-ambassador {
  background:
    radial-gradient(120% 130% at 0% 0%, #ff7ab0 0%, transparent 48%),
    linear-gradient(135deg, var(--fnd-rose, #ed2b7b) 0%, var(--fnd-magenta, #c9005a) 45%, #6a1352 100%);
  color: #fff;
}
.home-ambassador__inner {
  display: flex;
  gap: clamp(1.4rem, 4vw, 3rem);
  align-items: center;
  flex-wrap: wrap;
  padding-top: clamp(2.4rem, 6vw, 3.6rem);
  padding-bottom: clamp(2.4rem, 6vw, 3.6rem);
}
.home-ambassador__photo {
  position: relative;
  flex: 0 0 auto;
  width: clamp(132px, 28vw, 200px);
  height: clamp(132px, 28vw, 200px);
  border-radius: 50%;
  overflow: visible;
  background: rgba(255, 255, 255, 0.18);
  border: 5px solid #fff;
  box-shadow: 0 18px 46px rgba(106, 19, 82, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
}
.home-ambassador__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.home-ambassador__badge {
  position: absolute;
  right: -4px;
  bottom: 6px;
  width: 2.6rem;
  height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(106, 19, 82, 0.3);
  transform-origin: 70% 80%;
}
@media (prefers-reduced-motion: no-preference) {
  .home-ambassador__badge { animation: amb-wave 2.6s ease-in-out infinite; }
}
.home-ambassador__copy { flex: 1 1 340px; min-width: 0; }
.home-ambassador__kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.home-ambassador__copy h2 {
  color: #fff;
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  line-height: 1.1;
}
.home-ambassador__copy p {
  color: #fff;
  margin: 0 0 0.7rem;
  max-width: 60ch;
  line-height: 1.6;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
}
.home-ambassador__coffee { font-weight: 700; }
.home-ambassador .button-row { margin-top: 1.1rem; }
.home-ambassador .button {
  background: #fff;
  color: var(--fnd-magenta, #c9005a);
  border-color: #fff;
}
.home-ambassador .button:hover {
  background: var(--fnd-navy, #002b5f);
  border-color: var(--fnd-navy, #002b5f);
  color: #fff;
}
@media (max-width: 640px) {
  .home-ambassador__inner { flex-direction: column; text-align: center; }
  .home-ambassador__copy p { margin-left: auto; margin-right: auto; }
  .home-ambassador .button-row { justify-content: center; }
}
