/* ==========================================================================
   I'M HERE — floating profile nudge
   A small persistent reminder that the one thing to do before an event is
   create a profile. Shared by the homepage and /events/ so the prompt reads
   identically wherever someone lands.

   It starts collapsed as a pill, expands into the full prompt, and stays
   dismissed for the rest of the session once closed.
   ========================================================================== */

.pn {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  width: min(320px, calc(100vw - 32px));
  font-family: inherit;

  /* Hidden until the script decides it is time (and gone for good if closed) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.45s ease,
    transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
    visibility 0.45s;
}
.pn.pn-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pn-card {
  position: relative;
  background: rgba(14, 12, 10, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 0.5px solid rgba(196, 123, 58, 0.42);
  border-radius: 16px;
  padding: 18px 20px 20px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(196, 123, 58, 0.1);
}

/* Collapsed state: just the question, as a tappable pill */
.pn-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  text-align: left;
  cursor: pointer;
}
.pn-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c47b3a;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(196, 123, 58, 0.5);
  animation: pn-pulse 2.6s ease-out infinite;
}
@keyframes pn-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(196, 123, 58, 0.5);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(196, 123, 58, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(196, 123, 58, 0);
  }
}
.pn-chev {
  margin-left: auto;
  font-size: 11px;
  color: rgba(196, 123, 58, 0.9);
  transition: transform 0.3s ease;
}
.pn.pn-open .pn-chev {
  transform: rotate(180deg);
}

/* Expanded body */
.pn-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.pn.pn-open .pn-body {
  grid-template-rows: 1fr;
}
.pn-body > div {
  overflow: hidden;
}
.pn-copy {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 300;
  margin: 12px 0 15px;
}
.pn-btn {
  display: block;
  text-align: center;
  text-decoration: none;
  background: #c47b3a;
  color: #fff;
  border-radius: 6px;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 500;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
}
.pn-btn:hover {
  background: #d38c48;
  transform: translateY(-1px);
}
.pn-alt {
  display: block;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  color: rgba(196, 123, 58, 0.85);
  margin-top: 11px;
}
.pn-alt:hover {
  color: #c47b3a;
}

.pn-close {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.35);
  font-size: 17px;
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  transition:
    color 0.25s ease,
    background 0.25s ease;
}
.pn-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
}

/* Phones: sit across the bottom, clear of the browser chrome */
@media (max-width: 600px) {
  .pn {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
  .pn-card {
    padding: 15px 17px 17px;
    border-radius: 14px;
  }
  .pn-toggle {
    font-size: 13.5px;
    padding-right: 26px;
  }
  .pn-copy {
    font-size: 13px;
    margin: 10px 0 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pn,
  .pn-body,
  .pn-btn,
  .pn-chev {
    transition: none;
  }
  .pn-dot {
    animation: none;
  }
}
