/* BioStudio Thoughts bubble (public thoughts only) — v20261110-biotht3 */

/* When a Thought is shown, the bubble sits above the photo, so the page
   needs extra top padding — otherwise the bubble is clipped by the top
   of the viewport (the photo sits near the top of the page). */
body.vg-has-thought {
  padding-top: 7.5rem;
}

/* Speech bubble above the profile photo. The photo wrapper is relative,
   so this anchors to it: centred, just above the top edge, tail down.
   The bubble needs an explicit width: it is absolutely positioned inside
   the 112px photo container, and without one it shrink-wraps to that
   narrow width, truncating the text to a sliver. */
.vg-bio-thought-bubble {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 230px;
  max-width: calc(100vw - 32px);
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 9999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .16);
  cursor: pointer;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  z-index: 20;
  white-space: normal;
  font-family: inherit;
}

.vg-bio-thought-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid rgba(0, 0, 0, .08);
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  transform: translateX(-50%) rotate(45deg);
}

.vg-bio-thought-bubble:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}

/* Viewer modal */
.vg-bio-thought-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.vg-bio-thought-modal[hidden] {
  display: none;
}

.vg-bio-thought-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .6);
  backdrop-filter: blur(2px);
}

.vg-bio-thought-modal-card {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 22px 20px 18px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  text-align: center;
}

.vg-bio-thought-modal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.vg-bio-thought-modal-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 14px;
}

.vg-bio-thought-modal-author img {
  width: 28px;
  height: 28px;
  border-radius: 9999px;
  object-fit: cover;
}

.vg-bio-thought-modal-author span {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.vg-bio-thought-modal-gif {
  width: 100%;
  border-radius: 14px;
  margin-bottom: 12px;
}

.vg-bio-thought-modal-text {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  margin: 0 0 12px;
  word-break: break-word;
}

.vg-bio-thought-modal-audio {
  width: 100%;
  margin-bottom: 12px;
}

.vg-bio-thought-modal-music {
  font-size: 13px;
  font-weight: 600;
  color: #4f46e5;
  margin: 0 0 12px;
}

.vg-bio-thought-modal-time {
  font-size: 12px;
  color: #94a3b8;
  margin: 0;
}
