/* Lite / Full toggle — infinity sparkle pill */

.site-domain-links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  font-size: inherit;
  line-height: 1.5;
}

.site-domain-links__name {
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.site-domain-links__name:hover {
  opacity: 0.85;
}

.site-domain-links__domain {
  text-decoration: none;
  color: inherit;
  opacity: 0.82;
}

.site-domain-links__domain:hover {
  opacity: 1;
}

.site-domain-links__sep {
  opacity: 0.45;
  user-select: none;
}

.lite-toggle {
  --lt-a: #00d4ff;
  --lt-b: #7b61ff;
  --lt-c: #ff6ec7;
  --lt-fg: #0d0f14;
  --lt-bg: rgba(255, 255, 255, 0.92);
  --lt-border: rgba(0, 168, 255, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  padding: 0.18em 0.62em 0.18em 0.48em;
  border-radius: 999px;
  border: 1px solid var(--lt-border);
  background:
    linear-gradient(135deg, rgba(0, 212, 255, 0.14), rgba(123, 97, 255, 0.12)),
    var(--lt-bg);
  color: var(--lt-fg);
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 4px 14px rgba(0, 120, 220, 0.12);
  transition:
    transform 0.18s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.lite-toggle::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.lite-toggle:hover::before,
.lite-toggle:focus-visible::before {
  transform: translateX(120%);
}

.lite-toggle:hover,
.lite-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 168, 255, 0.5);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 0 0 1px rgba(0, 212, 255, 0.15),
    0 6px 20px rgba(0, 120, 220, 0.2);
  outline: none;
}

.lite-toggle__glyph {
  font-size: 0.95em;
  line-height: 1;
  background: linear-gradient(135deg, var(--lt-a), var(--lt-b), var(--lt-c));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(0, 212, 255, 0.35));
}

.lite-toggle__label {
  background: linear-gradient(135deg, #0077b6, #7b61ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Site switcher variant */
.lite-toggle--switcher {
  flex-shrink: 0;
  font-size: 0.62rem;
  padding: 0.28em 0.55em 0.28em 0.42em;
  z-index: 1;
}

.site-switcher__item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
  padding-right: 4px;
}

/* Dark mode — global theme + site switcher */
[data-theme="dark"] .lite-toggle,
.site-switcher--dark .lite-toggle {
  --lt-fg: #e6edf5;
  --lt-bg: rgba(18, 24, 42, 0.92);
  --lt-border: rgba(0, 212, 255, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 4px 16px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .lite-toggle__label,
.site-switcher--dark .lite-toggle__label {
  background: linear-gradient(135deg, #4ec4ff, #b794ff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .lite-toggle {
    --lt-fg: #e6edf5;
    --lt-bg: rgba(18, 24, 42, 0.92);
    --lt-border: rgba(0, 212, 255, 0.32);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.06) inset,
      0 4px 16px rgba(0, 0, 0, 0.28);
  }

  html:not([data-theme="light"]) .lite-toggle__label {
    background: linear-gradient(135deg, #4ec4ff, #b794ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

/* Lite pages (no data-theme) */
body:not([class]) .lite-toggle,
.lite-toggle--on-lite-page {
  --lt-fg: #1a1a1a;
}

@media (prefers-color-scheme: dark) {
  body:not([class]) .lite-toggle {
    --lt-fg: #e8e8e8;
    --lt-bg: rgba(24, 24, 24, 0.94);
    --lt-border: rgba(78, 196, 255, 0.35);
  }
}

.footer-domain-row {
  margin-top: 0.35em;
}
