/* vibe-pill.css: the single source for vibe pill colour and state.
   Pages may add layout only (width, margin, grid); never colour. See Components/Vibes/VibePill.razor.
   Guarded by tests/bluelemon.api.tests/VibePillTests.cs. */

.bl-vibe-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; list-style: none; }
.bl-vibe-pill {
  --vp-bg: #DCEBFA; --vp-ink: #1F3F66;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px;
  background: var(--vp-bg); color: var(--vp-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--vp-ink) 16%, transparent);
  font: 600 13px/1.2 var(--font-body); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, box-shadow .15s;
}
.bl-vibe-pill.is-sm { min-height: 24px; padding: 2px 10px; font-size: 12px; font-weight: 700; }

/* Twelve tones, one per vibe, every pair of backgrounds at least 7 apart (CIE76) and every ink at least 4.5:1 on its background and under white text; trait chips (Lone ranger and the like) are not vibes and have their own palette in Components/Vibes/TraitChip.razor.css; guarded by VibePillTests and TraitChipTests. is-trait below is not a tone. */
.bl-vibe-pill.tone-sky { --vp-bg: #DCEBFA; --vp-ink: #1F3F66; }
.bl-vibe-pill.tone-lavender { --vp-bg: #E8DFF5; --vp-ink: #4A3470; }
.bl-vibe-pill.tone-peach { --vp-bg: #FDE3D3; --vp-ink: #7A3E1D; }
.bl-vibe-pill.tone-butter { --vp-bg: #FBF0C0; --vp-ink: #6B5510; }
.bl-vibe-pill.tone-mint { --vp-bg: #D9F0E4; --vp-ink: #1F5A41; }
.bl-vibe-pill.tone-sage { --vp-bg: #E1EBD3; --vp-ink: #3F5A24; }
.bl-vibe-pill.tone-rose { --vp-bg: #FADADD; --vp-ink: #7E2A33; }
.bl-vibe-pill.tone-berry { --vp-bg: #F3C9E4; --vp-ink: #761C52; }
.bl-vibe-pill.tone-clay { --vp-bg: #E3D2BD; --vp-ink: #53392A; }
.bl-vibe-pill.tone-teal { --vp-bg: #BAE4EA; --vp-ink: #0D4D54; }
.bl-vibe-pill.tone-indigo { --vp-bg: #C9D3F8; --vp-ink: #252F7D; }
.bl-vibe-pill.tone-amber { --vp-bg: #FFD9A8; --vp-ink: #6F4208; }

/* Neutral look for a choice that is not a vibe (People "Any" and language chips): same shape, size, hover, tick and navy selected state, white fill and navy ink, no vibe colour. Not a tone. */
.bl-vibe-pill.is-trait { --vp-bg: #fff; --vp-ink: #1a2340; }

a.bl-vibe-pill, button.bl-vibe-pill { cursor: pointer; }
a.bl-vibe-pill:hover, button.bl-vibe-pill:hover { color: var(--vp-ink); box-shadow: inset 0 0 0 1.5px var(--vp-ink); }
.bl-vibe-pill:focus-visible { outline: 2px solid var(--bl-navy, #1a2340); outline-offset: 2px; }

/* Selected */
.bl-vibe-pill[aria-pressed="true"], .bl-vibe-pill[aria-selected="true"], .bl-vibe-pill[aria-current="page"] { background: var(--vp-ink); color: #fff; box-shadow: none; }
a.bl-vibe-pill[aria-pressed="true"]:hover, button.bl-vibe-pill[aria-pressed="true"]:hover,
a.bl-vibe-pill[aria-selected="true"]:hover, button.bl-vibe-pill[aria-selected="true"]:hover,
a.bl-vibe-pill[aria-current="page"]:hover, button.bl-vibe-pill[aria-current="page"]:hover { color: #fff; box-shadow: none; }
.bl-vibe-pill[aria-pressed="true"]::before, .bl-vibe-pill[aria-selected="true"]::before, .bl-vibe-pill[aria-current="page"]::before { content: "\2713"; }

.bl-vibe-pill.is-locked { opacity: .45; cursor: not-allowed; }

/* Host editor: a picked vibe outside the host's six; wins over selected */
.bl-vibe-pill.is-flag, .bl-vibe-pill.is-flag[aria-pressed="true"], .bl-vibe-pill.is-flag[aria-selected="true"] { background: #FFF1BF; color: #4A3A00; box-shadow: inset 0 0 0 2px #C28A00; }

/* Note line under the label */
.bl-vibe-pill-note { display: block; font: 500 12px/1.2 var(--font-body); opacity: .85; }
.bl-vibe-pill:has(.bl-vibe-pill-note) { flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 6px; border-radius: 18px; text-align: left; }
.bl-vibe-pill:has(.bl-vibe-pill-note)[aria-pressed="true"]::before,
.bl-vibe-pill:has(.bl-vibe-pill-note)[aria-selected="true"]::before { content: none; }
.bl-vibe-pill:has(.bl-vibe-pill-note)[aria-pressed="true"] .bl-vibe-pill-label::before,
.bl-vibe-pill:has(.bl-vibe-pill-note)[aria-selected="true"] .bl-vibe-pill-label::before { content: "\2713\00a0"; }

.bl-vibe-pill svg { width: 14px; height: 14px; flex: none; }

/* Layout hooks (no colour) */
.bl-tour-card-vibes { gap: 6px; }
.bl-vs-grid .bl-vibe-pill { width: 100%; min-height: 44px; white-space: normal; text-align: center; }

@media (max-width: 900px), (pointer: coarse) {
  a.bl-vibe-pill:not(.is-sm), button.bl-vibe-pill:not(.is-sm) { min-height: 44px; }
}
html[lang="zh-CN"] .bl-vibe-pill { line-height: 1.3; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .bl-vibe-pill { transition: none; } }
