/* css styles */

/* If you want to style the button with CSS, note it has the id "languages-button" and the class "babelquarto-languages-button". */


/* BabelQuarto language switcher button */
#languages-button.babelquarto-languages-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;

  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;

  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;

  cursor: pointer;
  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

#languages-button.babelquarto-languages-button:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.35);
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  box-shadow:
    0 8px 22px rgba(37, 99, 235, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

#languages-button.babelquarto-languages-button:active {
  transform: translateY(0);
  box-shadow:
    0 3px 10px rgba(15, 23, 42, 0.1),
    inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

#languages-button.babelquarto-languages-button:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.22),
    0 6px 18px rgba(37, 99, 235, 0.16);
}

/* Optional: dark mode */
@media (prefers-color-scheme: dark) {
  #languages-button.babelquarto-languages-button {
    border-color: rgba(148, 163, 184, 0.22);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
    box-shadow:
      0 4px 16px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
  }

  #languages-button.babelquarto-languages-button:hover {
    border-color: rgba(96, 165, 250, 0.5);
    background: linear-gradient(180deg, #1e3a8a 0%, #172554 100%);
    box-shadow:
      0 8px 24px rgba(37, 99, 235, 0.25),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}