/* ============================================================
   home-switch.css — the "see it another way" bar. On the suit
   pages (/spades/ /hearts/ /diamonds/ /clubs/) it switches between
   the four suits; on the older designs it switches design and
   toggles light/dark. Built on style.css tokens.
   ============================================================ */

.viewbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin: 14px auto 2px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--card) 82%, transparent);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}
.vb-label {
  font: 600 .68rem/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 6px;
}

/* segmented design switch */
.vb-seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid var(--border);
}
.vb-seg a {
  font: 600 .78rem/1 var(--mono);
  letter-spacing: .02em;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 13px;
  border-radius: 999px;
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.vb-seg a:hover,
.vb-seg a:focus-visible { color: var(--fg); outline: none; }
.vb-seg a[aria-current="page"] {
  color: var(--bg);
  background: linear-gradient(100deg, var(--accent), var(--accent-2, var(--accent)));
  box-shadow: 0 6px 16px -8px var(--glow, rgb(34 211 238 / .5));
}
html[data-theme="light"] .vb-seg a[aria-current="page"],
html:not([data-theme="dark"]) .vb-seg a[aria-current="page"] { color: #06252c; }

/* light/dark toggle */
.vb-theme {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 600 .74rem/1 var(--mono);
  letter-spacing: .02em;
  color: var(--fg);
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 13px;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.vb-theme:hover, .vb-theme:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
.vb-theme .ico { width: 13px; height: 13px; display: inline-block; }

@media (max-width: 480px) {
  .vb-label { width: 100%; text-align: center; padding: 0; }
  .vb-seg a,
  .vb-theme { padding: 7px 10px; font-size: .72rem; }
}
