@import url("./common.css");

html.dark-mode-page {
  transition: background-color 0.3s ease, color 0.3s ease;
}

html.dark-mode-page.dark {
  --bg: #111111;
  --text: #f5f5f5;
  --muted: #a3a3a3;
  --border: rgba(255, 255, 255, 0.12);
}

html.dark-mode-page.dark .effect-demo {
  background: #1a1a1a;
  border-color: var(--border);
}

.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.demo-nav__brand {
  font-weight: 600;
}

.demo-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.demo-toggle:hover {
  border-color: var(--accent);
}

.demo-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.demo-toggle__icon {
  width: 1.25rem;
  height: 1.25rem;
}

.demo-copy {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}
