/* ============================================================
   Sentii Components — v3.58
   ------------------------------------------------------------
   Drop-in classes for any Sentii surface outside the chat
   widget itself: floating action button, AI chips, empty-state
   cards. Sized to the auto-layout spec so designers and devs
   can build to identical pixel values.
   ============================================================ */

/* ── AI Chip ─────────────────────────────────────────────── */
.sentii-chip {
  height: var(--sentii-chip-height);
  padding: 0 14px;
  border-radius: var(--sentii-chip-radius);
  font-family: var(--sentii-font);
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  line-height: 1;
  transition: transform 120ms ease;
  text-decoration: none;
}
.sentii-chip:hover { transform: translateY(-1px); }
.sentii-chip i,
.sentii-chip svg { width: 14px; height: 14px; flex: 0 0 14px; }

.sentii-chip--primary {
  background: var(--sentii-gradient);
  color: var(--sentii-white);
}

.sentii-chip--secondary {
  background: transparent;
  color: var(--sentii-ink);
  border: 1px solid var(--sentii-border);
}

/* ── Floating Action Button ──────────────────────────────── */
/* v3.65 two-tier: FAB hosts the Tier A flat glyph on a white disc.
   Gradient lives inside the glyph (per spec v1.2) — never on the disc. */
.sentii-fab {
  width: var(--sentii-fab-size);
  height: var(--sentii-fab-size);
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid var(--sentii-border);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1040;
  box-shadow: 0 6px 16px rgba(15, 36, 53, 0.12);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.sentii-fab:hover  { transform: scale(1.04); box-shadow: 0 10px 22px rgba(15, 36, 53, 0.16); }
.sentii-fab:focus-visible { outline: 2px solid var(--sentii-blue); outline-offset: 3px; }
.sentii-fab img,
.sentii-fab svg { width: 32px; height: 32px; display: block; }

/* Mini variant — used inside empty-state card headers */
.sentii-fab--mini {
  position: static;
  width: 32px;
  height: 32px;
  box-shadow: none;
}
.sentii-fab--mini img,
.sentii-fab--mini svg { width: 22px; height: 22px; }

/* Active state — uniform breathe (per glyph spec v1.2 §7).
   Replaces legacy per-bar sentiiPulse; the glyph is now a single ribbon. */
@keyframes sentiiBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
.sentii-fab.is-active img,
.sentii-fab.is-active svg {
  transform-origin: center;
  animation: sentiiBreathe 2s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .sentii-fab.is-active img,
  .sentii-fab.is-active svg { animation: none; }
}

/* ── Empty-State Card ────────────────────────────────────── */
.sentii-empty-card {
  width: 100%;
  padding: 24px;
  border-radius: 12px;
  background: var(--sentii-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--sentii-border);
  font-family: var(--sentii-font);
}
.sentii-empty-card--soft { background: var(--sentii-soft-stone); }

.sentii-empty-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sentii-gradient);
  display: grid;
  place-items: center;
}
.sentii-empty-card__icon img,
.sentii-empty-card__icon svg { width: 18px; height: 18px; }

.sentii-empty-card__title {
  font-weight: 600;
  font-size: 15px;
  color: var(--sentii-deep-navy);
  margin: 0;
}
.sentii-empty-card__body {
  font-size: 13px;
  color: var(--sentii-muted-text);
  margin: 0;
  line-height: 1.5;
}
.sentii-empty-card__cta { margin-top: 4px; }

/* ── Wordmark lockup helper ──────────────────────────────── */
.sentii-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  font-family: var(--sentii-font);
}
.sentii-wordmark__text {
  font-weight: 600;
  color: var(--sentii-deep-navy);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ── Coming Soon badge (pre-GA) ──────────────────────────
   Used on every Sentii mention until window.BR.flags.sentiiLaunched
   flips to true. Inline-baseline so it can sit beside titles, chips
   and link text without breaking flow. See mem://style/brand-identity. */
.sentii-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--sentii-gradient);
  color: #FFFFFF;
  font-family: var(--sentii-font, 'Inter', sans-serif);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.01em;
  vertical-align: baseline;
  white-space: nowrap;
  border: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  box-shadow: 0 1px 3px rgba(79, 70, 229, 0.25);
}
.sentii-soon-badge::before {
  content: "\F589"; /* bi-stars */
  font-family: 'bootstrap-icons';
  font-weight: 400;
  font-size: 10px;
  line-height: 1;
  color: #FFFFFF;
}
.sentii-soon-badge--lg {
  font-size: 13px;
  padding: 4px 12px;
  margin-left: 10px;
}
.sentii-soon-badge--lg::before { font-size: 12px; }
.sentii-soon-badge--corner {
  position: absolute;
  top: -6px;
  right: -6px;
  margin: 0;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(15, 36, 53, 0.18);
}
@media print { .sentii-soon-badge { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .sentii-soon-badge { animation: none; } }
body.dark-mode .sentii-soon-badge {
  background: var(--sentii-gradient);
  color: #FFFFFF;
  border: none;
}

/* ── Dark mode (no inversion, no glow) ───────────────────── */
body.dark-mode .sentii-chip--secondary { color: var(--sentii-white); border-color: var(--sentii-muted-text); }
body.dark-mode .sentii-empty-card { background: var(--sentii-deep-navy); border-color: var(--sentii-muted-text); }
body.dark-mode .sentii-empty-card__title { color: var(--sentii-white); }
body.dark-mode .sentii-wordmark__text { color: var(--sentii-white); }
