﻿/* GLP-1 / GIP organ-pathway diagram ÃƒÂ¢Ã¢â€šÂ¬Ã¢â‚¬Â scoped, reuses site tokens only.
   Overlays interactive hotspots on the supplied body illustration; each hotspot
   sits on one of the purple rings baked into the image and lights it up. */
.glp1-dx { margin: 34px 0; }
#how-it-works { max-width: 68ch; margin-left: auto; margin-right: auto; text-align: center; }
.glp1-dx > .glp1-dx-intro { color: var(--ink-soft); max-width: 68ch; margin: 6px auto 22px; text-align: center; }
.glp1-dx-grid {
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(260px, 310px);
  gap: 26px;
  align-items: stretch;
  justify-content: center;
}

/* figure = the illustration (transparent PNG) + a hotspot layer on top.
   No backdrop: the cut-out body floats on the page. */
.glp1-dx-figure {
  position: relative;
  line-height: 0;
}
.glp1-dx-figure img { width: 100%; height: auto; display: block; }

.glp1-hotspots { position: absolute; inset: 0; }
.glp1-hot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: var(--d, 11%);
  aspect-ratio: 1 / 1;
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* the highlight = a large, warm golden light bloom (no outline) that brightens
   the baked purple circle underneath via screen blending. */
.glp1-hot::before {
  content: "";
  position: absolute;
  inset: -85%;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 248, 224, 0.98) 0%,
    rgba(255, 224, 148, 0.82) 22%,
    rgba(240, 194, 96, 0.5) 42%,
    rgba(214, 168, 74, 0.22) 60%,
    transparent 76%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.72);
  transition: opacity 0.2s ease, transform 0.2s ease;
  animation: glp1-idle 2.6s ease-in-out infinite;
}
/* clearly visible idle glow so it reads as interactive */
@keyframes glp1-idle {
  0%, 100% { opacity: 0.45; transform: scale(0.72); }
  50%      { opacity: 0.7;  transform: scale(0.86); }
}
/* active: strong, pulsing golden light that lights the circle up */
.glp1-hot:hover::before,
.glp1-hot:focus-visible::before,
.glp1-hot.is-selected::before {
  opacity: 1;
  animation: glp1-pulse 1.4s ease-in-out infinite;
}
.glp1-hot:focus-visible { outline: none; }
@keyframes glp1-pulse {
  0%, 100% { opacity: 0.92; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.22); }
}

/* detail panel */
.glp1-dx-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  width: 100%;
  max-width: 310px;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  justify-self: center;
}
.glp1-dx-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.glp1-dx-panel h4 { margin: 0; font-size: 1.15rem; }
.glp1-receptor { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); letter-spacing: 0.04em; white-space: nowrap; }
.glp1-dx-badge { margin: 12px 0 4px; }
.glp1-dx-panel p { color: var(--ink-soft); margin: 12px 0 0; line-height: 1.6; }

@media (min-width: 721px) {
  .glp1-dx-grid {
    align-items: center;
  }

  .glp1-dx-panel {
    min-height: 0;
    height: auto;
    align-self: center;
    padding: 20px 22px;
  }
}

/* the GIP / fat-tissue note that has no circle on the diagram */
.glp1-dx-aside {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}
.glp1-dx-aside h4 { margin: 0 0 4px; font-size: 1rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.glp1-dx-aside p { margin: 8px 0 0; color: var(--ink-soft); line-height: 1.6; }

.glp1-dx-note { color: var(--muted); font-size: 0.85rem; margin-top: 18px; }

/* static fallback (shown when JS is unavailable) */
.glp1-dx-fallback { margin-top: 18px; }
.glp1-dx-fallback .glp1-fb-item { padding: 12px 0; border-top: 1px solid var(--border); }
.glp1-dx-fallback h4 { margin: 0 0 4px; font-size: 1.02rem; }
.glp1-dx-fallback p { margin: 6px 0 0; color: var(--ink-soft); }

@media (max-width: 720px) {
  .glp1-dx-grid { grid-template-columns: 1fr; gap: 18px; }
  .glp1-dx-figure { max-width: 300px; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .glp1-hot::before { animation: none; opacity: 0.35; transform: scale(0.85); }
  .glp1-hot:hover::before,
  .glp1-hot:focus-visible::before,
  .glp1-hot.is-selected::before { animation: none; opacity: 1; transform: scale(1.05); }
}

/* Shared body-map hotspot system. This draws the purple ring and light center
   directly in CSS so every compound can use the same clean body illustration. */
.glp1-hot::before {
  z-index: 1;
}

.glp1-hot::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background:
    radial-gradient(circle,
      rgba(255, 255, 255, 0.98) 0 13%,
      rgba(238, 220, 255, 0.96) 14% 28%,
      rgba(183, 111, 255, 0.92) 29% 42%,
      rgba(130, 66, 202, 0.72) 43% 48%,
      transparent 49% 100%);
  box-shadow:
    0 0 0 1px rgba(218, 183, 255, 0.9),
    0 0 12px rgba(178, 93, 255, 0.75),
    0 0 26px rgba(222, 190, 255, 0.55);
  pointer-events: none;
  opacity: 0.94;
  z-index: 2;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.glp1-hot:hover::after,
.glp1-hot:focus-visible::after,
.glp1-hot.is-selected::after {
  opacity: 1;
  transform: scale(1.06);
}

@media (max-width: 720px) {
  .glp1-dx-panel {
    max-width: none;
    width: 100%;
  }
}



