/* ─────────────────────────────────────────────
   Mood toggle styles — pairs with shared/mood-toggle.js
   ───────────────────────────────────────────── */

.mood {
  position: fixed; bottom: 1.1rem; right: 1.6rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.45rem 0.8rem 0.45rem 0.45rem;
  background: color-mix(in oklab, var(--ink) 70%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in oklab, var(--t-1) 12%, transparent);
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--t-3);
  cursor: pointer;
  z-index: 1000;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.mood:hover {
  color: var(--saffron);
  border-color: var(--saffron);
}

.mood-track {
  position: relative;
  width: 38px; height: 22px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--t-1) 8%, transparent);
  border: 1px solid color-mix(in oklab, var(--t-1) 14%, transparent);
  flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
.mood:hover .mood-track { border-color: var(--saffron); }

.mood-thumb {
  position: absolute; top: 50%; left: 2px;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--saffron);
  color: var(--ink);
  display: grid; place-items: center;
  transition: left 0.35s var(--e-spring, cubic-bezier(0.34,1.56,0.64,1)), background 0.3s;
  box-shadow: 0 0 12px color-mix(in oklab, var(--saffron) 50%, transparent);
}
.mood-thumb .face {
  width: 14px; height: 14px;
  position: absolute;
  transition: opacity 0.25s, transform 0.35s var(--e-spring, cubic-bezier(0.34,1.56,0.64,1));
}
.mood-thumb .face-sad { opacity: 1; }
.mood-thumb .face-happy { opacity: 0; transform: scale(0.6) rotate(-90deg); }

html[data-theme="paper"] .mood-thumb { left: 18px; }
html[data-theme="paper"] .mood-thumb .face-sad { opacity: 0; transform: scale(0.6) rotate(90deg); }
html[data-theme="paper"] .mood-thumb .face-happy { opacity: 1; transform: none; }

.mood-label em { font-style: normal; color: var(--saffron); }

@media (max-width: 640px) {
  .mood {
    bottom: 0.8rem; right: 0.8rem;
    padding: 0.32rem 0.55rem 0.32rem 0.32rem;
    gap: 0.5rem; font-size: 8px;
  }
  .mood-track { width: 30px; height: 17px; }
  .mood-thumb { width: 13px; height: 13px; }
  html[data-theme="paper"] .mood-thumb { left: 15px; }
  .mood-thumb .face { width: 10px; height: 10px; }
}
