/* === Base switcher === */
.bomtaal-switcher {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
}

.bomtaal-switcher__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  text-decoration: none;
  color: inherit;
  border-radius: 3px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.bomtaal-switcher__link:hover {
  background-color: rgba(0, 0, 0, 0.08);
  text-decoration: none;
}

.bomtaal-switcher__link:hover .bomtaal-flag svg {
  transform: scale(1.15);
  transition: transform 0.15s ease;
}

.bomtaal-switcher__link--active {
  font-weight: 700;
}

/* === Menu variant === */
.bomtaal-switcher--menu {
  list-style: none;
  display: flex;
  gap: 4px;
  align-items: center;
}

/* === Flag style (default) === */
.bomtaal-flag {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.bomtaal-flag svg {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.bomtaal-label {
  white-space: nowrap;
}

.bomtaal-switcher--flags {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.bomtaal-switcher--flags .bomtaal-switcher__link--active,
.bomtaal-switcher--flags-only .bomtaal-switcher__link--active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === Flags-only: tighter spacing === */
.bomtaal-switcher--flags-only {
  gap: 4px;
}

.bomtaal-switcher--flags-only .bomtaal-switcher__link {
  padding: 4px;
}

.bomtaal-switcher--flags-only .bomtaal-switcher__link--active .bomtaal-flag svg {
  box-shadow: 0 0 0 2px currentColor;
}

/* === Compact style (text-only, original) === */
.bomtaal-switcher:not(.bomtaal-switcher--flags):not(.bomtaal-switcher--flags-only) .bomtaal-switcher__link--active {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* === Responsive === */
@media (max-width: 600px) {
  .bomtaal-switcher--flags {
    gap: 4px;
  }

  .bomtaal-switcher--flags .bomtaal-switcher__link {
    padding: 4px 6px;
  }

  .bomtaal-flag svg {
    width: 20px;
    height: 20px;
  }

  .bomtaal-label {
    font-size: 12px;
  }
}
