/* ViewGems — Zodiac + Life Path badges — v2 Sngine edition
   ICON BADGES ONLY on the profile. Dark theme to match ViewGems.
   Spot 1: name area, inline after the verified badge.
   Spot 2: cover bottom-right, absolute over the cover photo. */

.vg-badge { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

/* Spot 1 — name area */
.vg-name-badge {
  font-size: 22px; line-height: 1;
  width: 34px; height: 34px; border-radius: 50%;
  background: #1e1e1e; border: 1px solid #333; color: #fff;
  vertical-align: middle; margin-left: 8px; flex-shrink: 0;
}
.vg-name-slot { display: inline-flex; vertical-align: middle; }
.vg-name-slot:empty { display: none; }

/* Spot 2 — cover bottom-right */
.vg-cover-slot { position: absolute; bottom: 16px; right: 16px; z-index: 5; }
.vg-cover-slot:empty { display: none; }
.vg-cover-badge {
  font-size: 26px; font-weight: 800; line-height: 1;
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(17,17,17,.92); border: 2px solid #f59e0b; color: #fbbf24;
  box-shadow: 0 4px 18px rgba(0,0,0,.45);
}
/* The cover container in Sngine must be position:relative for this to anchor.
   In most Sngine themes it already is. If not, add: .profile-cover { position: relative; } */

/* BioStudio — badges next to the profile photo on the /@username bio page.
   Zodiac overlaps the photo's bottom-right edge, Life Path the bottom-left.
   The avatar wrapper in bio.php is position:relative; the photo itself
   stays in its own overflow-hidden circle inside it. */
.vg-bio-zodiac-slot, .vg-bio-lifepath-slot { position: absolute; bottom: -4px; z-index: 10; }
.vg-bio-zodiac-slot { right: -8px; }
.vg-bio-lifepath-slot { left: -8px; }
.vg-bio-zodiac-slot:empty, .vg-bio-lifepath-slot:empty { display: none; }
.vg-bio-zodiac-slot .vg-name-badge { width: 34px; height: 34px; margin-left: 0; border-width: 2px; }
.vg-bio-lifepath-slot .vg-cover-badge { width: 40px; height: 40px; font-size: 20px; }

/* Popover — shown on click, with the Life Path calculation next to the number */
.vg-popover {
  position: absolute; z-index: 9999; width: 280px; max-width: calc(100vw - 24px);
  background: #1e1e1e; color: #fff; border: 1px solid #333; border-radius: 14px;
  padding: 12px 14px; font-size: 13px; line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.vg-popover code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px; color: #5eead4; background: rgba(20,184,166,.12);
  border-radius: 6px; padding: 2px 6px; display: inline-block; margin: 4px 0;
}

/* Legacy v1 full cards — About section only, NOT the profile header */
.vg-astro { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; font-family: inherit; }
.vg-astro-card {
  display: flex; align-items: flex-start; gap: 12px; flex: 1 1 260px; max-width: 420px;
  padding: 14px 16px; border-radius: 16px; background: #1e1e1e; border: 1px solid #2e2e2e; color: #fff;
}
.vg-astro-icon { font-size: 42px; line-height: 1; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #111; border: 1px solid #333; flex-shrink: 0; }
.vg-astro-number { font-size: 38px; font-weight: 800; line-height: 1; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #14b8a6; color: #06281f; flex-shrink: 0; }
.vg-lifepath-card .vg-astro-number { background: #f59e0b; color: #2b1a02; }
.vg-astro-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vg-astro-label { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #9ca3af; font-weight: 700; }
.vg-astro-value { font-size: 17px; font-weight: 800; line-height: 1.2; }
.vg-astro-sub { font-size: 13px; color: #d1d5db; line-height: 1.35; }
.vg-calc { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: #5eead4; background: rgba(20,184,166,.12); border-radius: 8px; padding: 4px 7px; margin-top: 4px; display: inline-block; }
.vg-master { color: #fbbf24; letter-spacing: .05em; }
@media (max-width: 560px) {
  .vg-astro { flex-direction: column; }
  .vg-astro-card { max-width: none; }
  .vg-cover-badge { width: 48px; height: 48px; font-size: 22px; }
}
