/* SmartHint — floating cross-nav widget */
.sh-root {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9900;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .55s cubic-bezier(.22,1,.36,1);
}
.sh-root.sh-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Card link ── */
.sh-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px 13px 14px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  user-select: none;
  white-space: nowrap;
}
.sh-card:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

/* ── Icon ── */
.sh-icon {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}
.sh-icon svg { width: 100%; height: 100%; display: block; }
.sh-card:hover .sh-icon { transform: scale(1.1); }

/* ── Text ── */
.sh-text {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  transition: opacity .2s ease;
}
.sh-label {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.sh-desc {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .38s cubic-bezier(.34,1.2,.64,1), opacity .3s ease;
}
.sh-card:hover .sh-desc,
.sh-card:focus-visible .sh-desc { max-height: 22px; opacity: 1; }

/* ── Arrow ── */
.sh-arrow {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  opacity: .35;
  transition: opacity .25s ease, transform .25s ease;
}
.sh-arrow svg { width: 100%; height: 100%; display: block; }
.sh-card:hover .sh-arrow { opacity: .85; transform: translateX(2px); }

/* ── Collapsed: slide to icon tab ── */
.sh-root.sh-collapsed { transform: translateX(calc(100% - 24px)); cursor: pointer; }
.sh-root.sh-collapsed .sh-text,
.sh-root.sh-collapsed .sh-arrow { opacity: 0; }

/* ── murtit theme: white glass, violet accent ── */
.sh-root.sh-murtit .sh-card {
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139,92,246,.18);
  box-shadow: 0 4px 20px rgba(139,92,246,.10), 0 1px 5px rgba(0,0,0,.07);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.sh-root.sh-murtit .sh-card:hover {
  border-color: rgba(139,92,246,.40);
  box-shadow: 0 6px 28px rgba(139,92,246,.18), 0 2px 8px rgba(0,0,0,.06);
}
.sh-root.sh-murtit .sh-icon { color: #8B5CF6; }
.sh-root.sh-murtit .sh-label { color: #171717; }
.sh-root.sh-murtit .sh-desc  { color: #6B7280; }
.sh-root.sh-murtit .sh-arrow { color: #8B5CF6; }

/* ── murtai theme: dark glass, violet accent ── */
.sh-root.sh-murtai .sh-card {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(139,92,246,.25);
  box-shadow: 0 4px 24px rgba(139,92,246,.15), 0 1px 6px rgba(0,0,0,.08);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.sh-root.sh-murtai .sh-card:hover {
  border-color: rgba(139,92,246,.50);
  box-shadow: 0 6px 32px rgba(139,92,246,.26), 0 2px 8px rgba(0,0,0,.08);
}
.sh-root.sh-murtai .sh-icon { color: #7C3AED; }
.sh-root.sh-murtai .sh-label { color: #0F0F1A; }
.sh-root.sh-murtai .sh-desc  { color: #6B7280; }
.sh-root.sh-murtai .sh-arrow { color: #7C3AED; }

/* ── Pulse animations ── */
@keyframes sh-pulse-murtit {
  0%,72%,100% { box-shadow: 0 4px 20px rgba(139,92,246,.10), 0 1px 5px rgba(0,0,0,.07); }
  36%         { box-shadow: 0 4px 26px rgba(139,92,246,.20), 0 0 0 6px rgba(139,92,246,.06), 0 1px 5px rgba(0,0,0,.07); }
}
@keyframes sh-pulse-murtai {
  0%,72%,100% { box-shadow: 0 4px 24px rgba(139,92,246,.15), 0 1px 6px rgba(0,0,0,.08); }
  36%         { box-shadow: 0 4px 28px rgba(139,92,246,.26), 0 0 0 6px rgba(139,92,246,.08), 0 1px 6px rgba(0,0,0,.08); }
}
.sh-root.sh-murtit.sh-pulsing .sh-card { animation: sh-pulse-murtit 1.7s ease-in-out; }
.sh-root.sh-murtai.sh-pulsing .sh-card { animation: sh-pulse-murtai 1.7s ease-in-out; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .sh-root, .sh-root * { transition: none !important; animation: none !important; }
}

/* ── Mobile: bottom-right card, collapses to icon tab ── */
@media (max-width: 600px) {
  .sh-root { bottom: 20px; right: 16px; }
  .sh-card { padding: 11px 14px 11px 13px; }
  .sh-root.sh-collapsed {
    transform: translateX(calc(100% - 36px));
    cursor: pointer;
  }
}
