/* Generic button system */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 1.25rem;
  border-radius: 0.65rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--color-ink);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.btn-icon {
  gap: 0.4rem;
}

.btn-pill {
  border-radius: 999px;
}

.btn-uppercase {
  text-transform: uppercase;
}

.btn-ghost {
  border-color: var(--color-border);
  background-color: transparent;
}

.btn-ghost:hover {
  border-color: var(--color-ink-muted);
  background-color: rgba(0, 0, 0, 0.04);
}

.btn-filled {
  border-color: transparent;
  background-color: var(--color-accent);
  color: var(--color-surface);
  box-shadow: 0 10px 25px rgba(71, 138, 201, 0.3);
}

.btn-filled:hover {
  box-shadow: 0 14px 30px rgba(71, 138, 201, 0.4);
}

/* Language toggle overrides */
.language-toggle {
  border-color: var(--color-border);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.language-toggle:hover {
  background-color: rgba(0, 0, 0, 0.08);
  border-color: #999999;
}

.language-icon {
  font-size: 1.2em;
  line-height: 1;
}

.language-text {
  font-size: 1em;
  font-weight: 500;
  transition: transform 0.3s ease;
}

.language-toggle:hover .language-text,
.language-toggle-mobile:hover .language-text {
  transform: scale(1.05);
}

.language-toggle-mobile {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 10px 20px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  font-size: inherit;
  font-family: inherit;
  border-radius: 0.65rem;
}

.language-toggle-mobile:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.u-nav-2 .language-toggle-mobile {
  border: none;
  outline: none;
}

@media (max-width: 767px) {
  .language-toggle {
    padding: 0.4rem 0.9rem;
    font-size: 0.8rem;
  }
}
