/* Like and Save for later (Phase 2, 2026-11-11; data shape: from-B\likes-shape.md).
   Loaded on video.html, the guide pages (through the generator) and member-profile.html, after styles.css.
   Quiet and on brand: two small pill buttons beside the title line (never over the video, never in the article text),
   purple text, the heart and the bookmark in brand gold when pressed. 44px touch area, the site's focus ring,
   logical properties so /fa/ mirrors. The words of both states are real text in the HTML; reactions.js only
   switches which one shows, so Linguise translates them on /zh-cn/ and /fa/. */

.gem-react { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.6rem; margin: 0.9rem 0 0; }
.gem-react__btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 44px; min-width: 44px; padding: 0.3rem 0.85rem; box-sizing: border-box;
  border: 1px solid rgba(58, 42, 102, 0.22); border-radius: 999px; background: transparent;
  font-family: var(--font-body); font-size: 0.875rem; font-weight: 500; line-height: 1.2; color: var(--purple);
  cursor: pointer; transition: background-color .2s ease, border-color .2s ease;
}
.gem-react__btn:hover { background: rgba(107, 79, 160, 0.07); border-color: rgba(58, 42, 102, 0.38); }
.gem-react__btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.gem-react__icon { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.gem-react__btn[aria-pressed="true"] { border-color: rgba(187, 134, 63, 0.75); background: rgba(187, 134, 63, 0.08); }
.gem-react__btn[aria-pressed="true"] .gem-react__icon { fill: var(--gold); stroke: var(--gold-deep); }
.gem-react__count { font-variant-numeric: tabular-nums; font-weight: 600; }
.gem-react__count::before { content: "\00B7"; margin-inline-end: 0.35rem; color: var(--gold-deep); font-weight: 400; }
.gem-react__btn[aria-busy="true"] { cursor: progress; }
.gem-react__invite, .gem-react__note { flex: 1 0 100%; margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); }
.gem-react__invite a { color: var(--purple-bright); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.gem-react [hidden] { display: none !important; }

/* On the video page's dark title band: light text, a white focus ring, the light gold of the band's own dots */
.gem-react--dark .gem-react__btn { color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.gem-react--dark .gem-react__btn:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }
.gem-react--dark .gem-react__btn:focus-visible { outline-color: var(--white); }
.gem-react--dark .gem-react__btn[aria-pressed="true"] { border-color: var(--guide-gold-light); background: rgba(231, 201, 122, 0.12); }
.gem-react--dark .gem-react__btn[aria-pressed="true"] .gem-react__icon { fill: var(--guide-gold-light); stroke: var(--guide-gold-light); }
.gem-react--dark .gem-react__count::before { color: var(--guide-gold-light); }
.gem-react--dark .gem-react__invite, .gem-react--dark .gem-react__note { color: var(--lavender); }
.gem-react--dark .gem-react__invite a { color: var(--white); }

/* The private saved list on member-profile.html */
.gem-saved__title { color: var(--purple); font-size: var(--fs-h3, 1.35rem); margin: 0 0 0.35rem; }
.gem-saved__hint { margin: 0 0 1rem; color: var(--text-muted); font-size: 0.95rem; }
.gem-saved__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(58, 42, 102, 0.12); }
.gem-saved__item { border-bottom: 1px solid rgba(58, 42, 102, 0.12); }
.gem-saved__link { display: flex; align-items: baseline; gap: 0.75rem; min-height: 44px; box-sizing: border-box; padding: 0.7rem 0.25rem;
  color: var(--purple); text-decoration: none; font-weight: 600; line-height: 1.35; }
.gem-saved__link:hover .gem-saved__name { text-decoration: underline; text-underline-offset: 2px; }
.gem-saved__kind { flex: 0 0 auto; min-width: 3.5rem; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-deep); }
.gem-saved__empty { margin: 0.75rem 0 0; color: var(--text-muted); }

@media (prefers-reduced-motion: reduce) { .gem-react__btn { transition: none; } }
